This class models an abstract GeoServer resource. This class is
used internally for modelling instances of class GSFeatureType
or
GSCoverage
Value
Object of R6Class
for modelling a GeoServer resource
Details
Geoserver REST API Resource
Author
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Public fields
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
Methods
Inherited methods
Method new()
Initializes a GSResource
Arguments
rootName
root name
xml
object of class xml_node-class
Method decode()
Decodes from XML
Arguments
xml
object of class xml_node-class
Method setEnabled()
Set enabled
Usage
GSResource$setEnabled(enabled)
Method setName()
Set name
Method setNativeName()
Set native name
Usage
GSResource$setNativeName(nativeName)
Method setTitle()
Set title
Usage
GSResource$setTitle(title)
Method setDescription()
Set description
Usage
GSResource$setDescription(description)
Method setAbstract()
Set abstract
Usage
GSResource$setAbstract(abstract)
Method setKeywords()
Set keyword(s)
Usage
GSResource$setKeywords(keywords)
Method addKeyword()
Adds keyword
Usage
GSResource$addKeyword(keyword)
Returns
TRUE
if added, FALSE
otherwise
Method delKeyword()
Deletes keyword
Usage
GSResource$delKeyword(keyword)
Returns
TRUE
if deleted, FALSE
otherwise
Set metadata links
Usage
GSResource$setMetadataLinks(metadataLinks)
Arguments
metadataLinks
metadata links
Adds metadata link
Usage
GSResource$addMetadataLink(metadataLink)
Returns
TRUE
if added, FALSE
otherwise
Deletes metadata link
Usage
GSResource$deleteMetadataLink(metadataLink)
Returns
TRUE
if deleted, FALSE
otherwise
Method setProjectionPolicy()
Set projection policy
Usage
GSResource$setProjectionPolicy(projectionPolicy)
Arguments
projectionPolicy
projection policy
Method setNativeCRS()
Set native CRS
Usage
GSResource$setNativeCRS(nativeCRS)
Method setLatLonBoundingBox()
Set LatLon bounding box
Usage
GSResource$setLatLonBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)
Arguments
minx
minx
miny
miny
maxx
maxx
maxy
maxy
bbox
bbox
crs
crs
Method setNativeBoundingBox()
Set native bounding box
Usage
GSResource$setNativeBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)
Arguments
minx
minx
miny
miny
maxx
maxx
maxy
maxy
bbox
bbox
crs
crs
Set metadata
Usage
GSResource$setMetadata(key, metadata)
Arguments
key
key
metadata
metadata
Returns
TRUE
if added, FALSE
otherwise
Deletes metadata
Usage
GSResource$delMetadata(key)
Returns
TRUE
if deleted, FALSE
otherwise
Set metadata dimension
Usage
GSResource$setMetadataDimension(key, dimension, custom = FALSE)
Arguments
key
key
dimension
dimension
custom
custom
Method clone()
The objects of this class are cloneable with this method.
Usage
GSResource$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Examples
res <- GSResource$new(rootName = "featureType")