This class models an abstract GeoServer resource. This class is
used internally for modelling instances of class GSFeatureType
or
GSCoverage
Object of R6Class
for modelling a GeoServer resource
R6Class
object.
name
resource name
nativeName
resource native name
title
resource title
description
resource description
abstract
resource abstract
keywordsr
resource keywords
metadataLinks
resource metadata links
projectionPolicy
resource projection policy
srs
resource srs
nativeCRS
resource native CRS
latLonBoundingBox
resource lat/lon bounding box
nativeBoundingBox
resource lat/lon native bounding box
new(rootName, xml)
This method is used to instantiate a GSResource
decode(xml)
This method is used to decode a GSResource from XML
encode()
This method is used to encode a GSResource to XML. Inherited from the
generic GSRESTResource
encoder
setEnabled(enabled)
Sets if the resource is enabled or not in GeoServer
setName(name)
Sets the resource name
setNativeName(nativeName)
Sets the resource native name
setTitle(title)
Sets the resource title
setDescription(description)
Sets the resource description
setAbstract(abstract)
Sets the resource abstract
setKeywords(keywords)
Sets a list of keywords
addKeyword(keyword)
Sets a keyword. Returns TRUE if set, FALSE otherwise
delKeyword(keyword)
Deletes a keyword. Returns TRUE if deleted, FALSE otherwise
setMetadataLinks(metadataLinks)
Sets a list of GSMetadataLinks
addMetadataLink(metadataLink)
Adds a metadataLink
delMetadataLink(metadataLink)
Deletes a metadataLink
setNativeCRS(nativeCRS)
Sets the resource nativeCRS
setSrs(srs)
Sets the resource srs
setNativeBoundingBox(minx, miny, maxx, maxy, bbox, crs)
Sets the resource nativeBoundingBox. Either from coordinates or from
a bbox
object (matrix).
setLatLonBoundingBox(minx, miny, maxx, maxy, bbox, crs)
Sets the resource latLonBoundingBox. Either from coordinates or from
a bbox
object (matrix).
setProjectionPolicy(policy)
Sets the resource projection policy
Geoserver REST API Resource
# NOT RUN {
res <- GSResource$new(rootName = "featureType")
# }
Run the code above in your browser using DataLab