| GSResource {geosapi} | R Documentation |
A GeoServer abstract resource
Description
This class models an abstract GeoServer resource. This class is
used internally for modelling instances of class GSFeatureType or
GSCoverage
Format
R6Class object.
Details
Geoserver REST API Resource
Value
Object of R6Class for modelling a GeoServer resource
Super class
geosapi::GSRESTResource -> GSResource
Public fields
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
Methods
Public methods
Inherited methods
Method new()
Initializes a GSResource
Usage
GSResource$new(rootName = NULL, xml = NULL)
Arguments
rootNameroot name
xmlobject of class xml_node-class
Method decode()
Decodes from XML
Usage
GSResource$decode(xml)
Arguments
xmlobject of class xml_node-class
Method setEnabled()
Set enabled
Usage
GSResource$setEnabled(enabled)
Arguments
enabledenabled
Method setName()
Set name
Usage
GSResource$setName(name)
Arguments
namename
Method setNativeName()
Set native name
Usage
GSResource$setNativeName(nativeName)
Arguments
nativeNamenative name
Method setTitle()
Set title
Usage
GSResource$setTitle(title)
Arguments
titletitle
Method setDescription()
Set description
Usage
GSResource$setDescription(description)
Arguments
descriptiondescription
Method setAbstract()
Set abstract
Usage
GSResource$setAbstract(abstract)
Arguments
abstractabstract
Method setKeywords()
Set keyword(s)
Usage
GSResource$setKeywords(keywords)
Arguments
keywordskeywords
Method addKeyword()
Adds keyword
Usage
GSResource$addKeyword(keyword)
Arguments
keywordkeyword
Returns
TRUE if added, FALSE otherwise
Method delKeyword()
Deletes keyword
Usage
GSResource$delKeyword(keyword)
Arguments
keywordkeyword
Returns
TRUE if deleted, FALSE otherwise
Method setMetadataLinks()
Set metadata links
Usage
GSResource$setMetadataLinks(metadataLinks)
Arguments
metadataLinksmetadata links
Method addMetadataLink()
Adds metadata link
Usage
GSResource$addMetadataLink(metadataLink)
Arguments
metadataLinkobject of class GSMetadataLink
Returns
TRUE if added, FALSE otherwise
Method deleteMetadataLink()
Deletes metadata link
Usage
GSResource$deleteMetadataLink(metadataLink)
Arguments
metadataLinkobject of class GSMetadataLink
Returns
TRUE if deleted, FALSE otherwise
Method setProjectionPolicy()
Set projection policy
Usage
GSResource$setProjectionPolicy(projectionPolicy)
Arguments
projectionPolicyprojection policy
Method setSrs()
Set SRS
Usage
GSResource$setSrs(srs)
Arguments
srssrs
Method setNativeCRS()
Set native CRS
Usage
GSResource$setNativeCRS(nativeCRS)
Arguments
nativeCRSnative crs
Method setLatLonBoundingBox()
Set LatLon bounding box
Usage
GSResource$setLatLonBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)
Arguments
minxminx
minyminy
maxxmaxx
maxymaxy
bboxbbox
crscrs
Method setNativeBoundingBox()
Set native bounding box
Usage
GSResource$setNativeBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)
Arguments
minxminx
minyminy
maxxmaxx
maxymaxy
bboxbbox
crscrs
Method setMetadata()
Set metadata
Usage
GSResource$setMetadata(key, metadata)
Arguments
keykey
metadatametadata
Returns
TRUE if added, FALSE otherwise
Method delMetadata()
Deletes metadata
Usage
GSResource$delMetadata(key)
Arguments
keykey
Returns
TRUE if deleted, FALSE otherwise
Method setMetadataDimension()
Set metadata dimension
Usage
GSResource$setMetadataDimension(key, dimension, custom = FALSE)
Arguments
keykey
dimensiondimension
customcustom
Method clone()
The objects of this class are cloneable with this method.
Usage
GSResource$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Examples
res <- GSResource$new(rootName = "featureType")