WPSClient | R Documentation |
WPSClient
WPSClient
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Web Processing Service.
ows4R::OGCAbstractObject
-> ows4R::OWSClient
-> WPSClient
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::OGCAbstractObject$print()
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 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
WPSClient$new( url, serviceVersion = NULL, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), cas_url = NULL, logger = NULL )
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
getCapabilities()
Get WPS capabilities
WPSClient$getCapabilities()
an object of class WPSCapabilities
reloadCapabilities()
Reloads WPS capabilities
WPSClient$reloadCapabilities()
getProcesses()
Get 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.
WPSClient$getProcesses(pretty = FALSE, full = FALSE)
pretty
pretty
full
full
a list
of WPSProcessDescription or a data.frame
describeProcess()
Get the description of a process, given its identifier
, returning an object of class WPSProcessDescription
WPSClient$describeProcess(identifier)
identifier
process identifier
an object of class WPSProcessDescription
execute()
Execute a process, given its identifier
WPSClient$execute( identifier, dataInputs = list(), responseForm = NULL, storeExecuteResponse = FALSE, lineage = NULL, status = NULL, update = FALSE, updateInterval = 1 )
identifier
process identifier
dataInputs
a named list of data inputs, objects of class WPSLiteralData, WPSComplexData or WPSBoundingBoxData
responseForm
response form, object of class WPSResponseDocument
storeExecuteResponse
store execute response? object of class logical
. FALSE
by default
lineage
lineage, object of class logical
status
status, object of class logical
update
update, object of class logical
. For asynchronous requests
updateInterval
update interval, object of class integer
. For asynchronous requests
clone()
The objects of this class are cloneable with this method.
WPSClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## 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()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.