GSResource | R Documentation |
This class models an abstract GeoServer resource. This class is
used internally for modelling instances of class GSFeatureType
or
GSCoverage
R6Class
object.
Geoserver REST API Resource
Object of R6Class
for modelling a GeoServer resource
geosapi::GSRESTResource
-> GSResource
full
full
name
resource name
nativeName
resource native name
title
resource title
description
resource description
abstract
resource abstract
keywords
resource keywords
metadataLinks
resource metadata links
nativeCRS
resource native CRS
srs
resource srs
nativeBoundingBox
resource lat/lon native bounding box
latLonBoundingBox
resource lat/lon bounding box
projectionPolicy
resource projection policy
enabled
enabled
metadata
metadata
new()
Initializes a GSResource
GSResource$new(rootName = NULL, xml = NULL)
rootName
root name
xml
object of class xml_node-class
decode()
Decodes from XML
GSResource$decode(xml)
xml
object of class xml_node-class
setEnabled()
Set enabled
GSResource$setEnabled(enabled)
enabled
enabled
setName()
Set name
GSResource$setName(name)
name
name
setNativeName()
Set native name
GSResource$setNativeName(nativeName)
nativeName
native name
setTitle()
Set title
GSResource$setTitle(title)
title
title
setDescription()
Set description
GSResource$setDescription(description)
description
description
setAbstract()
Set abstract
GSResource$setAbstract(abstract)
abstract
abstract
setKeywords()
Set keyword(s)
GSResource$setKeywords(keywords)
keywords
keywords
addKeyword()
Adds keyword
GSResource$addKeyword(keyword)
keyword
keyword
TRUE
if added, FALSE
otherwise
delKeyword()
Deletes keyword
GSResource$delKeyword(keyword)
keyword
keyword
TRUE
if deleted, FALSE
otherwise
setMetadataLinks()
Set metadata links
GSResource$setMetadataLinks(metadataLinks)
metadataLinks
metadata links
addMetadataLink()
Adds metadata link
GSResource$addMetadataLink(metadataLink)
metadataLink
object of class GSMetadataLink
TRUE
if added, FALSE
otherwise
deleteMetadataLink()
Deletes metadata link
GSResource$deleteMetadataLink(metadataLink)
metadataLink
object of class GSMetadataLink
TRUE
if deleted, FALSE
otherwise
setProjectionPolicy()
Set projection policy
GSResource$setProjectionPolicy(projectionPolicy)
projectionPolicy
projection policy
setSrs()
Set SRS
GSResource$setSrs(srs)
srs
srs
setNativeCRS()
Set native CRS
GSResource$setNativeCRS(nativeCRS)
nativeCRS
native crs
setLatLonBoundingBox()
Set LatLon bounding box
GSResource$setLatLonBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)
minx
minx
miny
miny
maxx
maxx
maxy
maxy
bbox
bbox
crs
crs
setNativeBoundingBox()
Set native bounding box
GSResource$setNativeBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)
minx
minx
miny
miny
maxx
maxx
maxy
maxy
bbox
bbox
crs
crs
setMetadata()
Set metadata
GSResource$setMetadata(key, metadata)
key
key
metadata
metadata
TRUE
if added, FALSE
otherwise
delMetadata()
Deletes metadata
GSResource$delMetadata(key)
key
key
TRUE
if deleted, FALSE
otherwise
setMetadataDimension()
Set metadata dimension
GSResource$setMetadataDimension(key, dimension, custom = FALSE)
key
key
dimension
dimension
custom
custom
clone()
The objects of this class are cloneable with this method.
GSResource$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
res <- GSResource$new(rootName = "featureType")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.