Learn R Programming

ows4R (version 0.2)

WPSClient: WPSClient

Description

WPSClient

Arguments

Value

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

Format

R6Class object.

Methods

new(url, serviceVersion, user, pwd, logger)

This method is used to instantiate a WPSClient 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

getCapabilities()

Get service capabilities. Inherited from OWS Client

reloadCapabilities()

Reload service capabilities

getProcesses(pretty, full)

Return the list of processes offered by the service capabilities. pretty allows to control the type output. If TRUE, a data.frame will be returned. When prettified output, it is also possible to get a 'full' description of the process by setting full = TRUE in which case a the WPS client will request a process description (with more information about the process) for each process listed in the capabilities.

describeProcess(identifier)

Get the description of a process, given its identifier, returning an object of class WPSProcessDescription

execute(identifier, dataInputs, responseForm, storeExecuteResponse, lineage, status, update, updateInterval)

Execute a process, given its identifier

Examples

Run this code
# NOT RUN {
   #example based on a WPS endpoint responding at http://localhost:8080/geoserver/wps
   wps <- WPSClient$new("http://localhost:8080/geoserver/wps", serviceVersion = "1.0.0")
   
   #get capabilities
   caps <- wps$getCapabilities()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab