| GSDataStoreManager | R Documentation |
Geoserver REST API DataStore Manager
Geoserver REST API DataStore Manager
R6Class object.
Object of R6Class with methods for managing GeoServer
DataStores (i.e. stores of vector data)
geosapi::GSManager -> GSDataStoreManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getDataStores()Get the list of available dataStores.
GSDataStoreManager$getDataStores(ws)
wsworkspace name
an object of class list giving items of class GSAbstractDataStore
getDataStoreNames()Get the list of available dataStore names.
GSDataStoreManager$getDataStoreNames(ws)
wsworkspace name
a vector of class character
getDataStore()Get an object of class GSAbstractDataStore given a workspace and datastore names.
GSDataStoreManager$getDataStore(ws, ds)
wsworkspace name
dsdatastore name
the datastore
createDataStore()Creates a datastore given a workspace and an object of class GSAbstractDataStore.
GSDataStoreManager$createDataStore(ws, dataStore)
wsworkspace name
dataStoredatastore object of class GSAbstractDataStore
TRUE if created, FALSE otherwise
updateDataStore()Updates a datastore given a workspace and an object of class GSAbstractDataStore.
GSDataStoreManager$updateDataStore(ws, dataStore)
wsworkspace name
dataStoredatastore object of class GSAbstractDataStore
TRUE if updated, FALSE otherwise
deleteDataStore()Deletes a datastore given workspace and datastore names.
By defaut, the option recurse is set to FALSE, ie datastore layers are not removed.
To remove all datastore layers, set this option to TRUE.
GSDataStoreManager$deleteDataStore(ws, ds, recurse = FALSE)
wsworkspace name
dsdatastore name
recurserecurse
TRUE if deleted, FALSE otherwise
getFeatureTypes()Get the list of available feature types for given workspace and datastore.
GSDataStoreManager$getFeatureTypes(ws, ds, list = "configured")
wsworkspace name
dsdatastore name
listlist type value, among "configured", "available", "available_with_geom", "all"
an object of class list giving items of class GSFeatureType
getFeatureTypeNames()Get the list of available feature type names for given workspace and datastore.
GSDataStoreManager$getFeatureTypeNames(ws, ds)
wsworkspace name
dsdatastore name
a vector of classcharacter
getFeatureType()Get an object of class GSFeatureType given a workspace, datastore and feature type names.
GSDataStoreManager$getFeatureType(ws, ds, ft)
wsworkspace name
dsdatastore name
ftfeature type name
an object of class GSFeatureType
createFeatureType()Creates a new featureType given a workspace, datastore names and an object of class GSFeatureType
GSDataStoreManager$createFeatureType(ws, ds, featureType)
wsworkspace name
dsdatastore name
featureTypefeature type
TRUE if created, FALSE otherwise
updateFeatureType()Updates a featureType given a workspace, datastore names and an object of class GSFeatureType
GSDataStoreManager$updateFeatureType(ws, ds, featureType)
wsworkspace name
dsdatastore name
featureTypefeature type
TRUE if updated, FALSE otherwise
deleteFeatureType()Deletes a featureType given a workspace, datastore names, and an object of
class GSFeatureType. By defaut, the option recurse is
set to FALSE, ie datastore layers are not removed.
GSDataStoreManager$deleteFeatureType(ws, ds, ft, recurse = FALSE)
wsworkspace name
dsdatastore name
ftfeature type name
recurserecurse
TRUE if deleted, FALSE otherwise
publishLayer()Publish a feature type/layer pair given a workspace and datastore. The name 'layer' here encompasses both GSFeatureType and GSLayer resources.
GSDataStoreManager$publishLayer(ws, ds, featureType, layer)
wsworkspace name
dsdatastore name
featureTypeobject of class GSFeatureType
layerobject of class GSLayer
TRUE if published, FALSE otherwise
unpublishLayer()Unpublish a feature type/layer pair given a workspace and datastore. The name 'layer' here encompasses both GSFeatureType and GSLayer resources.
GSDataStoreManager$unpublishLayer(ws, ds, lyr)
wsworkspace name
dsdatastore name
lyrlayer name
TRUE if published, FALSE otherwise
uploadData()Uploads features data. The extension corresponds to the format/type of features to be uploaded among "shp", "spatialite", "h2", "gpkg".
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadData( ws, ds, endpoint = "file", extension, configure = "first", update = "append", filename, charset, contentType )
wsworkspace name
dsdatastore name
endpointendpoint
extensionextension
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
contentTypecontent type
TRUE if uploaded, FALSE otherwise
uploadShapefile()Uploads zipped shapefile.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadShapefile( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadProperties()Uploads properties.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadProperties( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadH2()Uploads H2 database.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadH2( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadSpatialite()Uploads spatialite file.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadSpatialite( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadAppschema()Uploads App schema.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadAppschema( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
uploadGeoPackage()Uploads GeoPackage.
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSDataStoreManager$uploadGeoPackage( ws, ds, endpoint = "file", configure = "first", update = "append", filename, charset = "UTF-8" )
wsworkspace name
dsdatastore name
endpointendpoint
configureconfigure strategy among values: "first" or "none"
updateupdate strategy, among values: "append", "overwrite"
filenamefile name of the resource to upload
charsetcharset
TRUE if uploaded, FALSE otherwise
clone()The objects of this class are cloneable with this method.
GSDataStoreManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## Not run:
GSDataStoreManager$new("http://localhost:8080/geoserver", "admin", "geoserver")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.