Geoserver REST API DataStore Manager
Geoserver REST API DataStore Manager
Super class
geosapi::GSManager
-> GSDataStoreManager
Methods
Inherited methods
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()
Method getDataStores()
Get the list of available dataStores.
Returns
an object of class list
giving items of class GSAbstractDataStore
Method getDataStore()
Get an object of class GSAbstractDataStore
given a workspace and datastore names.
Method createDataStore()
Creates a datastore given a workspace and an object of class GSAbstractDataStore
.
Arguments
ws
workspace name
dataStore
datastore object of class GSAbstractDataStore
Method updateDataStore()
Updates a datastore given a workspace and an object of class GSAbstractDataStore
.
Arguments
ws
workspace name
dataStore
datastore object of class GSAbstractDataStore
Method 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.
Method getFeatureTypes()
Get the list of available feature types for given workspace and datastore.
Arguments
ws
workspace name
ds
datastore name
list
list type value, among "configured", "available", "available_with_geom", "all"
Returns
an object of class list
giving items of class GSFeatureType
Method getFeatureTypeNames()
Get the list of available feature type names for given workspace and datastore.
Method getFeatureType()
Get an object of class GSFeatureType
given a workspace, datastore and feature type names.
Returns
an object of class GSFeatureType
Method createFeatureType()
Creates a new featureType given a workspace, datastore names and an object of class GSFeatureType
Method updateFeatureType()
Updates a featureType given a workspace, datastore names and an object of class GSFeatureType
Method 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.
Method publishLayer()
Publish a feature type/layer pair given a workspace and datastore. The name 'layer' here encompasses both GSFeatureType and GSLayer resources.
Arguments
ws
workspace name
ds
datastore name
featureType
object of class GSFeatureType
layer
object of class GSLayer
Method unpublishLayer()
Unpublish a feature type/layer pair given a workspace and datastore. The name 'layer' here encompasses both GSFeatureType and GSLayer resources.
Method 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.
Usage
GSDataStoreManager$uploadData(
ws,
ds,
endpoint = "file",
extension,
configure = "first",
update = "append",
filename,
charset,
contentType
)
Method 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.
Usage
GSDataStoreManager$uploadShapefile(
ws,
ds,
endpoint = "file",
configure = "first",
update = "append",
filename,
charset = "UTF-8"
)
Method 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.
Usage
GSDataStoreManager$uploadProperties(
ws,
ds,
endpoint = "file",
configure = "first",
update = "append",
filename,
charset = "UTF-8"
)
Method 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.
Usage
GSDataStoreManager$uploadH2(
ws,
ds,
endpoint = "file",
configure = "first",
update = "append",
filename,
charset = "UTF-8"
)
Method 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.
Usage
GSDataStoreManager$uploadSpatialite(
ws,
ds,
endpoint = "file",
configure = "first",
update = "append",
filename,
charset = "UTF-8"
)
Method 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.
Usage
GSDataStoreManager$uploadAppschema(
ws,
ds,
endpoint = "file",
configure = "first",
update = "append",
filename,
charset = "UTF-8"
)
Method 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.
Usage
GSDataStoreManager$uploadGeoPackage(
ws,
ds,
endpoint = "file",
configure = "first",
update = "append",
filename,
charset = "UTF-8"
)