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.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
geosapi::GSRESTResource -> GSResource
fullfull
nameresource name
nativeNameresource native name
titleresource title
descriptionresource description
abstractresource abstract
keywordsresource keywords
metadataLinksresource metadata links
nativeCRSresource native CRS
srsresource srs
nativeBoundingBoxresource lat/lon native bounding box
latLonBoundingBoxresource lat/lon bounding box
projectionPolicyresource projection policy
enabledenabled
metadatametadata
new()Initializes a GSResource
GSResource$new(rootName = NULL, xml = NULL)rootNameroot name
xmlobject of class xml_node-class
decode()Decodes from XML
GSResource$decode(xml)xmlobject of class xml_node-class
setEnabled()Set enabled
GSResource$setEnabled(enabled)enabledenabled
setName()Set name
GSResource$setName(name)namename
setNativeName()Set native name
GSResource$setNativeName(nativeName)nativeNamenative name
setTitle()Set title
GSResource$setTitle(title)titletitle
setDescription()Set description
GSResource$setDescription(description)descriptiondescription
setAbstract()Set abstract
GSResource$setAbstract(abstract)abstractabstract
setKeywords()Set keyword(s)
GSResource$setKeywords(keywords)keywordskeywords
addKeyword()Adds keyword
GSResource$addKeyword(keyword)keywordkeyword
TRUE if added, FALSE otherwise
delKeyword()Deletes keyword
GSResource$delKeyword(keyword)keywordkeyword
TRUE if deleted, FALSE otherwise
setMetadataLinks()Set metadata links
GSResource$setMetadataLinks(metadataLinks)metadataLinksmetadata links
addMetadataLink()Adds metadata link
GSResource$addMetadataLink(metadataLink)metadataLinkobject of class GSMetadataLink
TRUE if added, FALSE otherwise
deleteMetadataLink()Deletes metadata link
GSResource$deleteMetadataLink(metadataLink)metadataLinkobject of class GSMetadataLink
TRUE if deleted, FALSE otherwise
setProjectionPolicy()Set projection policy
GSResource$setProjectionPolicy(projectionPolicy)projectionPolicyprojection policy
setSrs()Set SRS
GSResource$setSrs(srs)srssrs
setNativeCRS()Set native CRS
GSResource$setNativeCRS(nativeCRS)nativeCRSnative crs
setLatLonBoundingBox()Set LatLon bounding box
GSResource$setLatLonBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)minxminx
minyminy
maxxmaxx
maxymaxy
bboxbbox
crscrs
setNativeBoundingBox()Set native bounding box
GSResource$setNativeBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)minxminx
minyminy
maxxmaxx
maxymaxy
bboxbbox
crscrs
setMetadata()Set metadata
GSResource$setMetadata(key, metadata)keykey
metadatametadata
TRUE if added, FALSE otherwise
delMetadata()Deletes metadata
GSResource$delMetadata(key)keykey
TRUE if deleted, FALSE otherwise
setMetadataDimension()Set metadata dimension
GSResource$setMetadataDimension(key, dimension, custom = FALSE)keykey
dimensiondimension
customcustom
clone()The objects of this class are cloneable with this method.
GSResource$clone(deep = FALSE)deepWhether to make a deep clone.
Geoserver REST API Resource
res <- GSResource$new(rootName = "featureType")
Run the code above in your browser using DataLab