This class models an abstract GeoServer resource. This class is
used internally for modelling instances of class GSFeatureType
or
GSCoverage
GSResource
Object of R6Class
for modelling a GeoServer resource
R6Class
object.
name
nativeName
title
description
abstract
keywords
metadataLinks
projectionPolicy
srs
nativeCRS
latLonBoundingBox
nativeBoundingBox
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