| Title: | GeoServer REST API R Interface |
|---|---|
| Description: | Provides an R interface to the GeoServer REST API, allowing to upload and publish data in a GeoServer web-application and expose data to OGC Web-Services. The package currently supports all CRUD (Create,Read,Update,Delete) operations on GeoServer workspaces, namespaces, datastores (stores of vector data), featuretypes, layers, styles, as well as vector data upload operations. For more information about the GeoServer REST API, see <https://docs.geoserver.org/stable/en/user/rest/>. |
| Authors: | Emmanuel Blondel [aut, cre] (ORCID: <https://orcid.org/0000-0002-5870-5762>) |
| Maintainer: | Emmanuel Blondel <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.8-1 |
| Built: | 2026-06-08 07:22:14 UTC |
| Source: | https://github.com/eblondel/geosapi |
Provides an R interface to the GeoServer REST API, allowing to upload and publish data in a GeoServer web-application and expose data to OGC Web-Services. The package currently supports all CRUD (Create,Read,Update,Delete) operations on GeoServer workspaces, namespaces, datastores (stores of vector data), featuretypes, layers, styles, as well as vector data upload operations. For more information about the GeoServer REST API, see <https://docs.geoserver.org/stable/en/user/rest/> .
Emmanuel Blondel [email protected]
Useful links:
Report bugs at https://github.com/eblondel/geosapi/issues
Geoserver REST API CoverageStore
Geoserver REST API CoverageStore
R6Class object.
Object of R6Class for modelling a GeoServer CoverageStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> GSAbstractCoverageStore
urlURL of the abstract coverage store
new()
initializes an abstract coverage store
GSAbstractCoverageStore$new( xml = NULL, type = NULL, name = NULL, description = "", enabled = TRUE, url = NULL )
xmlan object of class xml_node-class to create object from XML
typethe type of coverage store
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
urlURL of the store
decode()
Decodes a coverage store from XML
GSAbstractCoverageStore$decode(xml)
xmlan object of class xml_node-class
an object of class GSAbstractCoverageStore
setUrl()
set coverage store URL
GSAbstractCoverageStore$setUrl(url)
urlthe store URL to set
clone()
The objects of this class are cloneable with this method.
GSAbstractCoverageStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
Geoserver REST API DataStore
Geoserver REST API DataStore
R6Class object.
Object of R6Class for modelling a GeoServer dataStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> GSAbstractDataStore
connectionParametersthe list of connection parameters
new()
initializes an abstract data store
GSAbstractDataStore$new( xml = NULL, type = NULL, name = NULL, description = "", enabled = TRUE, connectionParameters )
xmlan object of class xml_node-class to create object from XML
typethe type of coverage store
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
connectionParametersthe list of connection parameters
decode()
Decodes a data store from XML
GSAbstractDataStore$decode(xml)
xmlan object of class xml_node-class
an object of class GSAbstractDataStore
setConnectionParameters()
Set list connection parameters. The argument should be an object
of class GSRESTEntrySet giving a list of key/value parameter entries.
GSAbstractDataStore$setConnectionParameters(parameters)
parametersan object of class GSRESTEntrySet
addConnectionParameter()
Adds a connection parameter
GSAbstractDataStore$addConnectionParameter(key, value)
keyconnection parameter key
valueconnection parameter value
TRUE if added, FALSE otherwise
setConnectionParameter()
Sets a connection parameter
GSAbstractDataStore$setConnectionParameter(key, value)
keyconnection parameter key
valueconnection parameter value
delConnectionParameter()
Removes a connection parameter
GSAbstractDataStore$delConnectionParameter(key)
keyconnection parameter key
valueconnection parameter value
TRUE if removed, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSAbstractDataStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
Geoserver REST API AbstractDBDataStore
Geoserver REST API AbstractDBDataStore
R6Class object.
Object of R6Class for modelling a GeoServer abstract DB dataStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractDataStore -> GSAbstractDBDataStore
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractDataStore$addConnectionParameter()geosapi::GSAbstractDataStore$decode()geosapi::GSAbstractDataStore$delConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameters()new()
initializes an abstract DB data store
GSAbstractDBDataStore$new( xml = NULL, type = NULL, dbType = NULL, name = NULL, description = "", enabled = TRUE )
xmlan object of class xml_node-class to create object from XML
typethe type of DB data store
dbTypeDB type
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
setDatabaseType()
Set database type
GSAbstractDBDataStore$setDatabaseType(dbtype)
dbtypeDB type
setNamespace()
Set namespace
GSAbstractDBDataStore$setNamespace(namespace)
namespacenamespace
setHost()
Set host
GSAbstractDBDataStore$setHost(host)
hosthost
setPort()
Set port
GSAbstractDBDataStore$setPort(port)
portport
setDatabase()
Set database
GSAbstractDBDataStore$setDatabase(database)
databasedatabase
setSchema()
Set schema
GSAbstractDBDataStore$setSchema(schema)
schemaschema
setUser()
Set user
GSAbstractDBDataStore$setUser(user)
useruser
setPassword()
Set password
GSAbstractDBDataStore$setPassword(password)
passwordpassword
setJndiReferenceName()
Set JNDI reference name
GSAbstractDBDataStore$setJndiReferenceName(jndiReferenceName)
jndiReferenceNameJNDI reference name
setExposePrimaryKeys()
Set expose primary keyws
GSAbstractDBDataStore$setExposePrimaryKeys(exposePrimaryKeys)
exposePrimaryKeysexpose primary keys
setMinConnections()
Set min connections
GSAbstractDBDataStore$setMinConnections(minConnections = 1)
minConnectionsmin connections. Default is 11
setMaxConnections()
Set max connections
GSAbstractDBDataStore$setMaxConnections(maxConnections = 10)
maxConnectionsmax connections. Default is 10
setFetchSize()
Set fetch size
GSAbstractDBDataStore$setFetchSize(fetchSize = 1000)
fetchSizefetch size. Default is 1000
setConnectionTimeout()
Set connection timeout
GSAbstractDBDataStore$setConnectionTimeout(seconds = 20)
secondstimeout (in seconds). Default is 20
setValidateConnections()
Set validate connection
GSAbstractDBDataStore$setValidateConnections(validateConnections)
validateConnectionsValidate connections
setPrimaryKeyMetadataTable()
Set primary key metadata table
GSAbstractDBDataStore$setPrimaryKeyMetadataTable(primaryKeyMetadataTable)
primaryKeyMetadataTableprimary key metadata table
setLooseBBox()
Set loose bbox
GSAbstractDBDataStore$setLooseBBox(looseBBox = TRUE)
looseBBoxloose bbox. Default is TRUE
setPreparedStatements()
Set prepared statemnts
GSAbstractDBDataStore$setPreparedStatements(preparedStatements = FALSE)
preparedStatementsprepared Statements. Default is FALSE
setMaxOpenPreparedStatements()
Set max open prepared statements
GSAbstractDBDataStore$setMaxOpenPreparedStatements( maxOpenPreparedStatements = 50 )
maxOpenPreparedStatementsmax open preepared statements. Default is 50
setEstimatedExtends()
Set estimatedExtends
GSAbstractDBDataStore$setEstimatedExtends(estimatedExtends = FALSE)
estimatedExtendsestimated extends. Default is FALSE
setDefautConnectionParameters()
Set default connection parameters
GSAbstractDBDataStore$setDefautConnectionParameters()
clone()
The objects of this class are cloneable with this method.
GSAbstractDBDataStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Internal abstract class used for setting DB stores
Emmanuel Blondel <[email protected]>
Geoserver REST API Store
Geoserver REST API Store
R6Class object.
Object of R6Class for modelling a GeoServer store
geosapi::GSRESTResource -> GSAbstractStore
fullwhether store object is fully described
namestore name
enabledif the store is enabled or not
descriptionstore description
typestore type
workspaceworkspace name
new()
initializes an abstract store
GSAbstractStore$new( xml = NULL, storeType, type = NULL, name = NULL, description = "", enabled = TRUE )
xmlan object of class xml_node-class to create object from XML
storeTypestore type
typethe type of coverage store
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
decode()
Decodes store from XML
GSAbstractStore$decode(xml)
xmlobject of class xml_node-class
setType()
Set type
GSAbstractStore$setType(type)
typetype
setEnabled()
Set enabled
GSAbstractStore$setEnabled(enabled)
enabledenabled
setDescription()
Set description
GSAbstractStore$setDescription(description)
descriptiondescription
clone()
The objects of this class are cloneable with this method.
GSAbstractStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
Geoserver REST API Access Control List Manager
Geoserver REST API Access Control List Manager
R6Class object.
Object of R6Class with methods for managing GeoServer
Access Control List (ACL) operations.
geosapi::GSManager -> GSAccessControlListManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()setCatalogMode()
Set the catalog mode
GSAccessControlListManager$setCatalogMode(
mode = c("HIDE", "MIXED", "CHALLENGE")
)modemode
TRUE if set, FALSE otherwise
getCatalogMode()
Get the catalog mode
GSAccessControlListManager$getCatalogMode()
the mode either HIDE, MIXED or CHALLENGE
getRules()
Get rules
GSAccessControlListManager$getRules(domain = c("layers", "services", "rest"))domainthe access control domain
the list of rules for a given domain
getLayerRules()
Method to get the list of 'layers' rules
GSAccessControlListManager$getLayerRules()
the list of 'layers' rules
getServiceRules()
Method to get the list of 'services' rules
GSAccessControlListManager$getServiceRules()
the list of 'services' rules
getRestRules()
Method to get the list of 'rest' rules
GSAccessControlListManager$getRestRules()
the list of 'rest' rules
getRule()
Method to get a rule by resource
GSAccessControlListManager$getRule(
domain = c("layers", "services", "rest"),
resource
)domainthe access control domain
resourceresource
an object of class GSRule or NULL if no rule is found
getLayerRule()
Method to get a 'layers' rule
GSAccessControlListManager$getLayerRule(resource)
resourceresource
an object of class GSLayerRule or NULL if no rule is found
getServiceRule()
Method to get a 'services' rule
GSAccessControlListManager$getServiceRule(resource)
resourceresource
an object of class GSServiceRule or NULL if no rule is found
getRestRule()
Method to get a 'rest' rule
GSAccessControlListManager$getRestRule(resource)
resourceresource
an object of class GSRestRule or NULL if no rule is found
addRule()
Generic method to add an access control rule
GSAccessControlListManager$addRule(rule)
ruleobject of class GSRule
TRUE if added, FALSE otherwise
addLayerRule()
Adds an access control layer rule
GSAccessControlListManager$addLayerRule(
ws = NULL,
lyr,
permission = c("r", "w", "a"),
roles
)wsthe resource workspace. Default is NULL
lyrthe target layer to which the access control should be added
permissionthe rule permission, either r (read), w (write) or a (administer)
rolesone or more roles to add for the rule
TRUE if added, FALSE otherwise
addServiceRule()
Adds an access control service rule
GSAccessControlListManager$addServiceRule(
service,
method,
permission = c("r", "w", "a"),
roles
)serviceservice subject to the access control rule, eg. 'wfs'
methodservice method subject to the access control rule, eg. 'GetFeature'
permissionthe rule permission, either r (read), w (write) or a (administer)
rolesone or more roles to add for the rule
TRUE if added, FALSE otherwise
addRestRule()
Adds an access control rest rule
GSAccessControlListManager$addRestRule(pattern = "/**", methods, roles)
patterna URL Ant pattern, only applicable for domain rest. Default is /**
methodsHTTP method(s)
rolesone or more roles to add for the rule
TRUE if added, FALSE otherwise
modifyRule()
Generic method to modify an access control rule
GSAccessControlListManager$modifyRule(rule)
ruleobject of class GSRule
TRUE if modified, FALSE otherwise
deleteRule()
Generic method to delete an access control rule
GSAccessControlListManager$deleteRule(rule)
ruleobject of class GSRule
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSAccessControlListManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSAccessControlListManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSAccessControlListManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
Geoserver REST API ArcGridCoverageStore
Geoserver REST API ArcGridCoverageStore
R6Class object.
Object of R6Class for modelling a GeoServer ArcGrid CoverageStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractCoverageStore -> GSArcGridCoverageStore
urlurl
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractCoverageStore$decode()geosapi::GSAbstractCoverageStore$setUrl()new()
initializes an abstract ArcGrid coverage store
GSArcGridCoverageStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE, url = NULL )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
urlurl
clone()
The objects of this class are cloneable with this method.
GSArcGridCoverageStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
This class models a GeoServer coverage. This class is to be used for manipulating representations of vector data with GeoServer.
R6Class object.
Geoserver REST API Resource
Object of R6Class for modelling a GeoServer coverage
geosapi::GSRESTResource -> geosapi::GSResource -> GSCoverage
cqlFilterCQL filter
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSResource$addKeyword()geosapi::GSResource$addMetadataLink()geosapi::GSResource$delKeyword()geosapi::GSResource$delMetadata()geosapi::GSResource$deleteMetadataLink()geosapi::GSResource$setAbstract()geosapi::GSResource$setDescription()geosapi::GSResource$setEnabled()geosapi::GSResource$setKeywords()geosapi::GSResource$setLatLonBoundingBox()geosapi::GSResource$setMetadata()geosapi::GSResource$setMetadataDimension()geosapi::GSResource$setMetadataLinks()geosapi::GSResource$setName()geosapi::GSResource$setNativeBoundingBox()geosapi::GSResource$setNativeCRS()geosapi::GSResource$setNativeName()geosapi::GSResource$setProjectionPolicy()geosapi::GSResource$setSrs()geosapi::GSResource$setTitle()new()
Initializes a GSCoverage from XML
GSCoverage$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes coverage from XML
GSCoverage$decode(xml)
xmlobject of class xml_node-class
setView()
Set view
GSCoverage$setView(cv)
cvcv, object of class GSCoverageView
TRUE if set, FALSE otherwise
delView()
Deletes view
GSCoverage$delView()
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSCoverage$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
gt <- GSCoverage$new()gt <- GSCoverage$new()
Geoserver REST API GSCoverageBand
Geoserver REST API GSCoverageBand
R6Class object.
Object of R6Class for modelling a GeoServer coverage band
new(xml)This method is used to instantiate a GSCoverageBand
decode(xml)This method is used to decode a GSCoverageBand from XML
encode()This method is used to encode a GSCoverageBand to XML
setDefinition(definition)Sets the coverage band definition
setIndex(index)Sets the coverage band index
setCompositionTypeSets the composition type. Only 'BAND_SELECT' is supported by GeoServer for now.
addInputBand(band)Adds a input coverage band, object of class GSInputCoverageBand
delInputBand(band)Removes a input coverage band, object of class GSInputCoverageBand
geosapi::GSRESTResource -> GSCoverageBand
inputCoverageBandslist of input coverage bands
definitioncoverage band definition
indexcoverage band index
compositionTypecoverage band composition type
new()
Initalizes a GSCoverageBand
GSCoverageBand$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSCoverageBand$decode(xml)
xmlobject of class xml_node-class
setName()
Set name
GSCoverageBand$setName(name)
namename
setDefinition()
Set definition
GSCoverageBand$setDefinition(definition)
definitiondefinition
setIndex()
Set index
GSCoverageBand$setIndex(index)
indexindex
setCompositionType()
Set composition type
GSCoverageBand$setCompositionType(compositionType)
compositionTypecomposition type
addInputBand()
Adds an input band
GSCoverageBand$addInputBand(band)
bandobject of class GSInputCoverageBand
TRUE if added, FALSE otherwise
delInputBand()
Deletes an input band
GSCoverageBand$delInputBand(band)
bandobject of class GSInputCoverageBand
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSCoverageBand$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSCoverageBand$new()GSCoverageBand$new()
Geoserver REST API CoverageStore Manager
Geoserver REST API CoverageStore Manager
R6Class object.
Object of R6Class with methods for managing GeoServer
CoverageStores (i.e. stores of coverage data)
geosapi::GSManager -> GSCoverageStoreManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getCoverageStores()
Get the list of available coverage stores. Returns an object of class list
giving items of class GSAbstractCoverageStore
GSCoverageStoreManager$getCoverageStores(ws)
wsworkspace name
the list of coverage stores
getCoverageStoreNames()
Get the list of available coverage store names. Returns an vector of class character
GSCoverageStoreManager$getCoverageStoreNames(ws)
wsworkspace name
the list of coverage store names, as character
getCoverageStore()
Get an object of class GSAbstractDataStore given a workspace and coverage store names.
GSCoverageStoreManager$getCoverageStore(ws, cs)
wsworkspace name
cscoverage store name
the coverage store
createCoverageStore()
Creates a new coverage store given a workspace, coverage store name. Abstract method used in below format-specific methods to create coverage stores.
GSCoverageStoreManager$createCoverageStore(ws, coverageStore)
wsworkspace name
coverageStorecoverage store object
TRUE if created, FALSE otherwise
updateCoverageStore()
Updates a coverage store given a workspace, coverage store name. Abstract method used in below format-specific methods to create coverage stores.
GSCoverageStoreManager$updateCoverageStore(ws, coverageStore)
wsworkspace name
coverageStorecoverage store object
TRUE if updated, FALSE otherwise
deleteCoverageStore()
Deletes a coverage store given a workspace and an object of class GSAbstractCoverageStore.
By defaut, the option recurse is set to FALSE, ie datastore layers are not removed.
To remove all coverage store layers, set this option to TRUE. The purge parameter is used
to customize the delete of files on disk (in case the underlying reader implements a delete method).
It can take one of the three values: none, metadata, all. For more details see https://docs.geoserver.org/stable/en/user/rest/api/coveragestores.html#purge
GSCoverageStoreManager$deleteCoverageStore( ws, cs, recurse = FALSE, purge = NULL )
wsworkspace name
cscoverage store name
recurserecurse
purgepurge
TRUE if deleted, FALSE otherwise
getCoverages()
Get the list of available coverages for given workspace and coverage store.
Returns an object of class list giving items of class GSCoverage
GSCoverageStoreManager$getCoverages(ws, cs)
wsworkspace name
cscoverage store name
the list of GSCoverage
getCoverageNames()
Get the list of available coverage names for given workspace and coverage store.
Returns an object of class list giving items of class GSCoverage
GSCoverageStoreManager$getCoverageNames(ws, cs)
wsworkspace name
cscoverage store name
the list of coverage names
getCoverage()
Get coverage
GSCoverageStoreManager$getCoverage(ws, cs, cv)
wsworkspace name
cscoverage store name
cvcoverage name
createCoverage()
Creates a new coverage given a workspace, coverage store names and an object of class GSCoverage
GSCoverageStoreManager$createCoverage(ws, cs, coverage)
wsworkspace name
cscoverage store name
coverageobject of class GSCoverage
TRUE if created, FALSE otherwise
updateCoverage()
Updates a coverage given a workspace, coverage store names and an object of class GSCoverage
GSCoverageStoreManager$updateCoverage(ws, cs, coverage)
wsworkspace name
cscoverage store name
coverageobject of class GSCoverage
TRUE if updated, FALSE otherwise
deleteCoverage()
Deletes a coverage given a workspace, coverage store names, and an object of
class GSCoverage. By defaut, the option recurse is
set to FALSE, ie coverage layers are not removed.
GSCoverageStoreManager$deleteCoverage(ws, cs, cv, recurse = FALSE)
wsworkspace name
cscoverage store name
cvcoverage name
recurserecurse
uploadCoverage()
Abstract method to upload a coverage file targeting a workspace (ws) and datastore (cs). The extension
corresponds to the format/type of coverage to be uploaded (among values 'geotiff', 'worldimage', 'arcgrid', or 'imagemosaic').
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadCoverage( ws, cs, endpoint = "file", extension, filename, configure = "first", update = "append", contentType )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
extensionextension
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
contentTypecontent type
TRUE if uploaded, FALSE otherwise
uploadGeoTIFF()
Uploads a GeoTIFF file targeting a workspace (ws) and datastore (cs). The endpoint takes a value among
"file" (default), "url" or "external". The filename is the name of the GeoTIFF file to
upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadGeoTIFF( ws, cs, endpoint = "file", filename, configure = "first", update = "append" )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
TRUE if uploaded, FALSE otherwise
uploadWorldImage()
Uploads a WorldImage file targeting a workspace (ws) and datastore (cs). The endpoint takes a value among
"file" (default), "url" or "external". The filename is the name of the zipped file to
upload and set for the newly created datastore. It is assumed the zip archive contains the .prj file to set the SRS.
The configure parameter can take a value among values "none" (indicates to configure only the datastore
but no layer configuration) or "first" (configure both datastore and layer). The update defines the strategy
for the upload: "append" (default value) for the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadWorldImage( ws, cs, endpoint = "file", filename, configure = "first", update = "append" )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
TRUE if uploaded, FALSE otherwise
uploadArcGrid()
Uploads an ArcGrid file targeting a workspace (ws) and datastore (cs). The endpoint takes a value among
"file" (default), "url" or "external". The filename is the name of the ArcGrid file to
upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadArcGrid( ws, cs, endpoint = "file", filename, configure = "first", update = "append" )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
TRUE if uploaded, FALSE otherwise
uploadImageMosaic()
Uploads an ImageMosaic file targeting a workspace (ws) and datastore (cs). The endpoint takes a value among
"file" (default), "url" or "external". The filename is the name of the ImageMosaic file to
upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadImageMosaic( ws, cs, endpoint = "file", filename, configure = "first", update = "append" )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
TRUE if uploaded, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSCoverageStoreManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSCoverageStoreManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSCoverageStoreManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
Geoserver REST API GSCoverageView
Geoserver REST API GSCoverageView
R6Class object.
Object of R6Class for modelling a GeoServer coverage view
geosapi::GSRESTResource -> GSCoverageView
namename
envelopeCompositionTypeenvelope composition type
selectedResolutionselected resolution
selectedResolutionIndexselected resolution index
coverageBandscoverage bands
new()
Initializes an object of class GSCoverageView
GSCoverageView$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSCoverageView$decode(xml)
xmlobject of class xml_node-class
setName()
Set name
GSCoverageView$setName(name)
namename
setEnvelopeCompositionType()
Sets the envelope composition type. Type of Envelope Composition, used to expose the bounding box of the CoverageView, either 'UNION' or 'INTERSECTION'.
GSCoverageView$setEnvelopeCompositionType(envelopeCompositionType)
envelopeCompositionTypeenvelope composition type
setSelectedResolution()
Set selected resolution
GSCoverageView$setSelectedResolution(selectedResolution)
selectedResolutionselected resolution
setSelectedResolutionIndex()
Set selected resolution index
GSCoverageView$setSelectedResolutionIndex(selectedResolutionIndex)
selectedResolutionIndexselected resolution index
addBand()
Adds band
GSCoverageView$addBand(band)
bandobject of class GSCoverageBand
TRUE if added, FALSE otherwise
delBand()
Deletes band
GSCoverageView$delBand(band)
bandobject of class GSCoverageBand
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSCoverageView$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSCoverageView$new()GSCoverageView$new()
Geoserver REST API DataStore Manager
Geoserver REST API DataStore Manager
R6Class object.
Object of R6Class with methods for managing GeoServer
DataStores (i.e. stores of vector data)
geosapi::GSManager -> GSDataStoreManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getDataStores()
Get the list of available dataStores.
GSDataStoreManager$getDataStores(ws)
wsworkspace name
an object of class list giving items of class GSAbstractDataStore
getDataStoreNames()
Get the list of available dataStore names.
GSDataStoreManager$getDataStoreNames(ws)
wsworkspace name
a vector of class character
getDataStore()
Get an object of class GSAbstractDataStore given a workspace and datastore names.
GSDataStoreManager$getDataStore(ws, ds)
wsworkspace name
dsdatastore name
the datastore
createDataStore()
Creates a datastore given a workspace and an object of class GSAbstractDataStore.
GSDataStoreManager$createDataStore(ws, dataStore)
wsworkspace name
dataStoredatastore object of class GSAbstractDataStore
TRUE if created, FALSE otherwise
updateDataStore()
Updates a datastore given a workspace and an object of class GSAbstractDataStore.
GSDataStoreManager$updateDataStore(ws, dataStore)
wsworkspace name
dataStoredatastore object of class GSAbstractDataStore
TRUE if updated, FALSE otherwise
deleteDataStore()
Deletes a datastore given workspace and datastore names.
By defaut, the option recurse is set to FALSE, ie datastore layers are not removed.
To remove all datastore layers, set this option to TRUE.
GSDataStoreManager$deleteDataStore(ws, ds, recurse = FALSE)
wsworkspace name
dsdatastore name
recurserecurse
TRUE if deleted, FALSE otherwise
getFeatureTypes()
Get the list of available feature types for given workspace and datastore.
GSDataStoreManager$getFeatureTypes(ws, ds, list = "configured")
wsworkspace name
dsdatastore name
listlist type value, among "configured", "available", "available_with_geom", "all"
an object of class list giving items of class GSFeatureType
getFeatureTypeNames()
Get the list of available feature type names for given workspace and datastore.
GSDataStoreManager$getFeatureTypeNames(ws, ds)
wsworkspace name
dsdatastore name
a vector of classcharacter
getFeatureType()
Get an object of class GSFeatureType given a workspace, datastore and feature type names.
GSDataStoreManager$getFeatureType(ws, ds, ft)
wsworkspace name
dsdatastore name
ftfeature type name
an object of class GSFeatureType
createFeatureType()
Creates a new featureType given a workspace, datastore names and an object of class GSFeatureType
GSDataStoreManager$createFeatureType(ws, ds, featureType)
wsworkspace name
dsdatastore name
featureTypefeature type
TRUE if created, FALSE otherwise
updateFeatureType()
Updates a featureType given a workspace, datastore names and an object of class GSFeatureType
GSDataStoreManager$updateFeatureType(ws, ds, featureType)
wsworkspace name
dsdatastore name
featureTypefeature type
TRUE if updated, FALSE otherwise
deleteFeatureType()
Deletes a featureType given a workspace, datastore names, and an object of
class GSFeatureType. By defaut, the option recurse is
set to FALSE, ie datastore layers are not removed.
GSDataStoreManager$deleteFeatureType(ws, ds, ft, recurse = FALSE)
wsworkspace name
dsdatastore name
ftfeature type name
recurserecurse
TRUE if deleted, FALSE otherwise
publishLayer()
Publish a feature type/layer pair given a workspace and datastore. The name 'layer' here encompasses both GSFeatureType and GSLayer resources.
GSDataStoreManager$publishLayer(ws, ds, featureType, layer)
wsworkspace name
dsdatastore name
featureTypeobject of class GSFeatureType
layerobject of class GSLayer
TRUE if published, FALSE otherwise
unpublishLayer()
Unpublish a feature type/layer pair given a workspace and datastore. The name 'layer' here encompasses both GSFeatureType and GSLayer resources.
GSDataStoreManager$unpublishLayer(ws, ds, lyr)
wsworkspace name
dsdatastore name
lyrlayer name
TRUE if published, FALSE otherwise
uploadData()
Uploads features data. The extension corresponds to the format/type of features to be uploaded among "shp", "spatialite", "h2", "gpkg".
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadData( ws, ds, endpoint = "file", extension, configure = "first", update = "append", filename, charset, contentType )
wsworkspace name
dsdatastore name
endpointendpoint
extensionextension
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
contentTypecontent type
TRUE if uploaded, FALSE otherwise
uploadShapefile()
Uploads zipped shapefile.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadShapefile( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadProperties()
Uploads properties.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadProperties( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadH2()
Uploads H2 database.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadH2( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadSpatialite()
Uploads spatialite file.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadSpatialite( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadAppschema()
Uploads App schema.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadAppschema( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadGeoPackage()
Uploads GeoPackage.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadGeoPackage( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSDataStoreManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSDataStoreManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSDataStoreManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
This class models a GeoServer resource dimension.
R6Class object.
Geoserver REST API Dimension
Object of R6Class for modelling a GeoServer dimension
geosapi::GSRESTResource -> GSDimension
enabledtrue/false
presentationdimension presentation
resolutiondimension resolution
unitsdimension units
unitSymboldimension unitsSymbol
new()
Initializes an object of class GSDimension
GSDimension$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSDimension$decode(xml)
xmlobject of class xml_node-class
setEnabled()
Set enabled
GSDimension$setEnabled(enabled)
enabledenabled
setPresentation()
Set presentation
GSDimension$setPresentation(presentation, interval = NULL)
presentationpresentation. Possible values: "LIST", "CONTINUOUS_INTERVAL", "DISCRETE_INTERVAL"
intervalinterval
setUnit()
Set unit
GSDimension$setUnit(unit)
unitunit
setUnitSymbol()
Set unit symbol
GSDimension$setUnitSymbol(unitSymbol)
unitSymbolunit symbol
clone()
The objects of this class are cloneable with this method.
GSDimension$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
dim <- GSDimension$new()dim <- GSDimension$new()
This class models a GeoServer feature dimension.
R6Class object.
Object of R6Class for modelling a GeoServer feature dimension
geosapi::GSRESTResource -> geosapi::GSDimension -> GSFeatureDimension
attributeattribute
endAttributeend attribute
new()
Initializes an object of class GSFeatureDimension
GSFeatureDimension$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSFeatureDimension$decode(xml)
xmlobject of class xml_node-class
setAttribute()
Set attribute
GSFeatureDimension$setAttribute(attribute)
attributeattribute
setEndAttribute()
Set end attribute
GSFeatureDimension$setEndAttribute(endAttribute)
endAttributeend attribute
clone()
The objects of this class are cloneable with this method.
GSFeatureDimension$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
dim <- GSFeatureDimension$new()dim <- GSFeatureDimension$new()
This class models a GeoServer feature type. This class is to be used for manipulating representations of vector data with GeoServer.
R6Class object.
Geoserver REST API Resource
Object of R6Class for modelling a GeoServer feature type
geosapi::GSRESTResource -> geosapi::GSResource -> GSFeatureType
cqlFilterCQL filter
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSResource$addKeyword()geosapi::GSResource$addMetadataLink()geosapi::GSResource$delKeyword()geosapi::GSResource$delMetadata()geosapi::GSResource$deleteMetadataLink()geosapi::GSResource$setAbstract()geosapi::GSResource$setDescription()geosapi::GSResource$setEnabled()geosapi::GSResource$setKeywords()geosapi::GSResource$setLatLonBoundingBox()geosapi::GSResource$setMetadata()geosapi::GSResource$setMetadataDimension()geosapi::GSResource$setMetadataLinks()geosapi::GSResource$setName()geosapi::GSResource$setNativeBoundingBox()geosapi::GSResource$setNativeCRS()geosapi::GSResource$setNativeName()geosapi::GSResource$setProjectionPolicy()geosapi::GSResource$setSrs()geosapi::GSResource$setTitle()new()
Initializes an object of class GSFeatureType
GSFeatureType$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSFeatureType$decode(xml)
xmlobject of class xml_node-class
setCqlFilter()
Set CQL filter
GSFeatureType$setCqlFilter(cqlFilter)
cqlFilterCQL filter
setVirtualTable()
Set virtual table
GSFeatureType$setVirtualTable(vt)
vtobject of class GSVirtualTable
TRUE if set/added, FALSE otherwise
delVirtualTable()
Deletes virtual table
GSFeatureType$delVirtualTable()
vtobject of class GSVirtualTable
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSFeatureType$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
ft <- GSFeatureType$new()ft <- GSFeatureType$new()
Geoserver REST API GeoPackageDataStore
Geoserver REST API GeoPackageDataStore
R6Class object.
Object of R6Class for modelling a GeoServer GeoPackage dataStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractDataStore -> geosapi::GSAbstractDBDataStore -> GSGeoPackageDataStore
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractDataStore$addConnectionParameter()geosapi::GSAbstractDataStore$decode()geosapi::GSAbstractDataStore$delConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameters()geosapi::GSAbstractDBDataStore$setConnectionTimeout()geosapi::GSAbstractDBDataStore$setDatabase()geosapi::GSAbstractDBDataStore$setDatabaseType()geosapi::GSAbstractDBDataStore$setDefautConnectionParameters()geosapi::GSAbstractDBDataStore$setEstimatedExtends()geosapi::GSAbstractDBDataStore$setExposePrimaryKeys()geosapi::GSAbstractDBDataStore$setFetchSize()geosapi::GSAbstractDBDataStore$setHost()geosapi::GSAbstractDBDataStore$setJndiReferenceName()geosapi::GSAbstractDBDataStore$setLooseBBox()geosapi::GSAbstractDBDataStore$setMaxConnections()geosapi::GSAbstractDBDataStore$setMaxOpenPreparedStatements()geosapi::GSAbstractDBDataStore$setMinConnections()geosapi::GSAbstractDBDataStore$setNamespace()geosapi::GSAbstractDBDataStore$setPassword()geosapi::GSAbstractDBDataStore$setPort()geosapi::GSAbstractDBDataStore$setPreparedStatements()geosapi::GSAbstractDBDataStore$setPrimaryKeyMetadataTable()geosapi::GSAbstractDBDataStore$setSchema()geosapi::GSAbstractDBDataStore$setUser()geosapi::GSAbstractDBDataStore$setValidateConnections()new()
initializes an GeoPackage data store
GSGeoPackageDataStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE, database = NULL )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
databasedatabase
clone()
The objects of this class are cloneable with this method.
GSGeoPackageDataStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
ds <- GSGeoPackageDataStore$new( name = "ds", description = "des", enabled = TRUE, database = NULL )ds <- GSGeoPackageDataStore$new( name = "ds", description = "des", enabled = TRUE, database = NULL )
Geoserver REST API GeoTIFF CoverageStore
Geoserver REST API GeoTIFF CoverageStore
R6Class object.
Object of R6Class for modelling a GeoServer GeoTIFF CoverageStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractCoverageStore -> GSGeoTIFFCoverageStore
urlurl
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractCoverageStore$decode()geosapi::GSAbstractCoverageStore$setUrl()new()
Initializes an GeoTIFF coverage store
GSGeoTIFFCoverageStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE, url = NULL )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
urlurl
clone()
The objects of this class are cloneable with this method.
GSGeoTIFFCoverageStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
Geoserver REST API ImageMosaicCoverageStore
Geoserver REST API ImageMosaicCoverageStore
R6Class object.
Object of R6Class for modelling a GeoServer ImageMosaic CoverageStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractCoverageStore -> GSImageMosaicCoverageStore
urlurl
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractCoverageStore$decode()geosapi::GSAbstractCoverageStore$setUrl()new()
Initializes an Image Mosaic coverage store
GSImageMosaicCoverageStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE, url = NULL )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
urlurl
clone()
The objects of this class are cloneable with this method.
GSImageMosaicCoverageStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
Geoserver REST API GSInputCoverageBand
Geoserver REST API GSInputCoverageBand
R6Class object.
Object of R6Class for modelling a GeoServer input coverage band
geosapi::GSRESTResource -> GSInputCoverageBand
coverageNamecoverage name
bandband
new()
Initializes an object of class GSInputCoverageBand
GSInputCoverageBand$new(xml = NULL, coverageName = NULL, band = NULL)
xmlobject of class xml_node-class
coverageNamecoverage name
bandband name
decode()
Decodes from XML
GSInputCoverageBand$decode(xml)
xmlobject of class xml_node-class
setCoverageName()
Set coverage name
GSInputCoverageBand$setCoverageName(coverageName)
coverageNamecoverage name
setBand()
Set band
GSInputCoverageBand$setBand(band)
bandband
clone()
The objects of this class are cloneable with this method.
GSInputCoverageBand$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSInputCoverageBand$new()GSInputCoverageBand$new()
This class models a GeoServer layer. This class is to be used for published resource (feature type or coverage).
This class models a GeoServer style.
R6Class object.
R6Class object.
Geoserver REST API Resource
Geoserver REST API Style
Object of R6Class for modelling a GeoServer layer
Object of R6Class for modelling a GeoServer style
geosapi::GSRESTResource -> GSLayer
fullfull
namename
pathpath
defaultStyledefault style
stylesstyles
enabledenabled
queryablequeryable
advertisedadvertised
new()
Initializes an object of class GSLayer
GSLayer$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSLayer$decode(xml)
xmlobject of class xml_node-class
setName()
Set name
GSLayer$setName(name)
namename
setPath()
Set path
GSLayer$setPath(path)
pathpath
setEnabled()
Set enabled
GSLayer$setEnabled(enabled)
enabledenabled
setQueryable()
Set queryable
GSLayer$setQueryable(queryable)
queryablequeryable
setAdvertised()
Set advertised
GSLayer$setAdvertised(advertised)
advertisedadvertised
setDefaultStyle()
Set default style
GSLayer$setDefaultStyle(style)
styleobject o class GSStyle or character
setStyles()
Set styles
GSLayer$setStyles(styles)
stylesstyles
addStyle()
Adds style
GSLayer$addStyle(style)
stylestyle, object o class GSStyle or character
TRUE if added, FALSE otherwise
delStyle()
Deletes style
GSLayer$delStyle(style)
stylestyle, object o class GSStyle or character
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSLayer$clone(deep = FALSE)
deepWhether to make a deep clone.
geosapi::GSRESTResource -> GSStyle
fullfull
namename
filenamefilename
new()
Initializes a GSStyle
GSStyle$new(xml = NULL, name = NULL, filename = NULL)
xmlan object of class xml_node-class
namename
filenamefilename
decode()
Decodes from XML
GSStyle$decode(xml)
xmlan object of class xml_node-class
setName()
set name
GSStyle$setName(name)
namename
setFilename()
Set filename
GSStyle$setFilename(filename)
filenamefilename
clone()
The objects of this class are cloneable with this method.
GSStyle$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
lyr <- GSLayer$new() lyr <- GSStyle$new()lyr <- GSLayer$new() lyr <- GSStyle$new()
This class models a GeoServer layer group. This class is to be used for clustering layers into a group.
R6Class object.
Geoserver REST API LayerGroup
Object of R6Class for modelling a GeoServer layergroup
geosapi::GSRESTResource -> GSLayerGroup
fullfull
namename
modemode
titletitle
abstractTxtabstract
workspaceworkspace
publishablespublishables
stylesstyles
metadataLinksmetadata links
boundsbounds
new()
Initializes an object of class GSLayerGroup
GSLayerGroup$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSLayerGroup$decode(xml)
xmlobject of class xml_node-class
setName()
Set name
GSLayerGroup$setName(name)
namename
setMode()
Set mode
GSLayerGroup$setMode(mode)
modea mode value among "SINGLE", "NAMED", "CONTAINER", "EO"
setTitle()
Set title
GSLayerGroup$setTitle(title)
titletitle
setAbstract()
Set abstract
GSLayerGroup$setAbstract(abstract)
abstractabstract
setWorkspace()
Set workspace
GSLayerGroup$setWorkspace(workspace)
workspaceworkspace name, object of class GSWorkspace or character
addLayer()
Adds layer
GSLayerGroup$addLayer(layer, style)
layerlayer name
stylestyle name
addLayerGroup()
Adds layer group
GSLayerGroup$addLayerGroup(layerGroup)
layerGrouplayer group
addPublishable()
Adds publishable
GSLayerGroup$addPublishable(publishable)
publishablepublishable
TRUE if added, FALSE otherwise
setStyles()
Set styles
GSLayerGroup$setStyles(styles)
stylesstyles
addStyle()
Adds a style
GSLayerGroup$addStyle(style)
stylestyle
TRUE if added, FALSE otherwise
setMetadataLinks()
Set metadata links
GSLayerGroup$setMetadataLinks(metadataLinks)
metadataLinksmetadata links
addMetadataLink()
Adds metadata link
GSLayerGroup$addMetadataLink(metadataLink)
metadataLinkobject of class GSMetadataLink
TRUE if added, FALSE otherwise
deleteMetadataLink()
Deletes metadata link
GSLayerGroup$deleteMetadataLink(metadataLink)
metadataLinkobject of class GSMetadataLink
TRUE if deleted, FALSE otherwise
setBounds()
Set bounds
GSLayerGroup$setBounds(minx, miny, maxx, maxy, bbox = NULL, crs)
minxminx
minyminy
maxxmaxx
maxymaxy
bboxbbox
crscrs
clone()
The objects of this class are cloneable with this method.
GSLayerGroup$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
lyr <- GSLayerGroup$new()lyr <- GSLayerGroup$new()
Geoserver REST API Layer Manager
Geoserver REST API Layer Manager
R6Class object.
Object of R6Class with methods for managing GeoServer
Layers as results of published feature types or coverages
geosapi::GSManager -> GSLayerManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getLayers()
Get the list of layers.
GSLayerManager$getLayers()
an object of class list giving items of class GSLayer
getLayerNames()
Get the list of layer names.
GSLayerManager$getLayerNames()
a vector of class character
getLayer()
Get layer by name
GSLayerManager$getLayer(lyr)
lyrlayer name
an object of class GSLayer
createLayer()
Creates a new layer given an object of class GSLayer
GSLayerManager$createLayer(layer)
layerobject of class GSLayer
TRUE if created, FALSE otherwise
updateLayer()
Updates a layer given an object of class GSLayer
GSLayerManager$updateLayer(layer)
layerobject of class GSLayer
TRUE if updated, FALSE otherwise
deleteLayer()
Deletes layer given an object of class GSLayer
GSLayerManager$deleteLayer(lyr)
lyrlayer name
TRUE if deleted, FALSE otherwise
getLayerGroups()
Get layer groups
GSLayerManager$getLayerGroups(ws = NULL)
wsworkspace name. Optional
a list of objects of class GSLayerGroup
getLayerGroupNames()
Get layer group names
GSLayerManager$getLayerGroupNames(ws = NULL)
wsworkspace name
a list of layer group names, as vector of class character
getLayerGroup()
Get layer group
GSLayerManager$getLayerGroup(lyr, ws = NULL)
lyrlyr
wsworkspace name
an object of class GSLayerGroup
createLayerGroup()
Creates a layer group
GSLayerManager$createLayerGroup(layerGroup, ws = NULL)
layerGroupobject of class GSLayerGroup
wsworkspace name. Optional
TRUE if created, FALSE otherwise
updateLayerGroup()
Updates a layer group
GSLayerManager$updateLayerGroup(layerGroup, ws = NULL)
layerGroupobject of class GSLayerGroup
wsworkspace name. Optional
TRUE if updated, FALSE otherwise
deleteLayerGroup()
Deletes a layer group
GSLayerManager$deleteLayerGroup(lyr, ws = NULL)
lyrlayer group name
wsworkspace name. Optional
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSLayerManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSLayerManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSLayerManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
This class models a GeoServer access control list layer rule
R6Class object.
Geoserver REST API Access Control List Layer Rule
Object of R6Class for modelling a GeoServer access control list layer rule
geosapi::GSRESTResource -> geosapi::GSRule -> GSLayerRule
rolesone or more roles
new()
Initializes a GSLayerRule
GSLayerRule$new(
xml = NULL,
ws = NULL,
lyr,
permission = c("r", "w", "a"),
roles
)xmlan object of class xml_node-class
wsthe resource workspace. Default is NULL
lyrthe target layer to which the access control should be added
permissionthe rule permission, either r (read), w (write) or a (administer)
rolesone or more roles to add for the rule
clone()
The objects of this class are cloneable with this method.
GSLayerRule$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
Geoserver REST API Manager
Geoserver REST API Manager
R6Class object.
Object of R6Class with methods for communication with
the REST API of a GeoServer instance.
verbose.infoif geosapi logs have to be printed
verbose.debugif curl logs have to be printed
loggerTypethe type of logger
urlthe Base url of GeoServer
versionthe version of Geoserver. Handled as GSVersion object
logger()
Prints a log message
GSManager$logger(type, text)
typetype of log, "INFO", "WARN", "ERROR"
texttext
INFO()
Prints an INFO log message
GSManager$INFO(text)
texttext
WARN()
Prints an WARN log message
GSManager$WARN(text)
texttext
ERROR()
Prints an ERROR log message
GSManager$ERROR(text)
texttext
new()
This method is used to instantiate a GSManager with the url of the
GeoServer and credentials to authenticate (user/pwd).
By default, the logger argument will be set to NULL (no logger).
This argument accepts two possible values: INFO: to print only geosapi logs,
DEBUG: to print geosapi and CURL logs.
The keyring_backend can be set to use a different backend for storing
the Geoserver user password with keyring (Default value is 'env').
GSManager$new(url, user, pwd, logger = NULL, keyring_backend = "env")
urlurl
useruser
pwdpwd
loggerlogger
keyring_backendkeyring backend. Default is 'env'
getUrl()
Get URL
GSManager$getUrl()
the Geoserver URL
connect()
Connects to geoServer
GSManager$connect()
TRUE if connected, raises an error otherwise
reload()
Reloads the GeoServer catalog
GSManager$reload()
TRUE if reloaded, FALSE otherwise
getSystemStatus()
Get system status
GSManager$getSystemStatus()
an object of class data.frame given the date time and metrics value
monitor()
Monitors the Geoserver by launching a small shiny monitoring application
GSManager$monitor(file = NULL, append = FALSE, sleep = 1)
filefile where to store monitoring results
appendwhether to append results to existing files
sleepsleeping interval to trigger a system status call
getClassName()
Get class name
GSManager$getClassName()
the self class name, as character
getWorkspaceManager()
Get Workspace manager
GSManager$getWorkspaceManager()
an object of class GSWorkspaceManager
getNamespaceManager()
Get Namespace manager
GSManager$getNamespaceManager()
an object of class GSNamespaceManager
getDataStoreManager()
Get Datastore manager
GSManager$getDataStoreManager()
an object of class GSDataStoreManager
getCoverageStoreManager()
Get Coverage store manager
GSManager$getCoverageStoreManager()
an object of class GSCoverageStoreManager
getServiceManager()
Get service manager
GSManager$getServiceManager()
an object of class GSServiceManager
getStyleManager()
Get style manager
GSManager$getStyleManager()
an object of class GSStyleManager
clone()
The objects of this class are cloneable with this method.
GSManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
This class models a GeoServer resource metadataLink made of a type (free text e.g. text/xml, text/html), a metadataType (Possible values are ISO19115:2003, FGDC, TC211, 19139, other), and a content: an URL that gives the metadataLink
R6Class object.
Geoserver REST API Metadatalink
Object of R6Class for modelling a GeoServer resource metadataLink
geosapi::GSRESTResource -> GSMetadataLink
typetype
metadataTypemetadata type
contentcontent
new()
Initializes an object of class GSMetadataLink
GSMetadataLink$new(xml = NULL, type, metadataType, content)
xmlobject of class xml_node-class
typetype
metadataTypemetadata type
contentcontent
decode()
Decodes from XML
GSMetadataLink$decode(xml)
xmlobject of class xml_node-class
setType()
Set type type
GSMetadataLink$setType(type)
typetype
setMetadataType()
Set metadata type
GSMetadataLink$setMetadataType(metadataType)
metadataTypemetadata type. Supported values: "ISO19115:2003", "FGDC", "TC211", "19139", "other"
setContent()
Set content
GSMetadataLink$setContent(content)
contentcontent
clone()
The objects of this class are cloneable with this method.
GSMetadataLink$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
Geoserver REST API Monitor Manager
Geoserver REST API Monitor Manager
R6Class object.
Object of R6Class with methods for the GeoServer Monitoring extension.
geosapi::GSManager -> GSMonitorManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getRequests()
Get the requests
GSMonitorManager$getRequests(offset = 0)
offsetoffset
an object of class data.frame
clone()
The objects of this class are cloneable with this method.
GSMonitorManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSMonitorManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSMonitorManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
Geoserver REST API Namespace
Geoserver REST API Namespace
R6Class object.
Object of R6Class for modelling a GeoServer namespace
geosapi::GSRESTResource -> GSNamespace
namenamespace name
prefixnamespace prefix
urinamespace URI
fullcompleteness of the namespace description
new()
Initializes an object of class GSNamespace
GSNamespace$new(xml = NULL, prefix, uri)
xmlobject of class xml_node-class
prefixprefix
uriuri
decode()
Decodes from XML
GSNamespace$decode(xml)
xmlobject of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSNamespace$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSNamespace$new(prefix = "my_ns", uri = "http://my_ns")GSNamespace$new(prefix = "my_ns", uri = "http://my_ns")
Geoserver REST API Namespace Manager
Geoserver REST API Namespace Manager
R6Class object.
Object of R6Class with methods for managing the namespaces
of a GeoServer instance.
geosapi::GSManager -> GSNamespaceManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getNamespaces()
Get the list of available namespace. Re
GSNamespaceManager$getNamespaces()
an object of class list containing items of class GSNamespace
getNamespaceNames()
Get the list of available namespace names.
GSNamespaceManager$getNamespaceNames()
a vector of class character
getNamespace()
Get a GSNamespace object given a namespace name.
GSNamespaceManager$getNamespace(ns)
nsnamespace
an object of class GSNamespace
createNamespace()
Creates a GeoServer namespace given a prefix, and an optional URI.
GSNamespaceManager$createNamespace(prefix, uri)
prefixprefix
uriuri
TRUE if the namespace has been successfully created, FALSE otherwise
updateNamespace()
Updates a GeoServer namespace given a prefix, and an optional URI.
GSNamespaceManager$updateNamespace(prefix, uri)
prefixprefix
uriuri
TRUE if the namespace has been successfully updated, FALSE otherwise
deleteNamespace()
Deletes a GeoServer namespace given a name.
GSNamespaceManager$deleteNamespace(name, recurse = FALSE)
namename
recurserecurse
TRUE if the namespace has been successfully deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSNamespaceManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSNamespaceManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSNamespaceManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
Geoserver REST API OracleNGDataStore
Geoserver REST API OracleNGDataStore
R6Class object.
Object of R6Class for modelling a GeoServer OracleNG dataStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractDataStore -> geosapi::GSAbstractDBDataStore -> GSOracleNGDataStore
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractDataStore$addConnectionParameter()geosapi::GSAbstractDataStore$decode()geosapi::GSAbstractDataStore$delConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameters()geosapi::GSAbstractDBDataStore$setConnectionTimeout()geosapi::GSAbstractDBDataStore$setDatabase()geosapi::GSAbstractDBDataStore$setDatabaseType()geosapi::GSAbstractDBDataStore$setDefautConnectionParameters()geosapi::GSAbstractDBDataStore$setEstimatedExtends()geosapi::GSAbstractDBDataStore$setExposePrimaryKeys()geosapi::GSAbstractDBDataStore$setFetchSize()geosapi::GSAbstractDBDataStore$setHost()geosapi::GSAbstractDBDataStore$setJndiReferenceName()geosapi::GSAbstractDBDataStore$setLooseBBox()geosapi::GSAbstractDBDataStore$setMaxConnections()geosapi::GSAbstractDBDataStore$setMaxOpenPreparedStatements()geosapi::GSAbstractDBDataStore$setMinConnections()geosapi::GSAbstractDBDataStore$setNamespace()geosapi::GSAbstractDBDataStore$setPassword()geosapi::GSAbstractDBDataStore$setPort()geosapi::GSAbstractDBDataStore$setPreparedStatements()geosapi::GSAbstractDBDataStore$setPrimaryKeyMetadataTable()geosapi::GSAbstractDBDataStore$setSchema()geosapi::GSAbstractDBDataStore$setUser()geosapi::GSAbstractDBDataStore$setValidateConnections()new()
initializes an Oracle NG data store
GSOracleNGDataStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
clone()
The objects of this class are cloneable with this method.
GSOracleNGDataStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSOracleNGDataStore$new(name = "ds", description = "des", enabled = TRUE)GSOracleNGDataStore$new(name = "ds", description = "des", enabled = TRUE)
Geoserver REST API PostGISDataStore
Geoserver REST API PostGISDataStore
R6Class object.
Object of R6Class for modelling a GeoServer PostGIS dataStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractDataStore -> geosapi::GSAbstractDBDataStore -> GSPostGISDataStore
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractDataStore$addConnectionParameter()geosapi::GSAbstractDataStore$decode()geosapi::GSAbstractDataStore$delConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameters()geosapi::GSAbstractDBDataStore$setConnectionTimeout()geosapi::GSAbstractDBDataStore$setDatabase()geosapi::GSAbstractDBDataStore$setDatabaseType()geosapi::GSAbstractDBDataStore$setDefautConnectionParameters()geosapi::GSAbstractDBDataStore$setEstimatedExtends()geosapi::GSAbstractDBDataStore$setExposePrimaryKeys()geosapi::GSAbstractDBDataStore$setFetchSize()geosapi::GSAbstractDBDataStore$setHost()geosapi::GSAbstractDBDataStore$setJndiReferenceName()geosapi::GSAbstractDBDataStore$setLooseBBox()geosapi::GSAbstractDBDataStore$setMaxConnections()geosapi::GSAbstractDBDataStore$setMaxOpenPreparedStatements()geosapi::GSAbstractDBDataStore$setMinConnections()geosapi::GSAbstractDBDataStore$setNamespace()geosapi::GSAbstractDBDataStore$setPassword()geosapi::GSAbstractDBDataStore$setPort()geosapi::GSAbstractDBDataStore$setPreparedStatements()geosapi::GSAbstractDBDataStore$setPrimaryKeyMetadataTable()geosapi::GSAbstractDBDataStore$setSchema()geosapi::GSAbstractDBDataStore$setUser()geosapi::GSAbstractDBDataStore$setValidateConnections()new()
initializes a PostGIS data store
GSPostGISDataStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
clone()
The objects of this class are cloneable with this method.
GSPostGISDataStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSPostGISDataStore$new(name = "ds", description = "des", enabled = TRUE)GSPostGISDataStore$new(name = "ds", description = "des", enabled = TRUE)
This class models a GeoServer layer. This class is to be
used internally by geosapi for configuring layers or layer groups
within an object of class GSLayerGroup
R6Class object.
Object of R6Class for modelling a GeoServer layer group publishable
geosapi::GSRESTResource -> GSPublishable
fullfull
namename
attr_typetype of attribute
new()
Initializes a GSPublishable
GSPublishable$new(xml = NULL, name, type)
xmlan object of class xml_node-class
namename
typetype
decode()
Decodes from XML
GSPublishable$decode(xml)
xmlan object of class xml_node-class
setName()
set name
GSPublishable$setName(name)
namename
setType()
Set type
GSPublishable$setType(type)
typetype
clone()
The objects of this class are cloneable with this method.
GSPublishable$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
publishable <- GSPublishable$new(name = "name", type = "layer")publishable <- GSPublishable$new(name = "name", type = "layer")
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
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.
Emmanuel Blondel <[email protected]>
res <- GSResource$new(rootName = "featureType")res <- GSResource$new(rootName = "featureType")
Geoserver REST API XML entry set
Geoserver REST API XML entry set
R6Class object.
Object of R6Class for modelling a entry set
geosapi::GSRESTResource -> GSRESTEntrySet
entrysetentryset
new()
Initializes an object of class GSRESTEntrySet
GSRESTEntrySet$new(rootName, xml = NULL, entryset)
rootNameroot name
xmlobject of class xml_node-class
entrysetentry set
decode()
Decodes from XML
GSRESTEntrySet$decode(xml)
xmlobject of class xml_node-class
setEntryset()
Set entry set
GSRESTEntrySet$setEntryset(entryset)
entrysetentry set
addEntry()
Adds entry set
GSRESTEntrySet$addEntry(key, value)
keykey
valuevalue
TRUE if added, FALSE otherwise
setEntry()
Sets entry set
GSRESTEntrySet$setEntry(key, value)
keykey
valuevalue
delEntry()
Deletes entry set
GSRESTEntrySet$delEntry(key)
keykey
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSRESTEntrySet$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
Geoserver REST API REST Resource interface
Geoserver REST API REST Resource interface
R6Class object.
Object of R6Class for modelling a GeoServer REST resource interface
rootNameroot name
attrsattrs
new()
Initializes an object of class GSRESTResource
GSRESTResource$new(xml, rootName)
xmlobject of class xml_node-class
rootNameroot name
decode()
Decodes from XML. Abstract method to be implemented by sub-classes
GSRESTResource$decode(xml)
xmlobject of class xml_node-class
encode()
Encodes as XML
GSRESTResource$encode()
an object of class xml_node-class
print()
Provides a custom print output (as tree) of the current class
GSRESTResource$print(..., depth = 1)
...args
depthclass nesting depth
getClassName()
Get class name
GSRESTResource$getClassName()
an object of class character
clone()
The objects of this class are cloneable with this method.
GSRESTResource$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
This class models a GeoServer access control list service rule
R6Class object.
Geoserver REST API Access Control List REST Rule
Object of R6Class for modelling a GeoServer access control list service rule
geosapi::GSRESTResource -> geosapi::GSRule -> GSRestRule
rolesone or more roles
new()
Initializes a GSLayerRule
GSRestRule$new(xml = NULL, pattern = "/**", methods, roles)
xmlan object of class xml_node-class
patterna URL Ant pattern, only applicable for domain rest. Default is /**
methodsHTTP method(s)
rolesone or more roles to add for the rule
clone()
The objects of this class are cloneable with this method.
GSRestRule$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
This class models a GeoServer access control list rule
R6Class object.
Geoserver REST API Access Control List Rule
Object of R6Class for modelling a GeoServer access control list rule
geosapi::GSRESTResource -> GSRule
new()
Initializes a GSRule
GSRule$new(xml = NULL)
xmlan object of class xml_node-class
encode()
Encodes as XML
GSRule$encode()
an object of class xml_node-class
decode()
Decodes from XML
GSRule$decode(xml)
xmlan object of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSRule$clone(deep = FALSE)
deepWhether to make a deep clone.
Abstract class
Emmanuel Blondel <[email protected]>
Geoserver REST API Service Manager
Geoserver REST API Service Manager
R6Class object.
Object of R6Class with methods for managing GeoServer services
geosapi::GSManager -> GSServiceManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getServiceSettings()
Get the service settings. To get the service settings for a specific workspace,
specify the workspace name as ws parameter, otherwise global settings are
retrieved.
GSServiceManager$getServiceSettings(service, ws = NULL)
serviceservice
wsworkspace name
an object of class GSServiceSettings
getWmsSettings()
Get WMS settings. To get the WMS settings for a specific workspace,
specify the workspace name as ws parameter, otherwise global settings are
retrieved.
GSServiceManager$getWmsSettings(ws = NULL)
wsworkspace name
an object of class GSServiceSettings
getWfsSettings()
Get WFS settings. To get the WFS settings for a specific workspace,
specify the workspace name as ws parameter, otherwise global settings are
retrieved.
GSServiceManager$getWfsSettings(ws = NULL)
wsworkspace name
an object of class GSServiceSettings
getWcsSettings()
Get WCS settings. To get the WCS settings for a specific workspace,
specify the workspace name as ws parameter, otherwise global settings are
retrieved.
GSServiceManager$getWcsSettings(ws = NULL)
wsworkspace name
an object of class GSServiceSettings
updateServiceSettings()
Updates the service settings with an object of class GSServiceSettings.
An optional workspace name ws can be specified to update service settings
applying to a workspace.
GSServiceManager$updateServiceSettings(serviceSettings, service, ws = NULL)
serviceSettingsserviceSettings object of class GSServiceSettings
serviceservice
wsworkspace name
TRUE if updated, FALSE otherwise
deleteServiceSettings()
Deletes the service settings. This method is used internally by geosapi for disabling a service setting at workspace level.
GSServiceManager$deleteServiceSettings(service, ws = NULL)
serviceservice
wsworkspace name
TRUE if deleted, FALSE otherwise
updateWmsSettings()
Updates the WMS settings with an object of class GSServiceSettings.
An optional workspace name ws can be specified to update WMS settings
applying to a workspace.
GSServiceManager$updateWmsSettings(serviceSettings, ws = NULL)
serviceSettingsservice settings object of class GSServiceSettings
wsworkspace name
TRUE if deleted, FALSE otherwise
updateWfsSettings()
Updates the WFS settings with an object of class GSServiceSettings.
An optional workspace name ws can be specified to update WFS settings
applying to a workspace.
GSServiceManager$updateWfsSettings(serviceSettings, ws = NULL)
serviceSettingsservice settings object of class GSServiceSettings
wsworkspace name
TRUE if deleted, FALSE otherwise
updateWcsSettings()
Updates the WCS settings with an object of class GSServiceSettings.
An optional workspace name ws can be specified to update WCS settings
applying to a workspace.
GSServiceManager$updateWcsSettings(serviceSettings, ws = NULL)
serviceSettingsservice settings object of class GSServiceSettings
wsworkspace name
TRUE if deleted, FALSE otherwise
enableWMS()
Enables WMS service settings
GSServiceManager$enableWMS(ws = NULL)
wsworkspace name
TRUE if enabled, FALSE otherwise
enableWFS()
Enables WFS service settings
GSServiceManager$enableWFS(ws = NULL)
wsworkspace name
TRUE if enabled, FALSE otherwise
enableWCS()
Enables WCS service settings
GSServiceManager$enableWCS(ws = NULL)
wsworkspace name
TRUE if enabled, FALSE otherwise
disableServiceSettings()
Disables service settings
GSServiceManager$disableServiceSettings(service, ws = NULL)
serviceservice
wsworkspace name
TRUE if disabled, FALSE otherwise
disableWMS()
Disables WMS service settings
GSServiceManager$disableWMS(ws = NULL)
wsworkspace name
TRUE if disabled, FALSE otherwise
disableWFS()
Disables WFS service settings
GSServiceManager$disableWFS(ws = NULL)
wsworkspace name
TRUE if disabled, FALSE otherwise
disableWCS()
Disables WCS service settings
GSServiceManager$disableWCS(ws = NULL)
wsworkspace name
TRUE if disabled, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSServiceManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSServiceManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSServiceManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
This class models a GeoServer access control list service rule
R6Class object.
Geoserver REST API Access Control List Service Rule
Object of R6Class for modelling a GeoServer access control list service rule
geosapi::GSRESTResource -> geosapi::GSRule -> GSServiceRule
rolesone or more roles
new()
Initializes a GSLayerRule
GSServiceRule$new(
xml = NULL,
service,
method,
permission = c("r", "w", "a"),
roles
)xmlan object of class xml_node-class
serviceservice subject to the access control rule, eg. 'wfs'
methodservice method subject to the access control rule, eg. 'GetFeature'
permissionthe rule permission, either r (read), w (write) or a (administer)
rolesone or more roles to add for the rule
clone()
The objects of this class are cloneable with this method.
GSServiceRule$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
This class models a GeoServer OWS service settings.
R6Class object.
Geoserver REST API Service Setting
Object of R6Class for modelling a GeoServer OWS service setting
geosapi::GSRESTResource -> GSServiceSettings
enabledis service enabled or not?
citeCompliantis service cite compliant?
nameservice name
titleservice title
maintainerservice maintainer
abstrctservice abastract
accessConstraintsservice access constraints
feesservice fees
keywordsservices keywords
onlineResourceservice online resource
schemaBaseURLservice schema base URL
verboseservice verbose or not?
new()
Initializes an object of class GSServiceSettings
GSServiceSettings$new(xml = NULL, service)
xmlobject of class xml_node-class
serviceservice service acronym
decode()
Decodes from XML
GSServiceSettings$decode(xml)
xmlobject of class xml_node-class
setEnabled()
Set enabled
GSServiceSettings$setEnabled(enabled)
enabledenabled
setCiteCompliant()
Set cite compliant
GSServiceSettings$setCiteCompliant(citeCompliant)
citeCompliantcite compliant
setName()
Set name
GSServiceSettings$setName(name)
namename
setTitle()
Set title
GSServiceSettings$setTitle(title)
titletitle
setMaintainer()
Set maintainer
GSServiceSettings$setMaintainer(maintainer)
maintainermaintainer
setAbstract()
Set abstract
GSServiceSettings$setAbstract(abstract)
abstractabstract
setAccessConstraints()
Set access constraints
GSServiceSettings$setAccessConstraints(accessConstraints)
accessConstraintsaccess constraints
setFees()
Set fees
GSServiceSettings$setFees(fees)
feesfees
setKeywords()
Set keywords
GSServiceSettings$setKeywords(keywords)
keywordskeywords
addKeyword()
Adds a keyword
GSServiceSettings$addKeyword(keyword)
keywordkeyword
TRUE if added, FALSE otherwise
delKeyword()
Deletes a keyword
GSServiceSettings$delKeyword(keyword)
keywordkeyword
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSServiceSettings$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
settings <- GSServiceSettings$new(service = "WMS") settings$setEnabled(TRUE)settings <- GSServiceSettings$new(service = "WMS") settings$setEnabled(TRUE)
Geoserver REST API ShapeFileDataStore
Geoserver REST API ShapeFileDataStore
R6Class object.
Object of R6Class for modelling a GeoServer Shapefile dataStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractDataStore -> GSShapefileDataStore
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractDataStore$addConnectionParameter()geosapi::GSAbstractDataStore$decode()geosapi::GSAbstractDataStore$delConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameters()new()
initializes a shapefile data store
GSShapefileDataStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE, url )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
urlurl
setUrl()
Set the spatial files data URL
GSShapefileDataStore$setUrl(url)
urlurl
setCharset()
Set the charset used for DBF file.
GSShapefileDataStore$setCharset(charset = "ISO-8859-1")
charsetcharset. Default value is 'ISO-8859-1'
setCreateSpatialIndex()
Set the 'Create Spatial Index' option
GSShapefileDataStore$setCreateSpatialIndex(create = TRUE)
createcreate. Default is TRUE
setMemoryMappedBuffer()
Set the 'Memory Mapped Buffer' option
GSShapefileDataStore$setMemoryMappedBuffer(buffer = FALSE)
bufferbuffer. Default is FALSE
setCacheReuseMemoryMaps()
Set the 'Cache & Reuse Memory Maps' option.
GSShapefileDataStore$setCacheReuseMemoryMaps(maps = TRUE)
mapsmaps. Default is TRUE
setDefautConnectionParameters()
Set default connection parameters
GSShapefileDataStore$setDefautConnectionParameters()
clone()
The objects of this class are cloneable with this method.
GSShapefileDataStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSShapefileDataStore$new(name = "ds", description = "des", enabled = TRUE, url = "file://data/shape.shp")GSShapefileDataStore$new(name = "ds", description = "des", enabled = TRUE, url = "file://data/shape.shp")
Geoserver REST API ShapeFileDirectoryDataStore
Geoserver REST API ShapeFileDirectoryDataStore
R6Class object.
Object of R6Class for modelling a GeoServer Shapefile directory dataStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractDataStore -> geosapi::GSShapefileDataStore -> GSShapefileDirectoryDataStore
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractDataStore$addConnectionParameter()geosapi::GSAbstractDataStore$decode()geosapi::GSAbstractDataStore$delConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameters()new()
initializes a shapefile directory data store
GSShapefileDirectoryDataStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE, url )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
urlurl
setUrl()
Set the spatial files data URL
GSShapefileDirectoryDataStore$setUrl(url)
urlurl
setCharset()
Set the charset used for DBF file.
GSShapefileDirectoryDataStore$setCharset(charset = "ISO-8859-1")
charsetcharset. Default value is 'ISO-8859-1'
setCreateSpatialIndex()
Set the 'Create Spatial Index' option
GSShapefileDirectoryDataStore$setCreateSpatialIndex(create = TRUE)
createcreate. Default is TRUE
setMemoryMappedBuffer()
Set the 'Memory Mapped Buffer' option
GSShapefileDirectoryDataStore$setMemoryMappedBuffer(buffer = FALSE)
bufferbuffer. Default is FALSE
setCacheReuseMemoryMaps()
Set the 'Cache & Reuse Memory Maps' option.
GSShapefileDirectoryDataStore$setCacheReuseMemoryMaps(maps = TRUE)
mapsmaps. Default is TRUE
setDefautConnectionParameters()
Set default connection parameters
GSShapefileDirectoryDataStore$setDefautConnectionParameters()
clone()
The objects of this class are cloneable with this method.
GSShapefileDirectoryDataStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSShapefileDirectoryDataStore$new(name = "ds", description = "des", enabled = TRUE, url = "file://data")GSShapefileDirectoryDataStore$new(name = "ds", description = "des", enabled = TRUE, url = "file://data")
Geoserver REST API DataStore
Geoserver REST API DataStore
R6Class object.
Object of R6Class for setting a GS Shiny monitoring app
new()
Initializes a Geoserver shiny monitoring tool
GSShinyMonitor$new(manager, file = NULL, append = FALSE, sleep = 1)
managerobject of class GSManager
filefile File where to store monitoring results
appendappend. Whether results should be appended to existing file
sleepsleep. Interval in seconds to trigger monitor calls
getMetric()
Get metric
GSShinyMonitor$getMetric(name)
namename
the Geoserver monitored metric
run()
Runs the application
GSShinyMonitor$run()
clone()
The objects of this class are cloneable with this method.
GSShinyMonitor$clone(deep = FALSE)
deepWhether to make a deep clone.
Internal class used for GSManager$monitor method
Emmanuel Blondel <[email protected]>
Geoserver REST API Style Manager
Geoserver REST API Style Manager
R6Class object.
Object of R6Class with methods for managing the styles
of a GeoServer instance.
geosapi::GSManager -> GSStyleManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getStyles()
Get the list of available styles.
GSStyleManager$getStyles(ws = NULL)
wsan optional workspace name
an object of class list containing items of class GSStyle
getStyleNames()
Get the list of available style names
GSStyleManager$getStyleNames(ws = NULL)
wsan optional workspace name
a vector of class character
getStyle()
Get a GSStyle object given a style name.
GSStyleManager$getStyle(style, ws = NULL)
stylestyle name
wsworkspace name. Optional
object of class GSStyle
createStyle()
Creates a GeoServer style given a name.
GSStyleManager$createStyle(file, sldBody = NULL, name, raw = FALSE, ws = NULL)
filefile
sldBodySLD body
namename
rawraw
wsworkspace name
TRUE if the style has been successfully created, FALSE otherwise
updateStyle()
Updates a GeoServer style given a name.
GSStyleManager$updateStyle(file, sldBody = NULL, name, raw = FALSE, ws = NULL)
filefile
sldBodySLD body
namename
rawraw
wsworkspace name
TRUE if the style has been successfully updated, FALSE otherwise
deleteStyle()
Deletes a style given a name.
By defaut, the option recurse is set to FALSE, ie datastore layers are not removed.
To remove all coverage store layers, set this option to TRUE. The purge parameter is used
to customize the delete of files on disk (in case the underlying reader implements a delete method).
GSStyleManager$deleteStyle(name, recurse = FALSE, purge = FALSE, ws = NULL)
namename
recurserecurse
purgepurge
wsworkspace name
TRUE if the style has been successfully deleted, FALSE otherwise
getSLDVersion()
Get SLD version
GSStyleManager$getSLDVersion(sldBody)
sldBodySLD body
getSLDBody()
Get SLD body
GSStyleManager$getSLDBody(style, ws = NULL)
stylestyle name
wsworkspace name
an object of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSStyleManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSStyleManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSStyleManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
Geoserver REST API Manager Utils
Geoserver REST API Manager Utils
R6Class object.
Object of R6Class with static util methods for communication
with the REST API of a GeoServer instance.
getUserAgent()This method is used to get the user agent for performing GeoServer API requests. Here the user agent will be compound by geosapi package name and version.
getUserToken(user, pwd)This method is used to get the user authentication token for performing GeoServer API requests. Token is given a Base64 encoded string.
GET(url, user, pwd, path, verbose)This method performs a GET request for a given path to GeoServer REST API
PUT(url, user, pwd, path, filename, contentType, verbose)This method performs a PUT request for a given path to GeoServer REST API,
to upload a file of name filename with given contentType
POST(url, user, pwd, path, content, contentType, verbose)This method performs a POST request for a given path to GeoServer REST API,
to post content of given contentType
DELETE(url, user, pwd, path, verbose)This method performs a DELETE request for a given GeoServer resource identified
by a path in GeoServer REST API
parseResponseXML(req)Convenience method to parse XML response from GeoServer REST API.
getPayloadXML(obj)Convenience method to create payload XML to send to GeoServer.
setBbox(minx, miny, maxx, maxy, bbox, crs)Creates an list object representing a bbox. Either from coordinates or from
a bbox object (matrix).
clone()
The objects of this class are cloneable with this method.
GSUtils$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
This class allows to grab the GeoServer version. By default, a tentative is made to fetch version from web admin default page, since Geoserver REST API did not support GET operation for the Geoserver version in past releases of Geoserver.
R6Class object.
Geoserver REST API - Geoserver Version
Object of R6Class for modelling a GeoServer version
versionversion
valuevalue
new()
Initializes an object of class GSVersion
GSVersion$new(url, user, pwd)
urlurl
useruser
pwdpwd
lowerThan()
Compares to a version and returns TRUE if it is lower, FALSE otherwise
GSVersion$lowerThan(version)
versionversion
TRUE if lower, FALSE otherwise
greaterThan()
Compares to a version and returns TRUE if it is greater, FALSE otherwise
GSVersion$greaterThan(version)
versionversion
TRUE if greater, FALSE otherwise
equalTo()
Compares to a version and returns TRUE if it is equal, FALSE otherwise
GSVersion$equalTo(version)
versionversion
TRUE if equal, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSVersion$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: version <- GSVersion$new( url = "http://localhost:8080/geoserver", user = "admin", pwd = "geoserver" ) ## End(Not run)## Not run: version <- GSVersion$new( url = "http://localhost:8080/geoserver", user = "admin", pwd = "geoserver" ) ## End(Not run)
Geoserver REST API GSVirtualTable
Geoserver REST API GSVirtualTable
R6Class object.
Object of R6Class for modelling a GeoServer virtual table
geosapi::GSRESTResource -> GSVirtualTable
namename
sqlSQL statement
escapeSqlescape SQL?
keyColumnkey column
geometrygeometry
parameterslist of virtual parameters
new()
Initializes an object of class GSVirtualTable
GSVirtualTable$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSVirtualTable$decode(xml)
xmlobject of class xml_node-class
setName()
Set name
GSVirtualTable$setName(name)
namename
setSql()
Set SQL
GSVirtualTable$setSql(sql)
sqlsql
setEscapeSql()
Set escape SQL
GSVirtualTable$setEscapeSql(escapeSql)
escapeSqlescape SQL
setKeyColumn()
Set key column
GSVirtualTable$setKeyColumn(keyColumn)
keyColumnkey column
setGeometry()
Set geometry
GSVirtualTable$setGeometry(vtg)
vtgobject of class GSVirtualTableGeometry
addParameter()
Adds parameter
GSVirtualTable$addParameter(parameter)
parameterobject of class GSVirtualTableParameter
TRUE if added, FALSE otherwise
delParameter()
Deletes parameter
GSVirtualTable$delParameter(parameter)
parameterobject of class GSVirtualTableParameter
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSVirtualTable$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSVirtualTable$new()GSVirtualTable$new()
Geoserver REST API GSVirtualTableGeometry
Geoserver REST API GSVirtualTableGeometry
R6Class object.
Object of R6Class for modelling a GeoServer virtual table geometry
geosapi::GSRESTResource -> GSVirtualTableGeometry
namegeometry name
typegeometry type
sridgeometry SRID
new()
Initializes an object of class GSVirtualTableGeometry
GSVirtualTableGeometry$new(xml = NULL, name, type, srid)
xmlobject of class xml_node-class
namename
typetype
sridsrid
decode()
Decodes from XML
GSVirtualTableGeometry$decode(xml)
xmlobject of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSVirtualTableGeometry$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSVirtualTableGeometry$new(name = "work", type = "MultiPolygon", srid = 4326)GSVirtualTableGeometry$new(name = "work", type = "MultiPolygon", srid = 4326)
Geoserver REST API GSVirtualTableParameter
Geoserver REST API GSVirtualTableParameter
R6Class object.
Object of R6Class for modelling a GeoServer virtual table parameter
geosapi::GSRESTResource -> GSVirtualTableParameter
nameparameter name
defaultValueparameter default value
regexpValidatorparameter regexp validator
new()
Initializes an object of class GSVirtualTableParameter
GSVirtualTableParameter$new(xml = NULL, name, defaultValue, regexpValidator)
xmlobject of class xml_node-class
namename
defaultValuedefault value
regexpValidatorregexp validator
decode()
Decodes from XML
GSVirtualTableParameter$decode(xml)
xmlobject of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSVirtualTableParameter$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSVirtualTableParameter$new(name = "fieldname", defaultValue = "default_value", regexpValidator = "someregexp")GSVirtualTableParameter$new(name = "fieldname", defaultValue = "default_value", regexpValidator = "someregexp")
Geoserver REST API Workspace
Geoserver REST API Workspace
R6Class object.
Object of R6Class for modelling a GeoServer workspace
geosapi::GSRESTResource -> GSWorkspace
namename
new()
initializes a GSWorkspace
GSWorkspace$new(xml = NULL, name)
xmlan object of class xml_node-class
namename
decode()
Decodes from XML
GSWorkspace$decode(xml)
xmlan object of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSWorkspace$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
GSWorkspace$new(name = "work")GSWorkspace$new(name = "work")
Geoserver REST API Workspace Manager
Geoserver REST API Workspace Manager
R6Class object.
Object of R6Class with methods for managing the workspaces
of a GeoServer instance.
geosapi::GSManager -> GSWorkspaceManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getWorkspaces()
Get the list of available workspace. Returns an object of class list
containing items of class GSWorkspace
GSWorkspaceManager$getWorkspaces()
alist of GSWorkspace
getWorkspaceNames()
Get the list of available workspace names. Returns an vector of class character
GSWorkspaceManager$getWorkspaceNames()
a list of workspace names
getWorkspace()
Get a GSWorkspace object given a workspace name.
GSWorkspaceManager$getWorkspace(ws)
wsworkspace name
an object of class GSWorkspace
createWorkspace()
Creates a GeoServer workspace given a name, and an optional URI. If the URI
is not specified, GeoServer will automatically create an associated Namespace
with the URI built from the workspace name. If the URI is specified, the method
invokes the method createNamespace(ns, uri) of the GSNamespaceManager.
Returns TRUE if the workspace has been successfully created, FALSE otherwise
GSWorkspaceManager$createWorkspace(name, uri)
namename
uriuri
TRUE if created, FALSE otherwise
updateWorkspace()
Updates a GeoServer workspace given a name, and an optional URI. If the URI
is not specified, GeoServer will automatically update the associated Namespace
with the URI built from the workspace name. If the URI is specified, the method
invokes the method updateNamespace(ns, uri) of the GSNamespaceManager.
Returns TRUE if the workspace has been successfully updated, FALSE otherwise
GSWorkspaceManager$updateWorkspace(name, uri)
namename
uriuri
TRUE if created, FALSE otherwise
deleteWorkspace()
Deletes a GeoServer workspace given a name.
GSWorkspaceManager$deleteWorkspace(name, recurse = FALSE)
namename
recurserecurse
TRUE if the workspace has been successfully deleted, FALSE otherwise
getWorkspaceSettings()
Updates workspace settings
GSWorkspaceManager$getWorkspaceSettings(ws)
wsworkspace name
an object of class GSWorkspaceSettings
createWorkspaceSettings()
Creates workspace settings
GSWorkspaceManager$createWorkspaceSettings(ws, workspaceSettings)
wsworkspace name
workspaceSettingsobject of class GSWorkspaceSettings
TRUE if created, FALSE otherwise
updateWorkspaceSettings()
Updates workspace settings
GSWorkspaceManager$updateWorkspaceSettings(ws, workspaceSettings)
wsworkspace name
workspaceSettingsobject of class GSWorkspaceSettings
TRUE if updated, FALSE otherwise
deleteWorkspaceSettings()
Deletes workspace settings
GSWorkspaceManager$deleteWorkspaceSettings(ws)
wsworkspace name
TRUE if deleted, FALSE otherwise
clone()
The objects of this class are cloneable with this method.
GSWorkspaceManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: GSWorkspaceManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)## Not run: GSWorkspaceManager$new("http://localhost:8080/geoserver", "admin", "geoserver") ## End(Not run)
Geoserver REST API Workspace Setting
Geoserver REST API Workspace Setting
R6Class object.
Object of R6Class for modelling a GeoServer workspace settings
geosapi::GSRESTResource -> GSWorkspaceSettings
contactcontact
charsetcharset
numDecimalsnumber of decimal
onlineResourceonline resource
verboseverbose
verboseExceptionsverbose exceptions
localWorkspaceIncludesPrefixlocal workspace includes prefix
new()
This method is used to instantiate a GSWorkspaceSettings. This settings
object is required to activate a workspace configuration, using the method
GSManager$createWorkspaceSettings. Supported from GeoServer 2.12
GSWorkspaceSettings$new(xml = NULL)
xmlobject of class xml_node-class
decode()
Decodes from XML
GSWorkspaceSettings$decode(xml)
xmlobject of class xml_node-class
setCharset()
Set charset
GSWorkspaceSettings$setCharset(charset)
charsetcharset
setNumDecimals()
Set number of decimals
GSWorkspaceSettings$setNumDecimals(numDecimals)
numDecimalsnumber of decimals
setOnlineResource()
Set online resource
GSWorkspaceSettings$setOnlineResource(onlineResource)
onlineResourceonline resource
setVerbose()
Set verbose
GSWorkspaceSettings$setVerbose(verbose)
verboseverbose
setVerboseExceptions()
Set verbose exceptions
GSWorkspaceSettings$setVerboseExceptions(verboseExceptions)
verboseExceptionsverbose exceptions
setLocalWorkspaceIncludesPrefix()
Set local workspace includes prefix
GSWorkspaceSettings$setLocalWorkspaceIncludesPrefix(includesPrefix)
includesPrefixincludes prefix
clone()
The objects of this class are cloneable with this method.
GSWorkspaceSettings$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>
settings <- GSWorkspaceSettings$new() settings$setCharset("UTF-8") settings$setNumDecimals(5)settings <- GSWorkspaceSettings$new() settings$setCharset("UTF-8") settings$setNumDecimals(5)
Geoserver REST API WorldImageCoverageStore
Geoserver REST API WorldImageCoverageStore
R6Class object.
Object of R6Class for modelling a GeoServer WorldImage CoverageStore
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractCoverageStore -> GSWorldImageCoverageStore
urlurl
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractCoverageStore$decode()geosapi::GSAbstractCoverageStore$setUrl()new()
Initializes an WorldImage coverage store
GSWorldImageCoverageStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE, url = NULL )
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is TRUE
urlurl
clone()
The objects of this class are cloneable with this method.
GSWorldImageCoverageStore$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <[email protected]>