WCSClient
WCSClient
Object of R6Class with methods for interfacing an OGC
Web Coverage Service.
R6Class object.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
ows4R::OGCAbstractObject -> ows4R::OWSClient -> WCSClient
Inherited methods
ows4R::OGCAbstractObject$ERROR()ows4R::OGCAbstractObject$INFO()ows4R::OGCAbstractObject$WARN()ows4R::OGCAbstractObject$encode()ows4R::OGCAbstractObject$getClass()ows4R::OGCAbstractObject$getClassName()ows4R::OGCAbstractObject$getNamespaceDefinition()ows4R::OGCAbstractObject$isFieldInheritedFrom()ows4R::OGCAbstractObject$logger()ows4R::OWSClient$getCASUrl()ows4R::OWSClient$getConfig()ows4R::OWSClient$getHeaders()ows4R::OWSClient$getPwd()ows4R::OWSClient$getToken()ows4R::OWSClient$getUrl()ows4R::OWSClient$getUser()ows4R::OWSClient$getVersion()
new()This method is used to instantiate a WCSClient with the url of the
OGC service. Authentication is supported using basic auth (using user/pwd arguments),
bearer token (using token argument), or custom (using headers argument). By default, the logger
argument will be set to NULL (no logger). This argument accepts two possible
values: INFO: to print only ows4R logs, DEBUG: to print more verbose logs
WCSClient$new(
url,
serviceVersion = NULL,
user = NULL,
pwd = NULL,
token = NULL,
headers = c(),
config = httr::config(),
cas_url = NULL,
logger = NULL
)urlurl
serviceVersionWFS service version
useruser
pwdpassword
tokentoken
headersheaders
configconfig
cas_urlCentral Authentication Service (CAS) URL
loggerlogger
getCapabilities()Get WCS capabilities
WCSClient$getCapabilities()an object of class WCSCapabilities
reloadCapabilities()Reloads WCS capabilities
WCSClient$reloadCapabilities()
describeCoverage()Describes coverage
WCSClient$describeCoverage(identifier)identifieridentifier
an object of class WCSCoverageDescription
getCoverage()Get coverage
WCSClient$getCoverage(
identifier,
bbox = NULL,
crs = NULL,
time = NULL,
format = NULL,
rangesubset = NULL,
gridbaseCRS = NULL,
gridtype = NULL,
gridCS = NULL,
gridorigin = NULL,
gridoffsets = NULL,
...
)identifieridentifier
bboxbbox. Default is NULL
crscrs. Default is NULL
timetime. Default is NULL
formatformat. Default is "image/tiff"
rangesubsetrangesubset. Default is NULL
gridbaseCRSgrid base CRS. Default is NULL
gridtypegrid type. Default is NULL
gridCSgrid CS. Default is NULL
gridorigingrid origin. Default is NULL
gridoffsetsgrid offsets. Default is NULL
...any other argument to pass to the WCS GetCoverage request
elevationelevation. Default is NULL
an object of class SpatRaster from terra
clone()The objects of this class are cloneable with this method.
WCSClient$clone(deep = FALSE)deepWhether to make a deep clone.
if (FALSE) {
wcs <- WCSClient$new("http://localhost:8080/geoserver/wcs", serviceVersion = "2.0.1")
}
Run the code above in your browser using DataLab