Learn R Programming

ows4R (version 0.3)

WCSClient: WCSClient

Description

WCSClient

WCSClient

Arguments

Value

Object of R6Class with methods for interfacing an OGC Web Coverage Service.

Format

R6Class object.

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

ows4R::OGCAbstractObject -> ows4R::OWSClient -> WCSClient

Methods

Inherited methods


Method 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

Usage

WCSClient$new(
  url,
  serviceVersion = NULL,
  user = NULL,
  pwd = NULL,
  token = NULL,
  headers = c(),
  config = httr::config(),
  cas_url = NULL,
  logger = NULL
)

Arguments

url

url

serviceVersion

WFS service version

user

user

pwd

password

token

token

headers

headers

config

config

cas_url

Central Authentication Service (CAS) URL

logger

logger


Method getCapabilities()

Get WCS capabilities

Usage

WCSClient$getCapabilities()

Returns

an object of class WCSCapabilities


Method reloadCapabilities()

Reloads WCS capabilities

Usage

WCSClient$reloadCapabilities()


Method describeCoverage()

Describes coverage

Usage

WCSClient$describeCoverage(identifier)

Arguments

identifier

identifier

Returns

an object of class WCSCoverageDescription


Method getCoverage()

Get coverage

Usage

WCSClient$getCoverage(
  identifier,
  bbox = NULL,
  crs = NULL,
  time = NULL,
  format = NULL,
  rangesubset = NULL,
  gridbaseCRS = NULL,
  gridtype = NULL,
  gridCS = NULL,
  gridorigin = NULL,
  gridoffsets = NULL,
  ...
)

Arguments

identifier

identifier

bbox

bbox. Default is NULL

crs

crs. Default is NULL

time

time. Default is NULL

format

format. Default is "image/tiff"

rangesubset

rangesubset. Default is NULL

gridbaseCRS

grid base CRS. Default is NULL

gridtype

grid type. Default is NULL

gridCS

grid CS. Default is NULL

gridorigin

grid origin. Default is NULL

gridoffsets

grid offsets. Default is NULL

...

any other argument to pass to the WCS GetCoverage request

elevation

elevation. Default is NULL

Returns

an object of class SpatRaster from terra


Method clone()

The objects of this class are cloneable with this method.

Usage

WCSClient$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
if (FALSE) {
   wcs <- WCSClient$new("http://localhost:8080/geoserver/wcs", serviceVersion = "2.0.1")
}

Run the code above in your browser using DataLab