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] |
Maintainer: | Emmanuel Blondel <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.7-1 |
Built: | 2024-11-06 04:42:37 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]
Geoserver REST API CoverageStore
Geoserver REST API CoverageStore
R6Class
object.
Object of R6Class
for modelling a GeoServer CoverageStore
geosapi::GSRESTResource
-> geosapi::GSAbstractStore
-> GSAbstractCoverageStore
url
URL of the abstract coverage store
new()
initializes an abstract coverage store
GSAbstractCoverageStore$new( xml = NULL, type = NULL, name = NULL, description = "", enabled = TRUE, url = NULL )
xml
an object of class xml_node-class to create object from XML
type
the type of coverage store
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
url
URL of the store
decode()
Decodes a coverage store from XML
GSAbstractCoverageStore$decode(xml)
xml
an object of class xml_node-class
an object of class GSAbstractCoverageStore
setUrl()
set coverage store URL
GSAbstractCoverageStore$setUrl(url)
url
the store URL to set
clone()
The objects of this class are cloneable with this method.
GSAbstractCoverageStore$clone(deep = FALSE)
deep
Whether 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
connectionParameters
the list of connection parameters
new()
initializes an abstract data store
GSAbstractDataStore$new( xml = NULL, type = NULL, name = NULL, description = "", enabled = TRUE, connectionParameters )
xml
an object of class xml_node-class to create object from XML
type
the type of coverage store
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
connectionParameters
the list of connection parameters
decode()
Decodes a data store from XML
GSAbstractDataStore$decode(xml)
xml
an 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)
parameters
an object of class GSRESTEntrySet
addConnectionParameter()
Adds a connection parameter
GSAbstractDataStore$addConnectionParameter(key, value)
key
connection parameter key
value
connection parameter value
TRUE
if added, FALSE
otherwise
setConnectionParameter()
Sets a connection parameter
GSAbstractDataStore$setConnectionParameter(key, value)
key
connection parameter key
value
connection parameter value
delConnectionParameter()
Removes a connection parameter
GSAbstractDataStore$delConnectionParameter(key)
key
connection parameter key
value
connection parameter value
TRUE
if removed, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSAbstractDataStore$clone(deep = FALSE)
deep
Whether 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 )
xml
an object of class xml_node-class to create object from XML
type
the type of DB data store
dbType
DB type
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
setDatabaseType()
Set database type
GSAbstractDBDataStore$setDatabaseType(dbtype)
dbtype
DB type
setNamespace()
Set namespace
GSAbstractDBDataStore$setNamespace(namespace)
namespace
namespace
setHost()
Set host
GSAbstractDBDataStore$setHost(host)
host
host
setPort()
Set port
GSAbstractDBDataStore$setPort(port)
port
port
setDatabase()
Set database
GSAbstractDBDataStore$setDatabase(database)
database
database
setSchema()
Set schema
GSAbstractDBDataStore$setSchema(schema)
schema
schema
setUser()
Set user
GSAbstractDBDataStore$setUser(user)
user
user
setPassword()
Set password
GSAbstractDBDataStore$setPassword(password)
password
password
setJndiReferenceName()
Set JNDI reference name
GSAbstractDBDataStore$setJndiReferenceName(jndiReferenceName)
jndiReferenceName
JNDI reference name
setExposePrimaryKeys()
Set expose primary keyws
GSAbstractDBDataStore$setExposePrimaryKeys(exposePrimaryKeys)
exposePrimaryKeys
expose primary keys
setMinConnections()
Set min connections
GSAbstractDBDataStore$setMinConnections(minConnections = 1)
minConnections
min connections. Default is 11
setMaxConnections()
Set max connections
GSAbstractDBDataStore$setMaxConnections(maxConnections = 10)
maxConnections
max connections. Default is 10
setFetchSize()
Set fetch size
GSAbstractDBDataStore$setFetchSize(fetchSize = 1000)
fetchSize
fetch size. Default is 1000
setConnectionTimeout()
Set connection timeout
GSAbstractDBDataStore$setConnectionTimeout(seconds = 20)
seconds
timeout (in seconds). Default is 20
setValidateConnections()
Set validate connection
GSAbstractDBDataStore$setValidateConnections(validateConnections)
validateConnections
Validate connections
setPrimaryKeyMetadataTable()
Set primary key metadata table
GSAbstractDBDataStore$setPrimaryKeyMetadataTable(primaryKeyMetadataTable)
primaryKeyMetadataTable
primary key metadata table
setLooseBBox()
Set loose bbox
GSAbstractDBDataStore$setLooseBBox(looseBBox = TRUE)
looseBBox
loose bbox. Default is TRUE
setPreparedStatements()
Set prepared statemnts
GSAbstractDBDataStore$setPreparedStatements(preparedStatements = FALSE)
preparedStatements
prepared Statements. Default is FALSE
setMaxOpenPreparedStatements()
Set max open prepared statements
GSAbstractDBDataStore$setMaxOpenPreparedStatements( maxOpenPreparedStatements = 50 )
maxOpenPreparedStatements
max open preepared statements. Default is 50
setEstimatedExtends()
Set estimatedExtends
GSAbstractDBDataStore$setEstimatedExtends(estimatedExtends = FALSE)
estimatedExtends
estimated 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)
deep
Whether 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
full
whether store object is fully described
name
store name
enabled
if the store is enabled or not
description
store description
type
store type
workspace
workspace name
new()
initializes an abstract store
GSAbstractStore$new( xml = NULL, storeType, type = NULL, name = NULL, description = "", enabled = TRUE )
xml
an object of class xml_node-class to create object from XML
storeType
store type
type
the type of coverage store
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
decode()
Decodes store from XML
GSAbstractStore$decode(xml)
xml
object of class xml_node-class
setType()
Set type
GSAbstractStore$setType(type)
type
type
setEnabled()
Set enabled
GSAbstractStore$setEnabled(enabled)
enabled
enabled
setDescription()
Set description
GSAbstractStore$setDescription(description)
description
description
clone()
The objects of this class are cloneable with this method.
GSAbstractStore$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
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
url
url
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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
url
url
clone()
The objects of this class are cloneable with this method.
GSArcGridCoverageStore$clone(deep = FALSE)
deep
Whether 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
cqlFilter
CQL 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)
xml
object of class xml_node-class
decode()
Decodes coverage from XML
GSCoverage$decode(xml)
xml
object of class xml_node-class
setView()
Set view
GSCoverage$setView(cv)
cv
cv, 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)
deep
Whether 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
setCompositionType
Sets 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
inputCoverageBands
list of input coverage bands
definition
coverage band definition
index
coverage band index
compositionType
coverage band composition type
new()
Initalizes a GSCoverageBand
GSCoverageBand$new(xml = NULL)
xml
object of class xml_node-class
decode()
Decodes from XML
GSCoverageBand$decode(xml)
xml
object of class xml_node-class
setName()
Set name
GSCoverageBand$setName(name)
name
name
setDefinition()
Set definition
GSCoverageBand$setDefinition(definition)
definition
definition
setIndex()
Set index
GSCoverageBand$setIndex(index)
index
index
setCompositionType()
Set composition type
GSCoverageBand$setCompositionType(compositionType)
compositionType
composition type
addInputBand()
Adds an input band
GSCoverageBand$addInputBand(band)
band
object of class GSInputCoverageBand
TRUE
if added, FALSE
otherwise
delInputBand()
Deletes an input band
GSCoverageBand$delInputBand(band)
band
object of class GSInputCoverageBand
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSCoverageBand$clone(deep = FALSE)
deep
Whether 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)
ws
workspace name
the list of coverage stores
getCoverageStoreNames()
Get the list of available coverage store names. Returns an vector of class character
GSCoverageStoreManager$getCoverageStoreNames(ws)
ws
workspace 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)
ws
workspace name
cs
coverage 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)
ws
workspace name
coverageStore
coverage 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)
ws
workspace name
coverageStore
coverage 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 )
ws
workspace name
cs
coverage store name
recurse
recurse
purge
purge
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)
ws
workspace name
cs
coverage 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)
ws
workspace name
cs
coverage store name
the list of coverage names
getCoverage()
Get coverage
GSCoverageStoreManager$getCoverage(ws, cs, cv)
ws
workspace name
cs
coverage store name
cv
coverage name
createCoverage()
Creates a new coverage given a workspace, coverage store names and an object of class GSCoverage
GSCoverageStoreManager$createCoverage(ws, cs, coverage)
ws
workspace name
cs
coverage store name
coverage
object 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)
ws
workspace name
cs
coverage store name
coverage
object 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)
ws
workspace name
cs
coverage store name
cv
coverage name
recurse
recurse
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 )
ws
workspace name
cs
coverage store name
endpoint
endpoint. Default is "file"
extension
extension
filename
filename
configure
configure. Default is "first"
update
update. Default is "append"
contentType
content 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" )
ws
workspace name
cs
coverage store name
endpoint
endpoint. Default is "file"
filename
filename
configure
configure. Default is "first"
update
update. 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" )
ws
workspace name
cs
coverage store name
endpoint
endpoint. Default is "file"
filename
filename
configure
configure. Default is "first"
update
update. 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" )
ws
workspace name
cs
coverage store name
endpoint
endpoint. Default is "file"
filename
filename
configure
configure. Default is "first"
update
update. 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" )
ws
workspace name
cs
coverage store name
endpoint
endpoint. Default is "file"
filename
filename
configure
configure. Default is "first"
update
update. Default is "append"
TRUE
if uploaded, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSCoverageStoreManager$clone(deep = FALSE)
deep
Whether 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
name
name
envelopeCompositionType
envelope composition type
selectedResolution
selected resolution
selectedResolutionIndex
selected resolution index
coverageBands
coverage bands
new()
Initializes an object of class GSCoverageView
GSCoverageView$new(xml = NULL)
xml
object of class xml_node-class
decode()
Decodes from XML
GSCoverageView$decode(xml)
xml
object of class xml_node-class
setName()
Set name
GSCoverageView$setName(name)
name
name
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)
envelopeCompositionType
envelope composition type
setSelectedResolution()
Set selected resolution
GSCoverageView$setSelectedResolution(selectedResolution)
selectedResolution
selected resolution
setSelectedResolutionIndex()
Set selected resolution index
GSCoverageView$setSelectedResolutionIndex(selectedResolutionIndex)
selectedResolutionIndex
selected resolution index
addBand()
Adds band
GSCoverageView$addBand(band)
band
object of class GSCoverageBand
TRUE
if added, FALSE
otherwise
delBand()
Deletes band
GSCoverageView$delBand(band)
band
object of class GSCoverageBand
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSCoverageView$clone(deep = FALSE)
deep
Whether 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)
ws
workspace name
an object of class list
giving items of class GSAbstractDataStore
getDataStoreNames()
Get the list of available dataStore names.
GSDataStoreManager$getDataStoreNames(ws)
ws
workspace name
a vector of class character
getDataStore()
Get an object of class GSAbstractDataStore
given a workspace and datastore names.
GSDataStoreManager$getDataStore(ws, ds)
ws
workspace name
ds
datastore name
the datastore
createDataStore()
Creates a datastore given a workspace and an object of class GSAbstractDataStore
.
GSDataStoreManager$createDataStore(ws, dataStore)
ws
workspace name
dataStore
datastore 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)
ws
workspace name
dataStore
datastore 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)
ws
workspace name
ds
datastore name
recurse
recurse
TRUE
if deleted, FALSE
otherwise
getFeatureTypes()
Get the list of available feature types for given workspace and datastore.
GSDataStoreManager$getFeatureTypes(ws, ds, list = "configured")
ws
workspace name
ds
datastore name
list
list 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)
ws
workspace name
ds
datastore 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)
ws
workspace name
ds
datastore name
ft
feature 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)
ws
workspace name
ds
datastore name
featureType
feature 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)
ws
workspace name
ds
datastore name
featureType
feature 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)
ws
workspace name
ds
datastore name
ft
feature type name
recurse
recurse
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)
ws
workspace name
ds
datastore name
featureType
object of class GSFeatureType
layer
object 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)
ws
workspace name
ds
datastore name
lyr
layer 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 )
ws
workspace name
ds
datastore name
endpoint
endpoint
extension
extension
configure
configure strategy among values: "first" or "none"
update
update strategy, among values: "append", "overwrite"
filename
file name of the resource to upload
charset
charset
contentType
content 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" )
ws
workspace name
ds
datastore name
endpoint
endpoint
configure
configure strategy among values: "first" or "none"
update
update strategy, among values: "append", "overwrite"
filename
file name of the resource to upload
charset
charset
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" )
ws
workspace name
ds
datastore name
endpoint
endpoint
configure
configure strategy among values: "first" or "none"
update
update strategy, among values: "append", "overwrite"
filename
file name of the resource to upload
charset
charset
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" )
ws
workspace name
ds
datastore name
endpoint
endpoint
configure
configure strategy among values: "first" or "none"
update
update strategy, among values: "append", "overwrite"
filename
file name of the resource to upload
charset
charset
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" )
ws
workspace name
ds
datastore name
endpoint
endpoint
configure
configure strategy among values: "first" or "none"
update
update strategy, among values: "append", "overwrite"
filename
file name of the resource to upload
charset
charset
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" )
ws
workspace name
ds
datastore name
endpoint
endpoint
configure
configure strategy among values: "first" or "none"
update
update strategy, among values: "append", "overwrite"
filename
file name of the resource to upload
charset
charset
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" )
ws
workspace name
ds
datastore name
endpoint
endpoint
configure
configure strategy among values: "first" or "none"
update
update strategy, among values: "append", "overwrite"
filename
file name of the resource to upload
charset
charset
TRUE
if uploaded, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSDataStoreManager$clone(deep = FALSE)
deep
Whether 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
enabled
true/false
presentation
dimension presentation
resolution
dimension resolution
units
dimension units
unitSymbol
dimension unitsSymbol
new()
Initializes an object of class GSDimension
GSDimension$new(xml = NULL)
xml
object of class xml_node-class
decode()
Decodes from XML
GSDimension$decode(xml)
xml
object of class xml_node-class
setEnabled()
Set enabled
GSDimension$setEnabled(enabled)
enabled
enabled
setPresentation()
Set presentation
GSDimension$setPresentation(presentation, interval = NULL)
presentation
presentation. Possible values: "LIST", "CONTINUOUS_INTERVAL", "DISCRETE_INTERVAL"
interval
interval
setUnit()
Set unit
GSDimension$setUnit(unit)
unit
unit
setUnitSymbol()
Set unit symbol
GSDimension$setUnitSymbol(unitSymbol)
unitSymbol
unit symbol
clone()
The objects of this class are cloneable with this method.
GSDimension$clone(deep = FALSE)
deep
Whether 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
attribute
attribute
endAttribute
end attribute
new()
Initializes an object of class GSFeatureDimension
GSFeatureDimension$new(xml = NULL)
xml
object of class xml_node-class
decode()
Decodes from XML
GSFeatureDimension$decode(xml)
xml
object of class xml_node-class
setAttribute()
Set attribute
GSFeatureDimension$setAttribute(attribute)
attribute
attribute
setEndAttribute()
Set end attribute
GSFeatureDimension$setEndAttribute(endAttribute)
endAttribute
end attribute
clone()
The objects of this class are cloneable with this method.
GSFeatureDimension$clone(deep = FALSE)
deep
Whether 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
cqlFilter
CQL 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)
xml
object of class xml_node-class
decode()
Decodes from XML
GSFeatureType$decode(xml)
xml
object of class xml_node-class
setCqlFilter()
Set CQL filter
GSFeatureType$setCqlFilter(cqlFilter)
cqlFilter
CQL filter
setVirtualTable()
Set virtual table
GSFeatureType$setVirtualTable(vt)
vt
object of class GSVirtualTable
TRUE
if set/added, FALSE
otherwise
delVirtualTable()
Deletes virtual table
GSFeatureType$delVirtualTable()
vt
object of class GSVirtualTable
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSFeatureType$clone(deep = FALSE)
deep
Whether 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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
database
database
clone()
The objects of this class are cloneable with this method.
GSGeoPackageDataStore$clone(deep = FALSE)
deep
Whether 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
url
url
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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
url
url
clone()
The objects of this class are cloneable with this method.
GSGeoTIFFCoverageStore$clone(deep = FALSE)
deep
Whether 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
url
url
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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
url
url
clone()
The objects of this class are cloneable with this method.
GSImageMosaicCoverageStore$clone(deep = FALSE)
deep
Whether 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
coverageName
coverage name
band
band
new()
Initializes an object of class GSInputCoverageBand
GSInputCoverageBand$new(xml = NULL, coverageName = NULL, band = NULL)
xml
object of class xml_node-class
coverageName
coverage name
band
band name
decode()
Decodes from XML
GSInputCoverageBand$decode(xml)
xml
object of class xml_node-class
setCoverageName()
Set coverage name
GSInputCoverageBand$setCoverageName(coverageName)
coverageName
coverage name
setBand()
Set band
GSInputCoverageBand$setBand(band)
band
band
clone()
The objects of this class are cloneable with this method.
GSInputCoverageBand$clone(deep = FALSE)
deep
Whether 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
full
full
name
name
path
path
defaultStyle
default style
styles
styles
enabled
enabled
queryable
queryable
advertised
advertised
new()
Initializes an object of class GSLayer
GSLayer$new(xml = NULL)
xml
object of class xml_node-class
decode()
Decodes from XML
GSLayer$decode(xml)
xml
object of class xml_node-class
setName()
Set name
GSLayer$setName(name)
name
name
setPath()
Set path
GSLayer$setPath(path)
path
path
setEnabled()
Set enabled
GSLayer$setEnabled(enabled)
enabled
enabled
setQueryable()
Set queryable
GSLayer$setQueryable(queryable)
queryable
queryable
setAdvertised()
Set advertised
GSLayer$setAdvertised(advertised)
advertised
advertised
setDefaultStyle()
Set default style
GSLayer$setDefaultStyle(style)
style
object o class GSStyle or character
setStyles()
Set styles
GSLayer$setStyles(styles)
styles
styles
addStyle()
Adds style
GSLayer$addStyle(style)
style
style, object o class GSStyle or character
TRUE
if added, FALSE
otherwise
delStyle()
Deletes style
GSLayer$delStyle(style)
style
style, 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)
deep
Whether to make a deep clone.
geosapi::GSRESTResource
-> GSStyle
full
full
name
name
filename
filename
new()
Initializes a GSStyle
GSStyle$new(xml = NULL, name = NULL, filename = NULL)
xml
an object of class xml_node-class
name
name
filename
filename
decode()
Decodes from XML
GSStyle$decode(xml)
xml
an object of class xml_node-class
setName()
set name
GSStyle$setName(name)
name
name
setFilename()
Set filename
GSStyle$setFilename(filename)
filename
filename
clone()
The objects of this class are cloneable with this method.
GSStyle$clone(deep = FALSE)
deep
Whether 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
full
full
name
name
mode
mode
title
title
abstractTxt
abstract
workspace
workspace
publishables
publishables
styles
styles
metadataLinks
metadata links
bounds
bounds
new()
Initializes an object of class GSLayerGroup
GSLayerGroup$new(xml = NULL)
xml
object of class xml_node-class
decode()
Decodes from XML
GSLayerGroup$decode(xml)
xml
object of class xml_node-class
setName()
Set name
GSLayerGroup$setName(name)
name
name
setMode()
Set mode
GSLayerGroup$setMode(mode)
mode
a mode value among "SINGLE", "NAMED", "CONTAINER", "EO"
setTitle()
Set title
GSLayerGroup$setTitle(title)
title
title
setAbstract()
Set abstract
GSLayerGroup$setAbstract(abstract)
abstract
abstract
setWorkspace()
Set workspace
GSLayerGroup$setWorkspace(workspace)
workspace
workspace name, object of class GSWorkspace or character
addLayer()
Adds layer
GSLayerGroup$addLayer(layer, style)
layer
layer name
style
style name
addLayerGroup()
Adds layer group
GSLayerGroup$addLayerGroup(layerGroup)
layerGroup
layer group
addPublishable()
Adds publishable
GSLayerGroup$addPublishable(publishable)
publishable
publishable
TRUE
if added, FALSE
otherwise
setStyles()
Set styles
GSLayerGroup$setStyles(styles)
styles
styles
addStyle()
Adds a style
GSLayerGroup$addStyle(style)
style
style
TRUE
if added, FALSE
otherwise
setMetadataLinks()
Set metadata links
GSLayerGroup$setMetadataLinks(metadataLinks)
metadataLinks
metadata links
addMetadataLink()
Adds metadata link
GSLayerGroup$addMetadataLink(metadataLink)
metadataLink
object of class GSMetadataLink
TRUE
if added, FALSE
otherwise
deleteMetadataLink()
Deletes metadata link
GSLayerGroup$deleteMetadataLink(metadataLink)
metadataLink
object of class GSMetadataLink
TRUE
if deleted, FALSE
otherwise
setBounds()
Set bounds
GSLayerGroup$setBounds(minx, miny, maxx, maxy, bbox = NULL, crs)
minx
minx
miny
miny
maxx
maxx
maxy
maxy
bbox
bbox
crs
crs
clone()
The objects of this class are cloneable with this method.
GSLayerGroup$clone(deep = FALSE)
deep
Whether 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)
lyr
layer name
an object of class GSLayer
createLayer()
Creates a new layer given an object of class GSLayer
GSLayerManager$createLayer(layer)
layer
object of class GSLayer
TRUE
if created, FALSE
otherwise
updateLayer()
Updates a layer given an object of class GSLayer
GSLayerManager$updateLayer(layer)
layer
object of class GSLayer
TRUE
if updated, FALSE
otherwise
deleteLayer()
Deletes layer given an object of class GSLayer
GSLayerManager$deleteLayer(lyr)
lyr
layer name
TRUE
if deleted, FALSE
otherwise
getLayerGroups()
Get layer groups
GSLayerManager$getLayerGroups(ws = NULL)
ws
workspace name. Optional
a list of objects of class GSLayerGroup
getLayerGroupNames()
Get layer group names
GSLayerManager$getLayerGroupNames(ws = NULL)
ws
workspace name
a list of layer group names, as vector of class character
getLayerGroup()
Get layer group
GSLayerManager$getLayerGroup(lyr, ws = NULL)
lyr
lyr
ws
workspace name
an object of class GSLayerGroup
createLayerGroup()
Creates a layer group
GSLayerManager$createLayerGroup(layerGroup, ws = NULL)
layerGroup
object of class GSLayerGroup
ws
workspace name. Optional
TRUE
if created, FALSE
otherwise
updateLayerGroup()
Updates a layer group
GSLayerManager$updateLayerGroup(layerGroup, ws = NULL)
layerGroup
object of class GSLayerGroup
ws
workspace name. Optional
TRUE
if updated, FALSE
otherwise
deleteLayerGroup()
Deletes a layer group
GSLayerManager$deleteLayerGroup(lyr, ws = NULL)
lyr
layer group name
ws
workspace name. Optional
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSLayerManager$clone(deep = FALSE)
deep
Whether 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)
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.info
if geosapi logs have to be printed
verbose.debug
if curl logs have to be printed
loggerType
the type of logger
url
the Base url of GeoServer
version
the version of Geoserver. Handled as GSVersion
object
logger()
Prints a log message
GSManager$logger(type, text)
type
type of log, "INFO", "WARN", "ERROR"
text
text
INFO()
Prints an INFO log message
GSManager$INFO(text)
text
text
WARN()
Prints an WARN log message
GSManager$WARN(text)
text
text
ERROR()
Prints an ERROR log message
GSManager$ERROR(text)
text
text
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")
url
url
user
user
pwd
pwd
logger
logger
keyring_backend
keyring 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)
file
file where to store monitoring results
append
whether to append results to existing files
sleep
sleeping 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)
deep
Whether 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
type
type
metadataType
metadata type
content
content
new()
Initializes an object of class GSMetadataLink
GSMetadataLink$new(xml = NULL, type, metadataType, content)
xml
object of class xml_node-class
type
type
metadataType
metadata type
content
content
decode()
Decodes from XML
GSMetadataLink$decode(xml)
xml
object of class xml_node-class
setType()
Set type type
GSMetadataLink$setType(type)
type
type
setMetadataType()
Set metadata type
GSMetadataLink$setMetadataType(metadataType)
metadataType
metadata type. Supported values: "ISO19115:2003", "FGDC", "TC211", "19139", "other"
setContent()
Set content
GSMetadataLink$setContent(content)
content
content
clone()
The objects of this class are cloneable with this method.
GSMetadataLink$clone(deep = FALSE)
deep
Whether 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)
offset
offset
an object of class data.frame
clone()
The objects of this class are cloneable with this method.
GSMonitorManager$clone(deep = FALSE)
deep
Whether 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
name
namespace name
prefix
namespace prefix
uri
namespace URI
full
completeness of the namespace description
new()
Initializes an object of class GSNamespace
GSNamespace$new(xml = NULL, prefix, uri)
xml
object of class xml_node-class
prefix
prefix
uri
uri
decode()
Decodes from XML
GSNamespace$decode(xml)
xml
object of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSNamespace$clone(deep = FALSE)
deep
Whether 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)
ns
namespace
an object of class GSNamespace
createNamespace()
Creates a GeoServer namespace given a prefix, and an optional URI.
GSNamespaceManager$createNamespace(prefix, uri)
prefix
prefix
uri
uri
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)
prefix
prefix
uri
uri
TRUE
if the namespace has been successfully updated, FALSE
otherwise
deleteNamespace()
Deletes a GeoServer namespace given a name.
GSNamespaceManager$deleteNamespace(name, recurse = FALSE)
name
name
recurse
recurse
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)
deep
Whether 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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether 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)
deep
Whether 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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether 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)
deep
Whether 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
full
full
name
name
attr_type
type of attribute
new()
Initializes a GSPublishable
GSPublishable$new(xml = NULL, name, type)
xml
an object of class xml_node-class
name
name
type
type
decode()
Decodes from XML
GSPublishable$decode(xml)
xml
an object of class xml_node-class
setName()
set name
GSPublishable$setName(name)
name
name
setType()
Set type
GSPublishable$setType(type)
type
type
clone()
The objects of this class are cloneable with this method.
GSPublishable$clone(deep = FALSE)
deep
Whether 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
full
full
name
resource name
nativeName
resource native name
title
resource title
description
resource description
abstract
resource abstract
keywords
resource keywords
metadataLinks
resource metadata links
nativeCRS
resource native CRS
srs
resource srs
nativeBoundingBox
resource lat/lon native bounding box
latLonBoundingBox
resource lat/lon bounding box
projectionPolicy
resource projection policy
enabled
enabled
metadata
metadata
new()
Initializes a GSResource
GSResource$new(rootName = NULL, xml = NULL)
rootName
root name
xml
object of class xml_node-class
decode()
Decodes from XML
GSResource$decode(xml)
xml
object of class xml_node-class
setEnabled()
Set enabled
GSResource$setEnabled(enabled)
enabled
enabled
setName()
Set name
GSResource$setName(name)
name
name
setNativeName()
Set native name
GSResource$setNativeName(nativeName)
nativeName
native name
setTitle()
Set title
GSResource$setTitle(title)
title
title
setDescription()
Set description
GSResource$setDescription(description)
description
description
setAbstract()
Set abstract
GSResource$setAbstract(abstract)
abstract
abstract
setKeywords()
Set keyword(s)
GSResource$setKeywords(keywords)
keywords
keywords
addKeyword()
Adds keyword
GSResource$addKeyword(keyword)
keyword
keyword
TRUE
if added, FALSE
otherwise
delKeyword()
Deletes keyword
GSResource$delKeyword(keyword)
keyword
keyword
TRUE
if deleted, FALSE
otherwise
setMetadataLinks()
Set metadata links
GSResource$setMetadataLinks(metadataLinks)
metadataLinks
metadata links
addMetadataLink()
Adds metadata link
GSResource$addMetadataLink(metadataLink)
metadataLink
object of class GSMetadataLink
TRUE
if added, FALSE
otherwise
deleteMetadataLink()
Deletes metadata link
GSResource$deleteMetadataLink(metadataLink)
metadataLink
object of class GSMetadataLink
TRUE
if deleted, FALSE
otherwise
setProjectionPolicy()
Set projection policy
GSResource$setProjectionPolicy(projectionPolicy)
projectionPolicy
projection policy
setSrs()
Set SRS
GSResource$setSrs(srs)
srs
srs
setNativeCRS()
Set native CRS
GSResource$setNativeCRS(nativeCRS)
nativeCRS
native crs
setLatLonBoundingBox()
Set LatLon bounding box
GSResource$setLatLonBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)
minx
minx
miny
miny
maxx
maxx
maxy
maxy
bbox
bbox
crs
crs
setNativeBoundingBox()
Set native bounding box
GSResource$setNativeBoundingBox(minx, miny, maxx, maxy, bbox = NULL, crs)
minx
minx
miny
miny
maxx
maxx
maxy
maxy
bbox
bbox
crs
crs
setMetadata()
Set metadata
GSResource$setMetadata(key, metadata)
key
key
metadata
metadata
TRUE
if added, FALSE
otherwise
delMetadata()
Deletes metadata
GSResource$delMetadata(key)
key
key
TRUE
if deleted, FALSE
otherwise
setMetadataDimension()
Set metadata dimension
GSResource$setMetadataDimension(key, dimension, custom = FALSE)
key
key
dimension
dimension
custom
custom
clone()
The objects of this class are cloneable with this method.
GSResource$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[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
entryset
entryset
new()
Initializes an object of class GSRESTEntrySet
GSRESTEntrySet$new(rootName, xml = NULL, entryset)
rootName
root name
xml
object of class xml_node-class
entryset
entry set
decode()
Decodes from XML
GSRESTEntrySet$decode(xml)
xml
object of class xml_node-class
setEntryset()
Set entry set
GSRESTEntrySet$setEntryset(entryset)
entryset
entry set
addEntry()
Adds entry set
GSRESTEntrySet$addEntry(key, value)
key
key
value
value
TRUE
if added, FALSE
otherwise
setEntry()
Sets entry set
GSRESTEntrySet$setEntry(key, value)
key
key
value
value
delEntry()
Deletes entry set
GSRESTEntrySet$delEntry(key)
key
key
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSRESTEntrySet$clone(deep = FALSE)
deep
Whether 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
rootName
root name
new()
Initializes an object of class GSRESTResource
GSRESTResource$new(xml, rootName)
xml
object of class xml_node-class
rootName
root name
decode()
Decodes from XML. Abstract method to be implemented by sub-classes
GSRESTResource$decode(xml)
xml
object 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
depth
class 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)
deep
Whether to make a deep clone.
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)
service
service
ws
workspace 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)
ws
workspace 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)
ws
workspace 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)
ws
workspace 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)
serviceSettings
serviceSettings object of class GSServiceSettings
service
service
ws
workspace 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)
service
service
ws
workspace 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)
serviceSettings
service settings object of class GSServiceSettings
ws
workspace 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)
serviceSettings
service settings object of class GSServiceSettings
ws
workspace 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)
serviceSettings
service settings object of class GSServiceSettings
ws
workspace name
TRUE
if deleted, FALSE
otherwise
enableWMS()
Enables WMS service settings
GSServiceManager$enableWMS(ws = NULL)
ws
workspace name
TRUE
if enabled, FALSE
otherwise
enableWFS()
Enables WFS service settings
GSServiceManager$enableWFS(ws = NULL)
ws
workspace name
TRUE
if enabled, FALSE
otherwise
enableWCS()
Enables WCS service settings
GSServiceManager$enableWCS(ws = NULL)
ws
workspace name
TRUE
if enabled, FALSE
otherwise
disableServiceSettings()
Disables service settings
GSServiceManager$disableServiceSettings(service, ws = NULL)
service
service
ws
workspace name
TRUE
if disabled, FALSE
otherwise
disableWMS()
Disables WMS service settings
GSServiceManager$disableWMS(ws = NULL)
ws
workspace name
TRUE
if disabled, FALSE
otherwise
disableWFS()
Disables WFS service settings
GSServiceManager$disableWFS(ws = NULL)
ws
workspace name
TRUE
if disabled, FALSE
otherwise
disableWCS()
Disables WCS service settings
GSServiceManager$disableWCS(ws = NULL)
ws
workspace name
TRUE
if disabled, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSServiceManager$clone(deep = FALSE)
deep
Whether 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 OWS service settings.
R6Class
object.
Geoserver REST API Service Setting
Object of R6Class
for modelling a GeoServer OWS service setting
geosapi::GSRESTResource
-> GSServiceSettings
enabled
is service enabled or not?
citeCompliant
is service cite compliant?
name
service name
title
service title
maintainer
service maintainer
abstrct
service abastract
accessConstraints
service access constraints
fees
service fees
keywords
services keywords
onlineResource
service online resource
schemaBaseURL
service schema base URL
verbose
service verbose or not?
new()
Initializes an object of class GSServiceSettings
GSServiceSettings$new(xml = NULL, service)
xml
object of class xml_node-class
service
service service acronym
decode()
Decodes from XML
GSServiceSettings$decode(xml)
xml
object of class xml_node-class
setEnabled()
Set enabled
GSServiceSettings$setEnabled(enabled)
enabled
enabled
setCiteCompliant()
Set cite compliant
GSServiceSettings$setCiteCompliant(citeCompliant)
citeCompliant
cite compliant
setName()
Set name
GSServiceSettings$setName(name)
name
name
setTitle()
Set title
GSServiceSettings$setTitle(title)
title
title
setMaintainer()
Set maintainer
GSServiceSettings$setMaintainer(maintainer)
maintainer
maintainer
setAbstract()
Set abstract
GSServiceSettings$setAbstract(abstract)
abstract
abstract
setAccessConstraints()
Set access constraints
GSServiceSettings$setAccessConstraints(accessConstraints)
accessConstraints
access constraints
setFees()
Set fees
GSServiceSettings$setFees(fees)
fees
fees
setKeywords()
Set keywords
GSServiceSettings$setKeywords(keywords)
keywords
keywords
addKeyword()
Adds a keyword
GSServiceSettings$addKeyword(keyword)
keyword
keyword
TRUE
if added, FALSE
otherwise
delKeyword()
Deletes a keyword
GSServiceSettings$delKeyword(keyword)
keyword
keyword
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSServiceSettings$clone(deep = FALSE)
deep
Whether 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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
url
url
setUrl()
Set the spatial files data URL
GSShapefileDataStore$setUrl(url)
url
url
setCharset()
Set the charset used for DBF file.
GSShapefileDataStore$setCharset(charset = "ISO-8859-1")
charset
charset. Default value is 'ISO-8859-1'
setCreateSpatialIndex()
Set the 'Create Spatial Index' option
GSShapefileDataStore$setCreateSpatialIndex(create = TRUE)
create
create. Default is TRUE
setMemoryMappedBuffer()
Set the 'Memory Mapped Buffer' option
GSShapefileDataStore$setMemoryMappedBuffer(buffer = FALSE)
buffer
buffer. Default is FALSE
setCacheReuseMemoryMaps()
Set the 'Cache & Reuse Memory Maps' option.
GSShapefileDataStore$setCacheReuseMemoryMaps(maps = TRUE)
maps
maps. 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)
deep
Whether 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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
url
url
setUrl()
Set the spatial files data URL
GSShapefileDirectoryDataStore$setUrl(url)
url
url
setCharset()
Set the charset used for DBF file.
GSShapefileDirectoryDataStore$setCharset(charset = "ISO-8859-1")
charset
charset. Default value is 'ISO-8859-1'
setCreateSpatialIndex()
Set the 'Create Spatial Index' option
GSShapefileDirectoryDataStore$setCreateSpatialIndex(create = TRUE)
create
create. Default is TRUE
setMemoryMappedBuffer()
Set the 'Memory Mapped Buffer' option
GSShapefileDirectoryDataStore$setMemoryMappedBuffer(buffer = FALSE)
buffer
buffer. Default is FALSE
setCacheReuseMemoryMaps()
Set the 'Cache & Reuse Memory Maps' option.
GSShapefileDirectoryDataStore$setCacheReuseMemoryMaps(maps = TRUE)
maps
maps. 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)
deep
Whether 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)
manager
object of class GSManager
file
file File where to store monitoring results
append
append. Whether results should be appended to existing file
sleep
sleep. Interval in seconds to trigger monitor calls
getMetric()
Get metric
GSShinyMonitor$getMetric(name)
name
name
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)
deep
Whether 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)
ws
an 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)
ws
an optional workspace name
a vector of class character
getStyle()
Get a GSStyle
object given a style name.
GSStyleManager$getStyle(style, ws = NULL)
style
style name
ws
workspace name. Optional
object of class GSStyle
createStyle()
Creates a GeoServer style given a name.
GSStyleManager$createStyle(file, sldBody = NULL, name, raw = FALSE, ws = NULL)
file
file
sldBody
SLD body
name
name
raw
raw
ws
workspace 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)
file
file
sldBody
SLD body
name
name
raw
raw
ws
workspace 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)
name
name
recurse
recurse
purge
purge
ws
workspace name
TRUE
if the style has been successfully deleted, FALSE
otherwise
getSLDVersion()
Get SLD version
GSStyleManager$getSLDVersion(sldBody)
sldBody
SLD body
getSLDBody()
Get SLD body
GSStyleManager$getSLDBody(style, ws = NULL)
style
style name
ws
workspace name
an object of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSStyleManager$clone(deep = FALSE)
deep
Whether 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)
deep
Whether 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
version
version
value
value
new()
Initializes an object of class GSVersion
GSVersion$new(url, user, pwd)
url
url
user
user
pwd
pwd
lowerThan()
Compares to a version and returns TRUE if it is lower, FALSE otherwise
GSVersion$lowerThan(version)
version
version
TRUE
if lower, FALSE
otherwise
greaterThan()
Compares to a version and returns TRUE if it is greater, FALSE otherwise
GSVersion$greaterThan(version)
version
version
TRUE
if greater, FALSE
otherwise
equalTo()
Compares to a version and returns TRUE if it is equal, FALSE otherwise
GSVersion$equalTo(version)
version
version
TRUE
if equal, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSVersion$clone(deep = FALSE)
deep
Whether 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
name
name
sql
SQL statement
escapeSql
escape SQL?
keyColumn
key column
geometry
geometry
parameters
list of virtual parameters
new()
Initializes an object of class GSVirtualTable
GSVirtualTable$new(xml = NULL)
xml
object of class xml_node-class
decode()
Decodes from XML
GSVirtualTable$decode(xml)
xml
object of class xml_node-class
setName()
Set name
GSVirtualTable$setName(name)
name
name
setSql()
Set SQL
GSVirtualTable$setSql(sql)
sql
sql
setEscapeSql()
Set escape SQL
GSVirtualTable$setEscapeSql(escapeSql)
escapeSql
escape SQL
setKeyColumn()
Set key column
GSVirtualTable$setKeyColumn(keyColumn)
keyColumn
key column
setGeometry()
Set geometry
GSVirtualTable$setGeometry(vtg)
vtg
object of class GSVirtualTableGeometry
addParameter()
Adds parameter
GSVirtualTable$addParameter(parameter)
parameter
object of class GSVirtualTableParameter
TRUE
if added, FALSE
otherwise
delParameter()
Deletes parameter
GSVirtualTable$delParameter(parameter)
parameter
object of class GSVirtualTableParameter
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSVirtualTable$clone(deep = FALSE)
deep
Whether 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
name
geometry name
type
geometry type
srid
geometry SRID
new()
Initializes an object of class GSVirtualTableGeometry
GSVirtualTableGeometry$new(xml = NULL, name, type, srid)
xml
object of class xml_node-class
name
name
type
type
srid
srid
decode()
Decodes from XML
GSVirtualTableGeometry$decode(xml)
xml
object of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSVirtualTableGeometry$clone(deep = FALSE)
deep
Whether 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
name
parameter name
defaultValue
parameter default value
regexpValidator
parameter regexp validator
new()
Initializes an object of class GSVirtualTableParameter
GSVirtualTableParameter$new(xml = NULL, name, defaultValue, regexpValidator)
xml
object of class xml_node-class
name
name
defaultValue
default value
regexpValidator
regexp validator
decode()
Decodes from XML
GSVirtualTableParameter$decode(xml)
xml
object of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSVirtualTableParameter$clone(deep = FALSE)
deep
Whether 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
name
name
new()
initializes a GSWorkspace
GSWorkspace$new(xml = NULL, name)
xml
an object of class xml_node-class
name
name
decode()
Decodes from XML
GSWorkspace$decode(xml)
xml
an object of class xml_node-class
clone()
The objects of this class are cloneable with this method.
GSWorkspace$clone(deep = FALSE)
deep
Whether 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()
a
list 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)
ws
workspace 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)
name
name
uri
uri
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)
name
name
uri
uri
TRUE
if created, FALSE
otherwise
deleteWorkspace()
Deletes a GeoServer workspace given a name.
GSWorkspaceManager$deleteWorkspace(name, recurse = FALSE)
name
name
recurse
recurse
TRUE
if the workspace has been successfully deleted, FALSE
otherwise
getWorkspaceSettings()
Updates workspace settings
GSWorkspaceManager$getWorkspaceSettings(ws)
ws
workspace name
an object of class GSWorkspaceSettings
createWorkspaceSettings()
Creates workspace settings
GSWorkspaceManager$createWorkspaceSettings(ws, workspaceSettings)
ws
workspace name
workspaceSettings
object of class GSWorkspaceSettings
TRUE
if created, FALSE
otherwise
updateWorkspaceSettings()
Updates workspace settings
GSWorkspaceManager$updateWorkspaceSettings(ws, workspaceSettings)
ws
workspace name
workspaceSettings
object of class GSWorkspaceSettings
TRUE
if updated, FALSE
otherwise
deleteWorkspaceSettings()
Deletes workspace settings
GSWorkspaceManager$deleteWorkspaceSettings(ws)
ws
workspace name
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSWorkspaceManager$clone(deep = FALSE)
deep
Whether 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
contact
contact
charset
charset
numDecimals
number of decimal
onlineResource
online resource
verbose
verbose
verboseExceptions
verbose exceptions
localWorkspaceIncludesPrefix
local 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)
xml
object of class xml_node-class
decode()
Decodes from XML
GSWorkspaceSettings$decode(xml)
xml
object of class xml_node-class
setCharset()
Set charset
GSWorkspaceSettings$setCharset(charset)
charset
charset
setNumDecimals()
Set number of decimals
GSWorkspaceSettings$setNumDecimals(numDecimals)
numDecimals
number of decimals
setOnlineResource()
Set online resource
GSWorkspaceSettings$setOnlineResource(onlineResource)
onlineResource
online resource
setVerbose()
Set verbose
GSWorkspaceSettings$setVerbose(verbose)
verbose
verbose
setVerboseExceptions()
Set verbose exceptions
GSWorkspaceSettings$setVerboseExceptions(verboseExceptions)
verboseExceptions
verbose exceptions
setLocalWorkspaceIncludesPrefix()
Set local workspace includes prefix
GSWorkspaceSettings$setLocalWorkspaceIncludesPrefix(includesPrefix)
includesPrefix
includes prefix
clone()
The objects of this class are cloneable with this method.
GSWorkspaceSettings$clone(deep = FALSE)
deep
Whether 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
url
url
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 )
xml
an object of class xml_node-class to create object from XML
name
coverage store name
description
coverage store description
enabled
whether the store should be enabled or not. Default is TRUE
url
url
clone()
The objects of this class are cloneable with this method.
GSWorldImageCoverageStore$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>