| GSCoverageStoreManager | R Documentation |
Geoserver REST API CoverageStore Manager
Geoserver REST API CoverageStore Manager
R6Class object.
Object of R6Class with methods for managing GeoServer
CoverageStores (i.e. stores of coverage data)
geosapi::GSManager -> GSCoverageStoreManager
geosapi::GSManager$ERROR()geosapi::GSManager$INFO()geosapi::GSManager$WARN()geosapi::GSManager$connect()geosapi::GSManager$getClassName()geosapi::GSManager$getCoverageStoreManager()geosapi::GSManager$getDataStoreManager()geosapi::GSManager$getNamespaceManager()geosapi::GSManager$getServiceManager()geosapi::GSManager$getStyleManager()geosapi::GSManager$getSystemStatus()geosapi::GSManager$getUrl()geosapi::GSManager$getWorkspaceManager()geosapi::GSManager$initialize()geosapi::GSManager$logger()geosapi::GSManager$monitor()geosapi::GSManager$reload()getCoverageStores()Get the list of available coverage stores. Returns an object of class list
giving items of class GSAbstractCoverageStore
GSCoverageStoreManager$getCoverageStores(ws)
wsworkspace name
the list of coverage stores
getCoverageStoreNames()Get the list of available coverage store names. Returns an vector of class character
GSCoverageStoreManager$getCoverageStoreNames(ws)
wsworkspace name
the list of coverage store names, as character
getCoverageStore()Get an object of class GSAbstractDataStore given a workspace and coverage store names.
GSCoverageStoreManager$getCoverageStore(ws, cs)
wsworkspace name
cscoverage store name
the coverage store
createCoverageStore()Creates a new coverage store given a workspace, coverage store name. Abstract method used in below format-specific methods to create coverage stores.
GSCoverageStoreManager$createCoverageStore(ws, coverageStore)
wsworkspace name
coverageStorecoverage store object
TRUE if created, FALSE otherwise
updateCoverageStore()Updates a coverage store given a workspace, coverage store name. Abstract method used in below format-specific methods to create coverage stores.
GSCoverageStoreManager$updateCoverageStore(ws, coverageStore)
wsworkspace name
coverageStorecoverage store object
TRUE if updated, FALSE otherwise
deleteCoverageStore()Deletes a coverage store given a workspace and an object of class GSAbstractCoverageStore.
By defaut, the option recurse is set to FALSE, ie datastore layers are not removed.
To remove all coverage store layers, set this option to TRUE. The purge parameter is used
to customize the delete of files on disk (in case the underlying reader implements a delete method).
It can take one of the three values: none, metadata, all. For more details see https://docs.geoserver.org/stable/en/user/rest/api/coveragestores.html#purge
GSCoverageStoreManager$deleteCoverageStore( ws, cs, recurse = FALSE, purge = NULL )
wsworkspace name
cscoverage store name
recurserecurse
purgepurge
TRUE if deleted, FALSE otherwise
getCoverages()Get the list of available coverages for given workspace and coverage store.
Returns an object of class list giving items of class GSCoverage
GSCoverageStoreManager$getCoverages(ws, cs)
wsworkspace name
cscoverage store name
the list of GSCoverage
getCoverageNames()Get the list of available coverage names for given workspace and coverage store.
Returns an object of class list giving items of class GSCoverage
GSCoverageStoreManager$getCoverageNames(ws, cs)
wsworkspace name
cscoverage store name
the list of coverage names
getCoverage()Get coverage
GSCoverageStoreManager$getCoverage(ws, cs, cv)
wsworkspace name
cscoverage store name
cvcoverage name
createCoverage()Creates a new coverage given a workspace, coverage store names and an object of class GSCoverage
GSCoverageStoreManager$createCoverage(ws, cs, coverage)
wsworkspace name
cscoverage store name
coverageobject of class GSCoverage
TRUE if created, FALSE otherwise
updateCoverage()Updates a coverage given a workspace, coverage store names and an object of class GSCoverage
GSCoverageStoreManager$updateCoverage(ws, cs, coverage)
wsworkspace name
cscoverage store name
coverageobject of class GSCoverage
TRUE if updated, FALSE otherwise
deleteCoverage()Deletes a coverage given a workspace, coverage store names, and an object of
class GSCoverage. By defaut, the option recurse is
set to FALSE, ie coverage layers are not removed.
GSCoverageStoreManager$deleteCoverage(ws, cs, cv, recurse = FALSE)
wsworkspace name
cscoverage store name
cvcoverage name
recurserecurse
uploadCoverage()Abstract method to upload a coverage file targeting a workspace (ws) and datastore (cs). The extension
corresponds to the format/type of coverage to be uploaded (among values 'geotiff', 'worldimage', 'arcgrid', or 'imagemosaic').
The endpoint takes a value among "file" (default), "url" or "external". The filename is the name
of the coverage file to upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadCoverage( ws, cs, endpoint = "file", extension, filename, configure = "first", update = "append", contentType )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
extensionextension
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
contentTypecontent type
TRUE if uploaded, FALSE otherwise
uploadGeoTIFF()Uploads a GeoTIFF file targeting a workspace (ws) and datastore (cs). The endpoint takes a value among
"file" (default), "url" or "external". The filename is the name of the GeoTIFF file to
upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadGeoTIFF( ws, cs, endpoint = "file", filename, configure = "first", update = "append" )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
TRUE if uploaded, FALSE otherwise
uploadWorldImage()Uploads a WorldImage file targeting a workspace (ws) and datastore (cs). The endpoint takes a value among
"file" (default), "url" or "external". The filename is the name of the zipped file to
upload and set for the newly created datastore. It is assumed the zip archive contains the .prj file to set the SRS.
The configure parameter can take a value among values "none" (indicates to configure only the datastore
but no layer configuration) or "first" (configure both datastore and layer). The update defines the strategy
for the upload: "append" (default value) for the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadWorldImage( ws, cs, endpoint = "file", filename, configure = "first", update = "append" )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
TRUE if uploaded, FALSE otherwise
uploadArcGrid()Uploads an ArcGrid file targeting a workspace (ws) and datastore (cs). The endpoint takes a value among
"file" (default), "url" or "external". The filename is the name of the ArcGrid file to
upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadArcGrid( ws, cs, endpoint = "file", filename, configure = "first", update = "append" )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
TRUE if uploaded, FALSE otherwise
uploadImageMosaic()Uploads an ImageMosaic file targeting a workspace (ws) and datastore (cs). The endpoint takes a value among
"file" (default), "url" or "external". The filename is the name of the ImageMosaic file to
upload and set for the newly created datastore. The configure parameter can take a value among values
"none" (indicates to configure only the datastore but no layer configuration) or "first" (configure
both datastore and layer). The update defines the strategy for the upload: "append" (default value) for
the first upload, "overwrite" in case the file should be overwriten.
GSCoverageStoreManager$uploadImageMosaic( ws, cs, endpoint = "file", filename, configure = "first", update = "append" )
wsworkspace name
cscoverage store name
endpointendpoint. Default is "file"
filenamefilename
configureconfigure. Default is "first"
updateupdate. Default is "append"
TRUE if uploaded, FALSE otherwise
clone()The objects of this class are cloneable with this method.
GSCoverageStoreManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## Not run:
GSCoverageStoreManager$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.