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)
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 <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.