Geoserver REST API CoverageStore Manager
Source:R/GSCoverageStoreManager.R
GSCoverageStoreManager.Rd
Geoserver REST API CoverageStore Manager
Geoserver REST API CoverageStore Manager
Value
Object of R6Class
with methods for managing GeoServer
CoverageStores (i.e. stores of coverage data)
Super class
geosapi::GSManager
-> GSCoverageStoreManager
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 getCoverageStores()
Get the list of available coverage stores. Returns an object of class list
giving items of class GSAbstractCoverageStore
Method getCoverageStoreNames()
Get the list of available coverage store names. Returns an vector of class character
Method getCoverageStore()
Get an object of class GSAbstractDataStore
given a workspace and coverage store names.
Method createCoverageStore()
Creates a new coverage store given a workspace, coverage store name. Abstract method used in below format-specific methods to create coverage stores.
Method updateCoverageStore()
Updates a coverage store given a workspace, coverage store name. Abstract method used in below format-specific methods to create coverage stores.
Method 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
Method getCoverages()
Get the list of available coverages for given workspace and coverage store.
Returns an object of class list
giving items of class GSCoverage
Returns
the list of GSCoverage
Method 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
Method createCoverage()
Creates a new coverage given a workspace, coverage store names and an object of class GSCoverage
Arguments
ws
workspace name
cs
coverage store name
coverage
object of class GSCoverage
Method updateCoverage()
Updates a coverage given a workspace, coverage store names and an object of class GSCoverage
Arguments
ws
workspace name
cs
coverage store name
coverage
object of class GSCoverage
Method 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.
Method 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.
Usage
GSCoverageStoreManager$uploadCoverage(
ws,
cs,
endpoint = "file",
extension,
filename,
configure = "first",
update = "append",
contentType
)
Method 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.
Usage
GSCoverageStoreManager$uploadGeoTIFF(
ws,
cs,
endpoint = "file",
filename,
configure = "first",
update = "append"
)
Method 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.
Usage
GSCoverageStoreManager$uploadWorldImage(
ws,
cs,
endpoint = "file",
filename,
configure = "first",
update = "append"
)
Method 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.
Usage
GSCoverageStoreManager$uploadArcGrid(
ws,
cs,
endpoint = "file",
filename,
configure = "first",
update = "append"
)
Method 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.
Usage
GSCoverageStoreManager$uploadImageMosaic(
ws,
cs,
endpoint = "file",
filename,
configure = "first",
update = "append"
)