Title: | Interface to OGC Web-Services (OWS) |
---|---|
Description: | Provides an Interface to Web-Services defined as standards by the Open Geospatial Consortium (OGC), including Web Feature Service (WFS) for vector data, Web Coverage Service (WCS), Catalogue Service (CSW) for ISO/OGC metadata, Web Processing Service (WPS) for data processes, and associated standards such as the common web-service specification (OWS) and OGC Filter Encoding. Partial support is provided for the Web Map Service (WMS). The purpose is to add support for additional OGC service standards such as Web Coverage Processing Service (WCPS), the Sensor Observation Service (SOS), or even new standard services emerging such OGC API or SensorThings. |
Authors: | Emmanuel Blondel [aut, cre] , Alexandre Bennici [ctb] , Norbert Billet [ctb] |
Maintainer: | Emmanuel Blondel <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.4 |
Built: | 2024-10-24 05:00:43 UTC |
Source: | https://github.com/eblondel/ows4r |
And
And
R6Class
object.
Object of R6Class
for modelling an And operator
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::BinaryLogicOpType
-> And
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::OGCExpression$getExprVersion()
ows4R::BinaryLogicOpType$setExprVersion()
new()
Initializes an And expression
And$new(...)
...
list of objects of class OGCExpression
clone()
The objects of this class are cloneable with this method.
And$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr1 <- PropertyIsEqualTo$new(PropertyName = "property1", Literal = "value1") expr2 <- PropertyIsEqualTo$new(PropertyName = "property2", Literal = "value2") and <- And$new(expr1,expr2) and_xml <- and$encode() #see how it looks like in XML
expr1 <- PropertyIsEqualTo$new(PropertyName = "property1", Literal = "value1") expr2 <- PropertyIsEqualTo$new(PropertyName = "property2", Literal = "value2") and <- And$new(expr1,expr2) and_xml <- and$encode() #see how it looks like in XML
BBOX
BBOX
R6Class
object.
Object of R6Class
for modelling an BBOX
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> BBOX
PropertyName
property name field for XML encoding
Envelope
envelope as object of class GMLEnvelope from geometa
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes a BBOX expression
BBOX$new(bbox, srsName = NULL)
bbox
an object of class matrix
srsName
srs name
clone()
The objects of this class are cloneable with this method.
BBOX$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
bbox <- OWSUtils$toBBOX(-180,-90,180,90) expr <- BBOX$new(bbox) expr_xml <- expr$encode() #see how it looks like in XML
bbox <- OWSUtils$toBBOX(-180,-90,180,90) expr <- BBOX$new(bbox) expr_xml <- expr$encode() #see how it looks like in XML
BinaryComparisonOpType
BinaryComparisonOpType
R6Class
object.
Object of R6Class
for modelling an BinaryComparisonOpType
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> BinaryComparisonOpType
PropertyName
property name field for XML encoding
Literal
literal field for XML encoding
attrs
attributes for XML encoding
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending BinaryComparisonOpType
BinaryComparisonOpType$new( element, namespacePrefix, PropertyName, Literal, matchCase = NA )
element
element name
namespacePrefix
XML namespace prefix
PropertyName
property name
Literal
literal
matchCase
match case
clone()
The objects of this class are cloneable with this method.
BinaryComparisonOpType$clone(deep = FALSE)
deep
Whether to make a deep clone.
abstract super class of all the property operation classes
Emmanuel Blondel <[email protected]>
BinaryLogicOpType
BinaryLogicOpType
R6Class
object.
Object of R6Class
for modelling an BinaryLogicOpType
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> BinaryLogicOpType
operations
a list OGC expressions
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::OGCExpression$getExprVersion()
new()
Initializes a BinaryLogicOpType expression
BinaryLogicOpType$new(..., element, namespacePrefix, exprVersion = "1.1.0")
...
list of objects of class OGCExpression
element
element
namespacePrefix
namespacePrefix
exprVersion
OGC expression version. Default is "1.1.0"
setExprVersion()
Sets expression version. The methods will control that expression versions are set for each of the operations specified in the expression.
BinaryLogicOpType$setExprVersion(exprVersion)
exprVersion
OGC expression version
clone()
The objects of this class are cloneable with this method.
BinaryLogicOpType$clone(deep = FALSE)
deep
Whether to make a deep clone.
abstract super class of all the binary logical operation classes
CASClient
CASClient
R6Class
object.
Object of R6Class
with methods for interfacing a Central Authentication Service (CAS).
new()
Initializes an object of class CASClient
CASClient$new(url)
url
base URL of the Central Authentication Service (CAS)
getUrl()
Get CAS base URL
CASClient$getUrl()
the base URL
login()
Logs in the CAS
CASClient$login(user, pwd)
user
user
pwd
password
TRUE
if logged in, FALSE
otherwise
logout()
Logs out from the CAS
CASClient$logout()
TRUE
if logged out, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
CASClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
CSWCapabilities
CSWCapabilities
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Catalogue Service for the Web (CSW) Get Capabilities document.
ows4R::OGCAbstractObject
-> ows4R::OWSCapabilities
-> CSWCapabilities
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::OWSCapabilities$getClient()
ows4R::OWSCapabilities$getOWSVersion()
ows4R::OWSCapabilities$getOperationsMetadata()
ows4R::OWSCapabilities$getRequest()
ows4R::OWSCapabilities$getService()
ows4R::OWSCapabilities$getServiceIdentification()
ows4R::OWSCapabilities$getServiceProvider()
ows4R::OWSCapabilities$getServiceVersion()
ows4R::OWSCapabilities$getUrl()
ows4R::OWSCapabilities$setClient()
new()
Initializes a CSWCapabilities object
CSWCapabilities$new(url, version, client = NULL, logger = NULL, ...)
url
url
version
version
client
object of class CSWClient
logger
logger type NULL
, "INFO" or "DEBUG"
...
any other parameter to pass to OWSGetCapabilities service request
clone()
The objects of this class are cloneable with this method.
CSWCapabilities$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used to read a CSWCapabilities
document. The use of CSWClient
is
recommended instead to benefit from the full set of capabilities associated to a CSW server.
Emmanuel Blondel <[email protected]>
CSWClient
CSWClient
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Catalogue Service for the Web.
ows4R::OGCAbstractObject
-> ows4R::OWSClient
-> CSWClient
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 CSWClient 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
CSWClient$new( url, serviceVersion = NULL, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), cas_url = NULL, logger = NULL )
url
url
serviceVersion
CSW service version
user
user
pwd
password
token
token
headers
headers
config
config
cas_url
Central Authentication Service (CAS) URL
logger
logger
getCapabilities()
Get CSW capabilities
CSWClient$getCapabilities()
an object of class CSWCapabilities
reloadCapabilities()
Reloads CSW capabilities
CSWClient$reloadCapabilities()
describeRecord()
Describe records. Retrieves the XML schema for CSW records. By default, returns the XML schema
for the CSW records (http://www.opengis.net/cat/csw/2.0.2). For other schemas, specify the
outputSchema
required, e.g. http://www.isotc211.org/2005/gmd for ISO 19115/19139 schema
CSWClient$describeRecord(namespace, ...)
namespace
namespace
...
any other parameter to pass to the CSWDescribeRecord service request
the service record description
getRecordById()
Get a record by Id. By default, the record will be returned following the CSW schema
(http://www.opengis.net/cat/csw/2.0.2). For other schemas, specify the outputSchema
required, e.g. http://www.isotc211.org/2005/gmd for ISO 19115/19139 records.
The parameter elementSetName
should among values "full", "brief", "summary". The default
"full" corresponds to the full metadata sheet returned. "brief" and "summary" will contain only
a subset of the metadata content.
CSWClient$getRecordById(id, elementSetName = "full", ...)
id
record id
elementSetName
element set name. Default is "full"
...
any other parameter to pass to CSWGetRecordById service request
the fetched record, NULL
otherwise
getRecords()
Get records based on a query, object of class CSWQuery
. The maximum number of records can be
set either for the full query (maxRecords
) or per request (maxRecordsPerRequest
, default set to 10 records)
considering this operation is paginated. By default, the record will be returned following the CSW schema
(http://www.opengis.net/cat/csw/2.0.2). For other schemas, specify the outputSchema
required, e.g. http://www.isotc211.org/2005/gmd for ISO 19115/19139 records.
CSWClient$getRecords( query = CSWQuery$new(), maxRecords = NULL, maxRecordsPerRequest = 10L, ... )
query
an object of class CSWQuery. By default, an empty query is set.
maxRecords
max number of total records. Default is NULL
meaning all records are returned.
maxRecordsPerRequest
max number of records to return per request. Default set to 10.
...
any other parameter to be passed to CSWGetRecords service request
the list of records. By default each record will be returned as Dublin Core list
object. In case
ISO 19115/19139 is set as outputSchema
, each record will be object of class ISOMetadata
from
geometa.
transaction()
Generic transaction method. Used for inserting, updating or deleting metadata using the transactional CSW service.
The type
gives the type of transaction (Insert, Update, or Delete). The record
CSWClient$transaction( type, record = NULL, recordProperty = NULL, constraint = NULL, ... )
type
of transaction either "Insert", "Update" or "Delete"
record
the record subject of the transaction
recordProperty
record property, object of class CSWRecordProperty
constraint
constraint, object of class CSWConstraint
...
any other parameter to pass to CSWTransaction service request
TRUE
if transaction succeeded, FALSE
otherwise
insertRecord()
Inserts a new record
CSWClient$insertRecord(record, ...)
record
record subject of the Insertion
...
any other parameter to pass to the transaction
TRUE
if insertion succeeded, FALSE
otherwise
updateRecord()
Updates an existing record
CSWClient$updateRecord( record = NULL, recordProperty = NULL, constraint = NULL, ... )
record
record subject of the Insertion
recordProperty
record property, object of class CSWRecordProperty
constraint
constraint, object of class CSWConstraint
...
any other parameter to pass to the transaction
TRUE
if update succeeded, FALSE
otherwise
deleteRecord()
Deletes an existing (set of) record(s). A constraint (object of class CSWConstraint
)
can be specified to limit the deletion to some records.
CSWClient$deleteRecord(record = NULL, constraint = NULL, ...)
record
record subject of the Insertion
constraint
constraint, object of class CSWConstraint
...
any other parameter to pass to the transaction
TRUE
if deletion succeeded, FALSE
otherwise
deleteRecordById()
Deletes an existing record by identifier (constraint used to identify the record based on its identifier).
CSWClient$deleteRecordById(id)
id
record id
TRUE
if deletion succeeded, FALSE
otherwise
harvestRecord()
Harvests a single record from a sourceUrl
, given a resourceType
(by default "http://www.isotc211.org/2005/gmd").
CSWClient$harvestRecord( sourceUrl, resourceType = "http://www.isotc211.org/2005/gmd" )
sourceUrl
source URL
resourceType
resource type. Default is "http://www.isotc211.org/2005/gmd"
TRUE
if harvesting succeeded, FALSE
otherwise
harvestNode()
Harvests a CSW node (having its endpoint defined by an url
). A query
(object of class CSWQuery
) can be
specificed if needed to restrain the harvesting to a subset. The resourceType
defines the type of resources to be harvested
(by default "http://www.isotc211.org/2005/gmd")
CSWClient$harvestNode( url, query = CSWQuery$new(), resourceType = "http://www.isotc211.org/2005/gmd", sourceBaseUrl )
url
CSW node URL
query
a CSW query, object of class CSWQuery
resourceType
resource type. Default is "http://www.isotc211.org/2005/gmd"
sourceBaseUrl
source base URL
an object of class list
giving the number of records found
and those actually harvested
clone()
The objects of this class are cloneable with this method.
CSWClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: #example based on CSW endpoint responding at http://localhost:8000/csw csw <- CSWClient$new("http://localhost:8000/csw", serviceVersion = "2.0.2") #get capabilities caps <- csw$getCapabilities() #get records records <- csw$getRecords() #get record by id record <- csw$getRecordById("my-metadata-id") #Advanced examples at https://github.com/eblondel/ows4R/wiki#csw ## End(Not run)
## Not run: #example based on CSW endpoint responding at http://localhost:8000/csw csw <- CSWClient$new("http://localhost:8000/csw", serviceVersion = "2.0.2") #get capabilities caps <- csw$getCapabilities() #get records records <- csw$getRecords() #get record by id record <- csw$getRecordById("my-metadata-id") #Advanced examples at https://github.com/eblondel/ows4R/wiki#csw ## End(Not run)
CSWConstraint
CSWConstraint
R6Class
object.
Object of R6Class
for modelling an CSW Constraint
ows4R::OGCAbstractObject
-> CSWConstraint
wrap
internal property for object XML encoding
CqlText
text to use as CQL filter
filter
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()
new()
Initializes a CSWConstraint object to be used to constrain CSW operations.
CSWConstraint$new(cqlText = NULL, filter = NULL, serviceVersion = "2.0.2")
cqlText
cqlText, object of class character
filter
filter, object extending OGCFilter
serviceVersion
CSW service version. Default is "2.0.2"
setServiceVersion()
Set service version. This methods ensures that underlying filter property is properly set with the right OGC filter version.
CSWConstraint$setServiceVersion(serviceVersion)
serviceVersion
service version
clone()
The objects of this class are cloneable with this method.
CSWConstraint$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
filter <- OGCFilter$new( PropertyIsEqualTo$new("apiso:Identifier", "12345") ) cons <- CSWConstraint$new(filter = filter) cons_xml <- cons$encode() #how it looks like in XML
filter <- OGCFilter$new( PropertyIsEqualTo$new("apiso:Identifier", "12345") ) cons <- CSWConstraint$new(filter = filter) cons_xml <- cons$encode() #how it looks like in XML
CSWDescribeRecord
CSWDescribeRecord
R6Class
object.
Object of R6Class
for modelling a CSW DescribeRecord request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> CSWDescribeRecord
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a CSWDescribeRecord service request
CSWDescribeRecord$new( capabilities, op, url, version, namespace = NULL, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), logger = NULL, ... )
capabilities
an object of class CSWCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
version
version
namespace
namespace
user
user
pwd
password
token
token
headers
headers
config
config
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
CSWDescribeRecord$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a CSW DescribeRecord request
Emmanuel Blondel <[email protected]>
CSWGetRecordById
CSWGetRecordById
R6Class
object.
Object of R6Class
for modelling a CSW GetRecordById request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> CSWGetRecordById
Id
record Id property for request XML encoding
ElementSetName
element set name property for XML encoding
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a CSWGetRecordById service request
CSWGetRecordById$new( capabilities, op, url, serviceVersion = "2.0.2", user = NULL, pwd = NULL, token = NULL, headers = headers, config = httr::config(), id, elementSetName = "full", logger = NULL, ... )
capabilities
an object of class CSWCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
serviceVersion
serviceVersion. Default is "2.0.2
user
user
pwd
password
token
token
headers
headers
config
config
id
record id
elementSetName
element set name. Default is "full"
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
CSWGetRecordById$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a CSW GetRecordById request
Emmanuel Blondel <[email protected]>
CSWGetRecords
CSWGetRecords
R6Class
object.
Object of R6Class
for modelling a CSW GetRecords request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> CSWGetRecords
Query
query property for request XML encoding
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a CSWGetRecordById service request
CSWGetRecords$new( capabilities, op, url, serviceVersion = "2.0.2", user = NULL, pwd = NULL, token = NULL, headers = list(), config = httr::config(), query = NULL, logger = NULL, ... )
capabilities
an object of class CSWCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
serviceVersion
serviceVersion. Default is "2.0.2
user
user
pwd
password
token
token
headers
headers
config
config
query
object of class CSWQuery
logger
logger
...
any parameter to pass to the service request, such as resultType
, startPosition
,
maxRecords
, outputFormat
, or outputSchema
clone()
The objects of this class are cloneable with this method.
CSWGetRecords$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a CSW GetRecords request
Emmanuel Blondel <[email protected]>
CSWHarvest
CSWHarvest
R6Class
object.
Object of R6Class
for modelling a CSW Harvest request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> CSWHarvest
Source
source property for request XML encoding
ResourceType
resource type property for request XML encoding
ResourceFormat
resource format property for request XML encoding
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a CSWHarvest service request
CSWHarvest$new( capabilities, op, url, serviceVersion = "2.0.2", user = NULL, pwd = NULL, token = NULL, headers = list(), config = httr::config(), source = NULL, resourceType = "http://www.isotc211.org/schemas/2005/gmd/", resourceFormat = "application/xml", logger = NULL, ... )
capabilities
an object of class CSWCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
serviceVersion
serviceVersion. Default is "2.0.2
user
user
pwd
password
token
token
headers
headers
config
config
source
source
resourceType
resource type. Default is "http://www.isotc211.org/schemas/2005/gmd/"
resourceFormat
resource format. Default is "application/xml"
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
CSWHarvest$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a CSW Harvest request
Emmanuel Blondel <[email protected]>
CSWQuery
CSWQuery
R6Class
object.
Object of R6Class
for modelling an CSW Query
ows4R::OGCAbstractObject
-> CSWQuery
ElementSetName
element set name property for request XML encoding
constraint
property for request XML encoding
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()
new()
This method is used to instantiate an CSWQUery object. The elementSetName
can be
either "full" (default), "brief" or "summary". A constraint CSWConstraint
can be
defined for the query. The typeNames
indicates to query (default "csw:Record").
The serviceVersion
gives the CSW service version (default "2.0.2")
CSWQuery$new( elementSetName = "full", constraint = NULL, typeNames = "csw:Record", serviceVersion = "2.0.2" )
elementSetName
element set name. Default is "full"
constraint
object of class CSWConstraint
typeNames
type names
serviceVersion
CSW service version
setServiceVersion()
Set service version. The methods ensures propery naming of typeNames depending on the service version
CSWQuery$setServiceVersion(serviceVersion)
serviceVersion
service version
clone()
The objects of this class are cloneable with this method.
CSWQuery$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
#CSWQuery - elementSetName query_full <- CSWQuery$new() query_brief <- CSWQuery$new(elementSetName = "brief") query_summary <- CSWQuery$new(elementSetName = "summary") #CSWQuery - cqlText with title cons <- CSWConstraint$new(cqlText = "dc:title like '%ips%'") query <- CSWQuery$new(constraint = cons) #CSW 2.0.2 - Query - Filter / AnyText filter <- OGCFilter$new( PropertyIsLike$new("csw:AnyText", "%Physio%")) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(constraint = cons) #CSW 2.0.2 - Query - Filter / AnyText Equal filter <- OGCFilter$new( PropertyIsEqualTo$new("csw:AnyText", "species")) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(constraint = cons) #CSW 2.0.2 - Query - Filter / AnyText And Not filter <- OGCFilter$new(And$new( PropertyIsLike$new("csw:AnyText", "%lorem%"), PropertyIsLike$new("csw:AnyText", "%ipsum%"), Not$new( PropertyIsLike$new("csw:AnyText", "%dolor%") ) )) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(constraint = cons) #CSW 2.0.2 - Query - Filter / AnyText And nested Or filter <- OGCFilter$new(And$new( PropertyIsEqualTo$new("dc:title", "Aliquam fermentum purus quis arcu"), PropertyIsEqualTo$new("dc:format", "application/pdf"), Or$new( PropertyIsEqualTo$new("dc:type", "http://purl.org/dc/dcmitype/Dataset"), PropertyIsEqualTo$new("dc:type", "http://purl.org/dc/dcmitype/Service"), PropertyIsEqualTo$new("dc:type", "http://purl.org/dc/dcmitype/Image"), PropertyIsEqualTo$new("dc:type", "http://purl.org/dc/dcmitype/Text") ) )) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(elementSetName = "brief", constraint = cons) #CSW 2.0.2 - Query - Filter / BBOX bbox <- matrix(c(-180,180,-90,90), nrow = 2, ncol = 2, byrow = TRUE, dimnames = list(c("x", "y"), c("min","max"))) filter <- OGCFilter$new( BBOX$new(bbox = bbox) ) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(elementSetName = "brief", constraint = cons)
#CSWQuery - elementSetName query_full <- CSWQuery$new() query_brief <- CSWQuery$new(elementSetName = "brief") query_summary <- CSWQuery$new(elementSetName = "summary") #CSWQuery - cqlText with title cons <- CSWConstraint$new(cqlText = "dc:title like '%ips%'") query <- CSWQuery$new(constraint = cons) #CSW 2.0.2 - Query - Filter / AnyText filter <- OGCFilter$new( PropertyIsLike$new("csw:AnyText", "%Physio%")) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(constraint = cons) #CSW 2.0.2 - Query - Filter / AnyText Equal filter <- OGCFilter$new( PropertyIsEqualTo$new("csw:AnyText", "species")) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(constraint = cons) #CSW 2.0.2 - Query - Filter / AnyText And Not filter <- OGCFilter$new(And$new( PropertyIsLike$new("csw:AnyText", "%lorem%"), PropertyIsLike$new("csw:AnyText", "%ipsum%"), Not$new( PropertyIsLike$new("csw:AnyText", "%dolor%") ) )) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(constraint = cons) #CSW 2.0.2 - Query - Filter / AnyText And nested Or filter <- OGCFilter$new(And$new( PropertyIsEqualTo$new("dc:title", "Aliquam fermentum purus quis arcu"), PropertyIsEqualTo$new("dc:format", "application/pdf"), Or$new( PropertyIsEqualTo$new("dc:type", "http://purl.org/dc/dcmitype/Dataset"), PropertyIsEqualTo$new("dc:type", "http://purl.org/dc/dcmitype/Service"), PropertyIsEqualTo$new("dc:type", "http://purl.org/dc/dcmitype/Image"), PropertyIsEqualTo$new("dc:type", "http://purl.org/dc/dcmitype/Text") ) )) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(elementSetName = "brief", constraint = cons) #CSW 2.0.2 - Query - Filter / BBOX bbox <- matrix(c(-180,180,-90,90), nrow = 2, ncol = 2, byrow = TRUE, dimnames = list(c("x", "y"), c("min","max"))) filter <- OGCFilter$new( BBOX$new(bbox = bbox) ) cons <- CSWConstraint$new(filter = filter) query <- CSWQuery$new(elementSetName = "brief", constraint = cons)
CSWRecordProperty
CSWRecordProperty
R6Class
object.
Object of R6Class
for modelling an CSW RecordProperty
ows4R::OGCAbstractObject
-> CSWRecordProperty
wrap
internal property for XML encoding
Name
name property for request XML encoding
Value
property for request XML encoding
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()
new()
Initializes an object of class CSWRecordProperty
CSWRecordProperty$new(name, value, cswVersion = "2.0.2")
name
name
value
value
cswVersion
CSW service version. Default is "2.0.2"
clone()
The objects of this class are cloneable with this method.
CSWRecordProperty$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
rp <- CSWRecordProperty$new(name = "NAME", value = "VALUE") rp_xml <- rp$encode() #see how it looks in XML
rp <- CSWRecordProperty$new(name = "NAME", value = "VALUE") rp_xml <- rp$encode() #see how it looks in XML
CSWTransaction
CSWTransaction
R6Class
object.
Object of R6Class
for modelling a CSW Transaction request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> CSWTransaction
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a CSWTransaction service request
CSWTransaction$new( capabilities, op, url, serviceVersion, type, user = NULL, pwd = NULL, token = NULL, headers = list(), record = NULL, recordProperty = NULL, constraint = NULL, logger = NULL, ... )
capabilities
an object of class CSWCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
serviceVersion
serviceVersion. Default is "2.0.2
type
type of transaction, either "Insert", "Update", or "Delete"
user
user
pwd
password
token
token
headers
headers
record
record
recordProperty
record property
constraint
constraint
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
CSWTransaction$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a CSW Transaction request
Emmanuel Blondel <[email protected]>
getOWSNamespace
gets a namespace given its id
getOWSNamespace(id)
getOWSNamespace(id)
id |
namespace prefix |
Emmanuel Blondel, [email protected]
getOWSNamespace("GMD")
getOWSNamespace("GMD")
getOWSNamespaces
gets the list of namespaces registered
getOWSNamespaces()
getOWSNamespaces()
Emmanuel Blondel, [email protected]
getOWSNamespaces()
getOWSNamespaces()
Not
Not
R6Class
object.
Object of R6Class
for modelling an Not
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::UnaryLogicOpType
-> Not
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::OGCExpression$getExprVersion()
ows4R::UnaryLogicOpType$setExprVersion()
new()
Initializes an Not expression
Not$new(...)
...
list of objects of class OGCExpression
clone()
The objects of this class are cloneable with this method.
Not$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsEqualTo$new(PropertyName = "property", Literal = "value") not <- Not$new(expr) not_xml <- not$encode() #see how it looks like in XML
expr <- PropertyIsEqualTo$new(PropertyName = "property", Literal = "value") not <- Not$new(expr) not_xml <- not$encode() #see how it looks like in XML
OGCAbstractObject
OGCAbstractObject
R6Class
object.
Object of R6Class
for modelling an OGCAbstractObject
verbose.info
logical
property to indicate whether INFO logs have to be displayed
verbose.debug
logical
property to indicate whether DEBUG logs have to be displayed
loggerType
logger type, either NULL
, "INFO", or "DEBUG"
wrap
internal property for XML encoding
element
element used for XML encoding
namespace
namespace used for XML encoding
defaults
default values to be used for XML encoding
attrs
attributes to be used for XML encoding
logger()
A basic logger function
OGCAbstractObject$logger(type, text)
type
type of logs message.
text
log message text to be displayed
INFO()
a basic INFO logger function
OGCAbstractObject$INFO(text)
text
log message text to be displayed
WARN()
a basic WARN logger function
OGCAbstractObject$WARN(text)
text
log message text to be displayed
ERROR()
a basic ERROR logger function
OGCAbstractObject$ERROR(text)
text
log message text to be displayed
new()
Initializes an object extending OGCAbstractObject
OGCAbstractObject$new( xml = NULL, element = NULL, namespacePrefix = NULL, attrs = list(), defaults = list(), wrap = FALSE, logger = NULL )
xml
object of class XMLInternalNode-class from XML
element
element name
namespacePrefix
namespace prefix for XML encoding
attrs
list of attributes
defaults
list of default values
wrap
whether XML element has to be wrapped during XML encoding
logger
logger
getClassName()
Get class name
OGCAbstractObject$getClassName()
an object of class character
getClass()
Get class
OGCAbstractObject$getClass()
an object of class R6Class
isFieldInheritedFrom()
Utility to return the parent class in which field is defined
OGCAbstractObject$isFieldInheritedFrom(field)
field
field name
object of class R6Class
getNamespaceDefinition()
Gets the namespace definition
OGCAbstractObject$getNamespaceDefinition(recursive = FALSE)
recursive
Get all namespace recursively
the namespace definitions as named list
encode()
Encodes as XML. The addNS
.
Extra parameters related to geometa objects: geometa_validate
(TRUE by default) and geometa_inspire
(FALSE by default) can be used to perform ISO and INSPIRE validation respectively. In that case on object of class
geometa::INSPIREMetadataValidator
, with a proper user API key, should be specified as geometa_inspireValidator
argument.
OGCAbstractObject$encode( addNS = TRUE, geometa_validate = TRUE, geometa_inspire = FALSE, geometa_inspireValidator = NULL )
addNS
addNS controls the addition of XML namespaces
geometa_validate
Relates to geometa object ISO validation. Default is TRUE
geometa_inspire
Relates to geometa object INSPIRE validation. Default is FALSE
geometa_inspireValidator
Relates to geometa object INSPIRE validation. Default is NULL
an object of class XMLInternalNode-class from XML
print()
Provides a custom print output (as tree) of the current class
OGCAbstractObject$print(..., depth = 1)
...
args
depth
class nesting depth
clone()
The objects of this class are cloneable with this method.
OGCAbstractObject$clone(deep = FALSE)
deep
Whether to make a deep clone.
abstract class used by ows4R
Emmanuel Blondel <[email protected]>
OGCExpression
OGCExpression
R6Class
object.
Object of R6Class
for modelling an OGC Expression
ows4R::OGCAbstractObject
-> OGCExpression
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()
new()
Initializes an object of class OGCExpression
OGCExpression$new( element, namespacePrefix, attrs = NULL, defaults = NULL, exprVersion = "1.1.0" )
element
element name
namespacePrefix
XML namespace prefix
attrs
attributes
defaults
default values
exprVersion
OGC version for the expression
setExprVersion()
Sets expression version. The methods will control proper XML namespace prefix setting
OGCExpression$setExprVersion(exprVersion)
exprVersion
OGC expression version
getExprVersion()
Gets expression version
OGCExpression$getExprVersion()
object of class character
clone()
The objects of this class are cloneable with this method.
OGCExpression$clone(deep = FALSE)
deep
Whether to make a deep clone.
abstract class
Emmanuel Blondel <[email protected]>
OGCFilter
OGCFilter
R6Class
object.
Object of R6Class
for modelling an OGC Filter
ows4R::OGCAbstractObject
-> OGCFilter
expr
OGC expression
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()
new()
Initializes an object of class OGCFilter.
OGCFilter$new(expr, filterVersion = "1.1.0")
expr
object of class OGCExpression
filterVersion
OGC filter version. Default is "1.1.0"
setFilterVersion()
Sets the OGC filter version
OGCFilter$setFilterVersion(filterVersion)
filterVersion
OGC filter version
clone()
The objects of this class are cloneable with this method.
OGCFilter$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsEqualTo$new(PropertyName = "property", Literal = "value") not <- Not$new(expr) not_xml <- not$encode() #see how it looks like in XML
expr <- PropertyIsEqualTo$new(PropertyName = "property", Literal = "value") not <- Not$new(expr) not_xml <- not$encode() #see how it looks like in XML
Or
Or
R6Class
object.
Object of R6Class
for modelling an Or operator
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::BinaryLogicOpType
-> Or
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::OGCExpression$getExprVersion()
ows4R::BinaryLogicOpType$setExprVersion()
new()
Initializes an Or expression
Or$new(...)
...
list of objects of class OGCExpression
clone()
The objects of this class are cloneable with this method.
Or$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr1 <- PropertyIsEqualTo$new(PropertyName = "property1", Literal = "value1") expr2 <- PropertyIsEqualTo$new(PropertyName = "property2", Literal = "value2") or <- Or$new(expr1,expr2) or_xml <- or$encode() #see how it looks like in XML
expr1 <- PropertyIsEqualTo$new(PropertyName = "property1", Literal = "value1") expr2 <- PropertyIsEqualTo$new(PropertyName = "property2", Literal = "value2") or <- Or$new(expr1,expr2) or_xml <- or$encode() #see how it looks like in XML
Provides an Interface to Web-Services defined as standards by the Open Geospatial Consortium (OGC), including Web Feature Service (WFS) for vector data, Web Coverage Service (WCS), Catalogue Service (CSW) for ISO/OGC metadata, and associated standards such as the common web-service specification (OWS) and OGC Filter Encoding. Partial support is provided for the Web Map Service (WMS) and Web Processing Service (WPS). The purpose is to add support for additional OGC service standards such as Web Coverage Processing Service (WCPS) or OGC API.
Emmanuel Blondel [email protected]
Useful links:
Report bugs at https://github.com/eblondel/ows4R/issues
OWSBoundingBox
OWSBoundingBox
R6Class
object.
Object of R6Class
for modelling an OGC Bounding Box
ows4R::OGCAbstractObject
-> OWSBoundingBox
attrs
attributes to be associated to XML
LowerCorner
lower corner coordinates
UpperCorner
upper corner coordinates
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()
new()
Initializes an object of class OWSBoundingBox
OWSBoundingBox$new( xml = NULL, element = NULL, namespacePrefix = NULL, owsVersion, serviceVersion, logger = NULL )
xml
an object of class XMLInternalNode-class to initialize from XML
element
element name
namespacePrefix
namespace prefix
owsVersion
OWS version
serviceVersion
service version
logger
logger
decode()
Decodes an object of class OWSBoundingBox from XML
OWSBoundingBox$decode(xml)
xml
object of class XMLInternalNode-class from XML
getBBOX()
Get BBOX as object of class bbox
from sf package
OWSBoundingBox$getBBOX()
a numeric vector of length four, with xmin, ymin, xmax and ymax values
clone()
The objects of this class are cloneable with this method.
OWSBoundingBox$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
OWSGetCapabilities
OWSGetCapabilities
R6Class
object.
Object of R6Class
with methods for interfacing an abstract
OWS Get Capabilities document.
ows4R::OGCAbstractObject
-> OWSCapabilities
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()
new()
Initializes a OWSCapabilities object
OWSCapabilities$new( element = NULL, namespacePrefix = NULL, url, service, owsVersion, serviceVersion, logger = NULL, ... )
element
element
namespacePrefix
namespace prefix
url
url
service
service
owsVersion
OWS version
serviceVersion
service version
logger
logger type NULL
, "INFO" or "DEBUG"
...
any other parameter to pass to OWSGetCapabilities service request
setClient()
Sets the OGC client
OWSCapabilities$setClient(client)
client
an object extending OWSClient
getClient()
Get client
OWSCapabilities$getClient()
an
object extending OWSClient
getUrl()
Get URL
OWSCapabilities$getUrl()
an object of class character
getService()
Get service
OWSCapabilities$getService()
an object of class character
getServiceVersion()
Get service version
OWSCapabilities$getServiceVersion()
an object of class character
getOWSVersion()
Get OWS version
OWSCapabilities$getOWSVersion()
an object of class character
getRequest()
Get request
OWSCapabilities$getRequest()
an object of class OWSGetCapabilities
getServiceIdentification()
Get service identification
OWSCapabilities$getServiceIdentification()
an object of class OWSServiceIdentification
getServiceProvider()
Get service provider
OWSCapabilities$getServiceProvider()
an object of class OWSServiceProvider
getOperationsMetadata()
Get service operations metadata
OWSCapabilities$getOperationsMetadata()
an object of class OWSOperationsMetadata
clone()
The objects of this class are cloneable with this method.
OWSCapabilities$clone(deep = FALSE)
deep
Whether to make a deep clone.
abstract class used by ows4R
Emmanuel Blondel <[email protected]>
OWSClient
OWSClient
R6Class
object.
Object of R6Class
with methods for interfacing a Common OGC web-service.
ows4R::OGCAbstractObject
-> OWSClient
url
Base url of the OWS service
version
version of the OWS service
capabilities
object giving the OWS service capabilities
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()
new()
This method is used to instantiate a OWSClient 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
OWSClient$new( url, service, serviceVersion, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), cas_url = NULL, logger = NULL )
url
url
service
service name
serviceVersion
CSW service version
user
user
pwd
password
token
token
headers
headers
config
config
cas_url
Central Authentication Service (CAS) URL
logger
logger
getUrl()
Get URL
OWSClient$getUrl()
the url of the service, object of class character
getVersion()
Get version
OWSClient$getVersion()
the version of the service, object of class character
getCapabilities()
Get capabilities
OWSClient$getCapabilities()
the capabilities, object of class OWSCapabilities
getUser()
Get user
OWSClient$getUser()
the user, object of class character
getPwd()
Get password
OWSClient$getPwd()
the password, object of class character
getToken()
Get token
OWSClient$getToken()
the token, object of class character
getHeaders()
Get headers
OWSClient$getHeaders()
the headers, object of class character
getConfig()
Get httr config
OWSClient$getConfig()
the httr config, if any
getCASUrl()
Get CAS URL
OWSClient$getCASUrl()
a CAS URL
clone()
The objects of this class are cloneable with this method.
OWSClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally by ows4R
Emmanuel Blondel <[email protected]>
OWSCodeType
OWSCodeType
R6Class
object.
Object of R6Class
for modelling an OWS CodeType
ows4R::OGCAbstractObject
-> OWSCodeType
value
code type
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()
new()
Initializes an object of class OWSCodeType
OWSCodeType$new(xml = NULL, owsVersion = "1.1", value)
xml
object of class XMLInternalNode-class from XML
owsVersion
OWS version. Default is "1.1"
value
the code type
clone()
The objects of this class are cloneable with this method.
OWSCodeType$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
OWSException
OWSException
R6Class
object.
Object of R6Class
modelling a OWS Service exception
ows4R::OGCAbstractObject
-> OWSException
ExceptionText
exception text
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()
new()
Initializes an object of class OWSException
OWSException$new(xmlObj, logger = NULL)
xmlObj
object of class XMLInternalNode-class from XML
logger
logger
getLocator()
Get exception locator
OWSException$getLocator()
the exception locator, object of class character
getCode()
Get exception code
OWSException$getCode()
the exception code, object of class character
getText()
Get exception text explanation
OWSException$getText()
the exception text, object of class character
clone()
The objects of this class are cloneable with this method.
OWSException$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used by ows4R
Emmanuel Blondel <[email protected]>
OWSGetCapabilities
OWSGetCapabilities
R6Class
object.
Object of R6Class
for modelling a GetCapabilities request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> OWSGetCapabilities
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes an OWSGetCapabilities service request
OWSGetCapabilities$new( element = NULL, namespacePrefix = NULL, url, service, version, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), ... )
element
element
namespacePrefix
namespace prefix
url
url
service
service name
version
service version
user
user
pwd
password
token
token
headers
headers
config
config
...
any other parameter to pass to the request
clone()
The objects of this class are cloneable with this method.
OWSGetCapabilities$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a OWS GetCapabilities request
Emmanuel Blondel <[email protected]>
OWSHttpRequest
OWSHttpRequest
R6Class
object.
Object of R6Class
for modelling a generic OWS http request
ows4R::OGCAbstractObject
-> OWSHttpRequest
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()
new()
Initializes an OWS HTTP request
OWSHttpRequest$new( element, namespacePrefix, capabilities, op, type, url, request, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), namedParams = NULL, attrs = NULL, contentType = "text/xml", mimeType = "text/xml", skipXmlComments = TRUE, logger = NULL, ... )
element
element
namespacePrefix
namespace prefix
capabilities
object of class or extending OWSCapabilities
op
object of class OWSOperation
type
type of request, eg. GET, POST
url
url
request
request name
user
user
pwd
password
token
token
headers
headers
config
config
namedParams
a named list
attrs
attributes
contentType
content type. Default value is "text/xml"
mimeType
mime type. Default value is "text/xml"
skipXmlComments
Skip XML comments from response
logger
logger
...
any other parameter
execute()
Executes the request
OWSHttpRequest$execute()
getCapabilities()
Get capabilities
OWSHttpRequest$getCapabilities()
an object of class or extending OWSCapabilities
getRequest()
Get request
OWSHttpRequest$getRequest()
the request
getRequestHeaders()
Get request headers
OWSHttpRequest$getRequestHeaders()
the request headers
getStatus()
get status code
OWSHttpRequest$getStatus()
the request status code
getResponse()
get request response
OWSHttpRequest$getResponse()
the request response
getException()
get request exception
OWSHttpRequest$getException()
the request exception
hasException()
Indicates if it has an exception
OWSHttpRequest$hasException()
TRUE
if it has an exception, FALSE
otherwise
getResult()
Get the result TRUE
if the request is successful, FALSE
otherwise
OWSHttpRequest$getResult()
the result, object of class logical
setResult()
Set the result
OWSHttpRequest$setResult(result)
result
object of class logical
clone()
The objects of this class are cloneable with this method.
OWSHttpRequest$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally by ows4R
Emmanuel Blondel <[email protected]>
OWSNamespace
OWSNamespace
R6Class
object.
Object of R6Class
for modelling an OWS Namespace
id
namespace id
uri
namespace uri
new()
Initializes an OWSNamespace
OWSNamespace$new(id, uri)
id
id
uri
uri
getDefinition()
Get namespace definition
OWSNamespace$getDefinition()
a named list
with id and uri
clone()
The objects of this class are cloneable with this method.
OWSNamespace$clone(deep = FALSE)
deep
Whether to make a deep clone.
class used internally by ows4R for specifying XML namespaces
Emmanuel Blondel <[email protected]>
OWSOperation
OWSOperation
R6Class
object.
Object of R6Class
for modelling an OGC Operation
new()
Initializes an object of class OWSOperation.
OWSOperation$new(xmlObj, owsVersion, serviceVersion)
xmlObj
object of class XMLInternalNode-class from XML
owsVersion
OWS version
serviceVersion
service version
getName()
Get operation name
OWSOperation$getName()
an object of class character
getParameters()
Get parameters
OWSOperation$getParameters()
the parameters
getParameter()
Get parameter
OWSOperation$getParameter(name)
name
name
the parameter
clone()
The objects of this class are cloneable with this method.
OWSOperation$clone(deep = FALSE)
deep
Whether to make a deep clone.
Internal class used internally by ows4R when reading capabilities documents
Emmanuel Blondel <[email protected]>
OWSOperationsMetadata
OWSOperationsMetadata
R6Class
object.
Object of R6Class
for modelling an OGC Operations Metadata
new()
Initializes an OWSOperationsMetadata object
OWSOperationsMetadata$new(xmlObj, owsVersion, serviceVersion)
xmlObj
object of class XMLInternalNode-class from XML
owsVersion
OWS version
serviceVersion
service version
getOperations()
Get operations
OWSOperationsMetadata$getOperations()
a list of OWSOperation
clone()
The objects of this class are cloneable with this method.
OWSOperationsMetadata$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally by ows4R
Emmanuel Blondel <[email protected]>
OWSRequest
OWSRequest
R6Class
object.
Object of R6Class
modelling a OWS Service Capability Request
ows4R::OGCAbstractObject
-> OWSRequest
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()
new()
Initializes an object of class OWSRequest
OWSRequest$new(xmlObj, capabilities, version, logger = NULL)
xmlObj
object of class XMLInternalNode-class from XML
capabilities
an object of class or extending OWSCapabilities
version
version
logger
logger
getName()
Get request name
OWSRequest$getName()
the name, object of class character
getFormats()
Get request formats
OWSRequest$getFormats()
the formats, object (vector) of class character
clone()
The objects of this class are cloneable with this method.
OWSRequest$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used by ows4R
Emmanuel Blondel <[email protected]>
OWSServiceIdentification
OWSServiceIdentification
R6Class
object.
Object of R6Class
for modelling an OGC Service Identification
new()
Initializes an object of class OWSServiceIdentification
OWSServiceIdentification$new(xmlObj, owsVersion, serviceVersion)
xmlObj
object of class XMLInternalNode-class from XML
owsVersion
OWS version
serviceVersion
service version
getName()
Get service identification - name
OWSServiceIdentification$getName()
the name, object of class character
getTitle()
Get service identification - title
OWSServiceIdentification$getTitle()
the title, object of class character
getAbstract()
Get service identification - abstract
OWSServiceIdentification$getAbstract()
the abstract, object of class character
getKeywords()
Get service identification - keywords
OWSServiceIdentification$getKeywords()
the keywords, object of class character
getOnlineResource()
Get service identification - online resource
OWSServiceIdentification$getOnlineResource()
the online resource, object of class character
getServiceType()
Get service identification - service type
OWSServiceIdentification$getServiceType()
the service type, object of class character
getServiceTypeVersion()
Get service identification - service type version
OWSServiceIdentification$getServiceTypeVersion()
the service type version, object of class character
getFees()
Get service identification - fees
OWSServiceIdentification$getFees()
the fees, object of class character
getAccessConstraints()
Get service identification - access constraints
OWSServiceIdentification$getAccessConstraints()
the access constraints, object of class character
clone()
The objects of this class are cloneable with this method.
OWSServiceIdentification$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally by ows4R
Emmanuel Blondel <[email protected]>
OWSServiceProvider
OWSServiceProvider
R6Class
object.
Object of R6Class
for modelling an OGC Service Provider
new()
Initializes an object of class OWSServiceProvider
OWSServiceProvider$new(xmlObj, owsVersion, serviceVersion)
xmlObj
object of class XMLInternalNode-class from XML
owsVersion
OWS version
serviceVersion
service version
getProviderName()
Get provider name
OWSServiceProvider$getProviderName()
the
provider name, object of class character
getProviderSite()
Get provider site
OWSServiceProvider$getProviderSite()
the
provider site, object of class character
getServiceContact()
Get provider contact
OWSServiceProvider$getServiceContact()
the
provider contact, object of class ISOResponsibleParty from geometa
clone()
The objects of this class are cloneable with this method.
OWSServiceProvider$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally by ows4R
Emmanuel Blondel <[email protected]>
OWSUtils
OWSUtils
OWSUtils
R6Class
object.
set of OWS Utilities
getNamespaces()
Get the namespaces associated to a given XML object
findNamespace(namespaces, id, uri)
Finds a namespace by id or by URI
toBBOX(xmin, xmax, ymin, ymax)
Creates a bbox matrix from min/max x/y coordinates
findP4s(srsName, morphToESRI)
Finds the PROJ4 string definition for a given srsName
toCRS(srsName)
Converts a srsName into a CRS object
toEPSG(crs)
Get the EPSG code from a CRS object
getAspectRatio(bbox)
Get the aspect ratio for a given bbox
Emmanuel Blondel <[email protected]>
#toBBOX bbox <- OWSUtils$toBBOX(-180,-90,180,90) #toCRS crs <- OWSUtils$toCRS("EPSG:4326")
#toBBOX bbox <- OWSUtils$toBBOX(-180,-90,180,90) #toCRS crs <- OWSUtils$toCRS("EPSG:4326")
OWSWGS84BoundingBox
OWSWGS84BoundingBox
R6Class
object.
Object of R6Class
for modelling an OGC WS84 BoundingBox
ows4R::OGCAbstractObject
-> ows4R::OWSBoundingBox
-> OWSWGS84BoundingBox
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::OWSBoundingBox$decode()
ows4R::OWSBoundingBox$getBBOX()
new()
Initializes an object of class OWSBoundingBox
OWSWGS84BoundingBox$new(xml = NULL, owsVersion, serviceVersion, logger = NULL)
xml
an object of class XMLInternalNode-class to initialize from XML
owsVersion
OWS version
serviceVersion
service version
logger
logger
clone()
The objects of this class are cloneable with this method.
OWSWGS84BoundingBox$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by geometa
Emmanuel Blondel <[email protected]>
PropertyIsBetween
PropertyIsBetween
R6Class
object.
Object of R6Class
for modelling an PropertyIsBetween
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> PropertyIsBetween
PropertyName
property name field for XML encoding
lower
lower value
upper
upper value
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsLike
PropertyIsBetween$new(PropertyName, lower, upper)
PropertyName
property name
lower
lower value
upper
upper value
clone()
The objects of this class are cloneable with this method.
PropertyIsBetween$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsBetween$new(PropertyName = "property", lower = 1, upper = 10) expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsBetween$new(PropertyName = "property", lower = 1, upper = 10) expr_xml <- expr$encode() #see how it looks like in XML
PropertyIsEqualTo
PropertyIsEqualTo
R6Class
object.
Object of R6Class
for modelling an PropertyIsEqualTo
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::BinaryComparisonOpType
-> PropertyIsEqualTo
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsEqualTo
PropertyIsEqualTo$new(PropertyName, Literal, matchCase = NA)
PropertyName
property name
Literal
literal
matchCase
match case
clone()
The objects of this class are cloneable with this method.
PropertyIsEqualTo$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsEqualTo$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsEqualTo$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
PropertyIsGreaterThan
PropertyIsGreaterThan
R6Class
object.
Object of R6Class
for modelling an PropertyIsGreaterThan
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::BinaryComparisonOpType
-> PropertyIsGreaterThan
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsGreaterThan
PropertyIsGreaterThan$new(PropertyName, Literal, matchCase = NA)
PropertyName
property name
Literal
literal
matchCase
match case
clone()
The objects of this class are cloneable with this method.
PropertyIsGreaterThan$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsGreaterThan$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsGreaterThan$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
PropertyIsGreaterThanOrEqualTo
PropertyIsGreaterThanOrEqualTo
R6Class
object.
Object of R6Class
for modelling an PropertyIsGreaterThanOrEqualTo
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::BinaryComparisonOpType
-> PropertyIsGreaterThanOrEqualTo
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsGreaterThanOrEqualTo
PropertyIsGreaterThanOrEqualTo$new(PropertyName, Literal, matchCase = NA)
PropertyName
property name
Literal
literal
matchCase
match case
clone()
The objects of this class are cloneable with this method.
PropertyIsGreaterThanOrEqualTo$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsGreaterThanOrEqualTo$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsGreaterThanOrEqualTo$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
PropertyIsLessThan
PropertyIsLessThan
R6Class
object.
Object of R6Class
for modelling an PropertyIsLessThan
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::BinaryComparisonOpType
-> PropertyIsLessThan
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsLessThan
PropertyIsLessThan$new(PropertyName, Literal, matchCase = NA)
PropertyName
property name
Literal
literal
matchCase
match case
clone()
The objects of this class are cloneable with this method.
PropertyIsLessThan$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsLessThan$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsLessThan$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
PropertyIsLesserThanOrEqualTo
PropertyIsLesserThanOrEqualTo
R6Class
object.
Object of R6Class
for modelling an PropertyIsLesserThanOrEqualTo
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::BinaryComparisonOpType
-> PropertyIsLessThanOrEqualTo
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsLessThanOrEqualTo
PropertyIsLessThanOrEqualTo$new(PropertyName, Literal, matchCase = NA)
PropertyName
property name
Literal
literal
matchCase
match case
clone()
The objects of this class are cloneable with this method.
PropertyIsLessThanOrEqualTo$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsLessThanOrEqualTo$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsLessThanOrEqualTo$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
PropertyIsLike
PropertyIsLike
R6Class
object.
Object of R6Class
for modelling an PropertyIsLike
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> PropertyIsLike
PropertyName
property name field for XML encoding
Literal
literal field for XML encoding
attrs
attributes for XML encoding
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsLike
PropertyIsLike$new( PropertyName, Literal, escapeChar = "\\", singleChar = "_", wildCard = "%", matchCase = NA )
PropertyName
property name
Literal
literal
escapeChar
escape character. Default is "\"
singleChar
single character. Default is "_"
wildCard
wildcard
matchCase
match case
clone()
The objects of this class are cloneable with this method.
PropertyIsLike$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsLike$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsLike$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
PropertyIsNotEqualTo
PropertyIsNotEqualTo
R6Class
object.
Object of R6Class
for modelling an PropertyIsNotEqualTo
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> ows4R::BinaryComparisonOpType
-> PropertyIsNotEqualTo
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsNotEqualTo
PropertyIsNotEqualTo$new(PropertyName, Literal, matchCase = NA)
PropertyName
property name
Literal
literal
matchCase
match case
clone()
The objects of this class are cloneable with this method.
PropertyIsNotEqualTo$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsNotEqualTo$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsNotEqualTo$new(PropertyName = "property", Literal = "value") expr_xml <- expr$encode() #see how it looks like in XML
PropertyIsNull
PropertyIsNull
R6Class
object.
Object of R6Class
for modelling an PropertyIsNull
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> PropertyIsNull
PropertyName
property name field for XML encoding
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::OGCExpression$getExprVersion()
ows4R::OGCExpression$setExprVersion()
new()
Initializes an object extending PropertyIsLike
PropertyIsNull$new(PropertyName)
PropertyName
property name
clone()
The objects of this class are cloneable with this method.
PropertyIsNull$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
expr <- PropertyIsNull$new(PropertyName = "property") expr_xml <- expr$encode() #see how it looks like in XML
expr <- PropertyIsNull$new(PropertyName = "property") expr_xml <- expr$encode() #see how it looks like in XML
registerOWSNamespace
allows to register a new namespace
in ows4R
registerOWSNamespace(id, uri, force)
registerOWSNamespace(id, uri, force)
id |
prefix of the namespace |
uri |
URI of the namespace |
force |
logical parameter indicating if registration has be to be forced in case the identified namespace is already registered |
Emmanuel Blondel, [email protected]
registerOWSNamespace(id = "myprefix", uri = "http://someuri")
registerOWSNamespace(id = "myprefix", uri = "http://someuri")
UnaryLogicOpType
UnaryLogicOpType
R6Class
object.
Object of R6Class
for modelling an UnaryLogicOpType
ows4R::OGCAbstractObject
-> ows4R::OGCExpression
-> UnaryLogicOpType
operations
a list OGC expressions
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::OGCExpression$getExprVersion()
new()
Initializes a UnaryLogicOpType expression
UnaryLogicOpType$new(..., element, namespacePrefix, exprVersion = "1.1.0")
...
list of objects of class OGCExpression
element
element
namespacePrefix
namespacePrefix
exprVersion
OGC expression version. Default is "1.1.0"
setExprVersion()
Sets expression version. The methods will control that expression versions are set for each of the operations specified in the expression.
UnaryLogicOpType$setExprVersion(exprVersion)
exprVersion
OGC expression version
clone()
The objects of this class are cloneable with this method.
UnaryLogicOpType$clone(deep = FALSE)
deep
Whether to make a deep clone.
abstract super class of all the unary logical operation classes
WCSCapabilities
WCSCapabilities
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Web Coverage Service Get Capabilities document.
ows4R::OGCAbstractObject
-> ows4R::OWSCapabilities
-> WCSCapabilities
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::OWSCapabilities$getClient()
ows4R::OWSCapabilities$getOWSVersion()
ows4R::OWSCapabilities$getOperationsMetadata()
ows4R::OWSCapabilities$getRequest()
ows4R::OWSCapabilities$getService()
ows4R::OWSCapabilities$getServiceIdentification()
ows4R::OWSCapabilities$getServiceProvider()
ows4R::OWSCapabilities$getServiceVersion()
ows4R::OWSCapabilities$getUrl()
ows4R::OWSCapabilities$setClient()
new()
Initializes a WCSCapabilities object
WCSCapabilities$new(url, version, client = NULL, logger = NULL, ...)
url
url
version
version
client
an object of class WCSClient
logger
logger type NULL
, "INFO" or "DEBUG"
...
any other parameter to pass to OWSGetCapabilities service request
getCoverageSummaries()
Get coverage summaries
WCSCapabilities$getCoverageSummaries()
a list
of WCSCoverageSummary objects
findCoverageSummaryById()
Finds a coverage by name
WCSCapabilities$findCoverageSummaryById(expr, exact = FALSE)
expr
expr
exact
exact matching? Default is TRUE
clone()
The objects of this class are cloneable with this method.
WCSCapabilities$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: WCSCapabilities$new("http://localhost:8080/geoserver/wcs", serviceVersion = "2.0.1") ## End(Not run)
## Not run: WCSCapabilities$new("http://localhost:8080/geoserver/wcs", serviceVersion = "2.0.1") ## End(Not run)
WCSClient
WCSClient
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Web Coverage Service.
ows4R::OGCAbstractObject
-> ows4R::OWSClient
-> WCSClient
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 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 )
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 WCS capabilities
WCSClient$getCapabilities()
an object of class WCSCapabilities
reloadCapabilities()
Reloads WCS capabilities
WCSClient$reloadCapabilities()
describeCoverage()
Describes coverage
WCSClient$describeCoverage(identifier)
identifier
identifier
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, method = "GET", filename = NULL, ... )
identifier
Coverage identifier. Object of class character
bbox
bbox. Object of class matrix
. Default is NULL
. eg. OWSUtils$toBBOX(-180,180,-90,90)
crs
crs. Object of class character
giving the CRS identifier (EPSG prefixed code, or URI/URN). Default is NULL
.
time
time. Object of class character
representing time instant/period. Default is NULL
format
format. Object of class character
Default will be GeoTIFF, coded differently depending on the WCS version.
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
method
method to get coverage, either 'GET' or 'POST' (experimental - under development). Object of class character
.
filename
filename. Object of class character
. Optional filename to download the coverage
...
any other argument to WCSGetCoverage
elevation
elevation. Object of class character
or numeric
. 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)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: wcs <- WCSClient$new("http://localhost:8080/geoserver/wcs", serviceVersion = "2.0.1") ## End(Not run)
## Not run: wcs <- WCSClient$new("http://localhost:8080/geoserver/wcs", serviceVersion = "2.0.1") ## End(Not run)
WCSCoverage
WCSCoverage
R6Class
object.
Object of R6Class
modelling a WCS coverage
ows4R::OGCAbstractObject
-> WCSCoverage
description
description
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()
new()
Initializes an object of class WCSCoverage
WCSCoverage$new(xmlObj, serviceVersion, owsVersion, logger = NULL)
xmlObj
object of class XMLInternalNode-class
serviceVersion
WCS service version
owsVersion
OWS version
logger
logger
getIdentifier()
Get identifier
WCSCoverage$getIdentifier()
an object of class character
getTitle()
Get title
WCSCoverage$getTitle()
an object of class character
getAbstract()
Get abstract
WCSCoverage$getAbstract()
an object of class character
getReference()
Get reference
WCSCoverage$getReference()
an object of class character
getData()
Get data
WCSCoverage$getData(filename = NULL)
filename
filename. Optional file name where to download the coverage
an object of class SpatRaster
from terra
clone()
The objects of this class are cloneable with this method.
WCSCoverage$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R.
Emmanuel Blondel <[email protected]>
WCSCoverageDescription
WCSCoverageDescription
R6Class
object.
Object of R6Class
modelling a WCS coverage summary
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> geometa::GMLAbstractObject
-> geometa::GMLAbstractFeature
-> geometa::GMLAbstractCoverage
-> geometa::GMLCOVAbstractCoverage
-> WCSCoverageDescription
CoverageId
coverage ID
SupportedCRS
supported CRS
SupportedFormat
supported Format
Domain
domain
Range
range
ServiceParameters
service parmaeters
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
geometa::ISOAbstractObject$contains()
geometa::ISOAbstractObject$createLocalisedProperty()
geometa::ISOAbstractObject$decode()
geometa::ISOAbstractObject$delListElement()
geometa::ISOAbstractObject$encode()
geometa::ISOAbstractObject$getClass()
geometa::ISOAbstractObject$getClassName()
geometa::ISOAbstractObject$getNamespaceDefinition()
geometa::ISOAbstractObject$isDocument()
geometa::ISOAbstractObject$isFieldInheritedFrom()
geometa::ISOAbstractObject$print()
geometa::ISOAbstractObject$save()
geometa::ISOAbstractObject$setAttr()
geometa::ISOAbstractObject$setCodeList()
geometa::ISOAbstractObject$setCodeListValue()
geometa::ISOAbstractObject$setCodeSpace()
geometa::ISOAbstractObject$setHref()
geometa::ISOAbstractObject$setId()
geometa::ISOAbstractObject$setIsNull()
geometa::ISOAbstractObject$setValue()
geometa::ISOAbstractObject$validate()
geometa::ISOAbstractObject$wrapBaseElement()
geometa::GMLAbstractFeature$setBoundedBy()
geometa::GMLAbstractCoverage$setDomainSet()
geometa::GMLAbstractCoverage$setRangeSet()
new()
Initializes an object of class WCSCoverageDescription
WCSCoverageDescription$new(xmlObj, serviceVersion, owsVersion, logger = NULL)
xmlObj
an object of class XMLInternalNode-class to initialize from XML
serviceVersion
service version
owsVersion
OWS version
logger
logger
getId()
getId
WCSCoverageDescription$getId()
the coverage id, object of class character
getSupportedCRS()
getSupported CRS. Applies to WCS 1 coverage descriptions
WCSCoverageDescription$getSupportedCRS()
getSupportedFormats()
get supported formats. Applies to WCS 1 coverage descriptions
WCSCoverageDescription$getSupportedFormats()
getDomain()
get domain. Applies to WCS 1 coverage descriptions
WCSCoverageDescription$getDomain()
getRange()
get range. Applies to WCS 1.0 coverage descriptions
WCSCoverageDescription$getRange()
clone()
The objects of this class are cloneable with this method.
WCSCoverageDescription$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R.
Emmanuel Blondel <[email protected]>
WCSCoverageDomain
WCSCoverageDomain
R6Class
object.
Object of R6Class
modelling a WCS coverage domain
ows4R::OGCAbstractObject
-> WCSCoverageDomain
spatialDomain
spatial domain
temporalDomain
temporal domain
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()
new()
Initializes an object of class WCSCoverageDomain
WCSCoverageDomain$new(xmlObj, serviceVersion, owsVersion, logger = NULL)
xmlObj
an object of class XMLInternalNode-class to initialize from XML
serviceVersion
service version
owsVersion
OWS version
logger
logger
getSpatialDomain()
Get spatial domain
WCSCoverageDomain$getSpatialDomain()
object of class WCSCoverageSpatialDomain
getTemporalDomain()
Get spatial domain
WCSCoverageDomain$getTemporalDomain()
object of class WCSCoverageTemporalDomain
clone()
The objects of this class are cloneable with this method.
WCSCoverageDomain$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R.
Emmanuel Blondel <[email protected]>
WCSCoverageFilenameHandler
provides a coverage filename handler for coverage download
WCSCoverageFilenameHandler(identifier, time, elevation, bbox, format)
WCSCoverageFilenameHandler(identifier, time, elevation, bbox, format)
identifier |
coverage identifier |
time |
time |
elevation |
elevation |
bbox |
bbox |
format |
format |
the filename to use for coverage download
Emmanuel Blondel, [email protected]
WCSCoverageSpatialDomain
WCSCoverageSpatialDomain
R6Class
object.
Object of R6Class
modelling a WCS coverage spatial domain
ows4R::OGCAbstractObject
-> WCSCoverageSpatialDomain
envelopes
envelopes. For WCS 1.0
BoundingBox
bounding box. For WCS 1.1
grids
For WCS 1.0
GridCRS
grid CRS. For WCS 1.1
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()
new()
Initializes an object of class WCSCoverageDomain
WCSCoverageSpatialDomain$new(xmlObj, serviceVersion, owsVersion, logger = NULL)
xmlObj
an object of class XMLInternalNode-class to initialize from XML
serviceVersion
service version
owsVersion
OWS version
logger
logger
getEnvelopes()
Get envelopes. Method that applies to WCS 1.0 only
WCSCoverageSpatialDomain$getEnvelopes()
a list of objects of class GMLEnvelope or GMLEnvelopeWithTimePeriod
getBoundingBox()
Get bounding boxes. Method that applies to WCS 1.1 only
WCSCoverageSpatialDomain$getBoundingBox()
a list of objects of class OWSBoundingBox
getGrids()
Get grids. Method that applies to WCS 1.0 only
WCSCoverageSpatialDomain$getGrids()
a list of of objects of class GMLGrid or GMLRectifiedGrid
getGridCRS()
Get Grid CRS. Method that applies to WCS 1.1 only
WCSCoverageSpatialDomain$getGridCRS()
a list of objects of class WCSGridCRS
clone()
The objects of this class are cloneable with this method.
WCSCoverageSpatialDomain$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R.
Emmanuel Blondel <[email protected]>
WCSCoverageSummary
WCSCoverageSummary
R6Class
object.
Object of R6Class
modelling a WCS coverage summary
ows4R::OGCAbstractObject
-> WCSCoverageSummary
CoverageId
coverage id
CoverageSubtype
coverage subtype
CoverageSubtypeParent
coverage subtype parent
WGS84BoundingBox
WGS84 bounding box
BoundingBox
bounding box
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()
new()
Initializes a WCSCoverageSummary object
WCSCoverageSummary$new( xmlObj, capabilities, serviceVersion, owsVersion, logger = NULL )
xmlObj
object of class XMLInternalNode-class from XML
capabilities
object of class WCSCapabilities
serviceVersion
WCS service version
owsVersion
version
logger
logger type NULL
, "INFO" or "DEBUG"
getId()
Get coverage ID
WCSCoverageSummary$getId()
an object of class character
getSubtype()
Get sub type
WCSCoverageSummary$getSubtype()
an object of class character
getSubtypeParent()
Get sub type parent
WCSCoverageSummary$getSubtypeParent()
an object of class character
getWGS84BoundingBox()
Get bounding box
WCSCoverageSummary$getWGS84BoundingBox()
an object of class OWSWGS84BoundingBox
getBoundingBox()
Get WGS84 bounding box
WCSCoverageSummary$getBoundingBox()
an object of class OWSBoundingBox
getDescription()
Get description
WCSCoverageSummary$getDescription()
an object of class WCSCoverageDescription
getDimensions()
Get dimensions
WCSCoverageSummary$getDimensions()
the list of dimensions
getCoverage()
Get coverage data
WCSCoverageSummary$getCoverage( bbox = NULL, crs = NULL, time = NULL, elevation = NULL, format = NULL, rangesubset = NULL, gridbaseCRS = NULL, gridtype = NULL, gridCS = NULL, gridorigin = NULL, gridoffsets = NULL, method = "GET", filename = NULL, ... )
bbox
bbox. Object of class matrix
. Default is NULL
. eg. OWSUtils$toBBOX(-180,180,-90,90)
crs
crs. Object of class character
giving the CRS identifier (EPSG prefixed code, or URI/URN). Default is NULL
.
time
time. Object of class character
representing time instant/period. Default is NULL
elevation
elevation. Object of class character
or numeric
. Default is NULL
format
format. Object of class character
Default will be GeoTIFF, coded differently depending on the WCS version.
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
method
method to get coverage, either 'GET' or 'POST' (experimental - under development). Object of class character
.
filename
filename. Object of class character
. Optional filename to download the coverage
...
any other argument to WCSGetCoverage
an object of class SpatRaster
from terra
getCoverageStack()
Get a spatio-temporal coverage data cubes as coverage stack
WCSCoverageSummary$getCoverageStack( time = NULL, elevation = NULL, bbox = NULL, filename_handler = NULL, ... )
time
time
elevation
elevation
bbox
bbox
filename_handler
Optional filename handling function with arguments 'identifier', 'time', 'elevation', 'bbox', 'format' See WCSCoverageFilenameHandler as genric filename handler that can be used.
...
any other parameter to pass to getCoverage
an object of class stack from raster
clone()
The objects of this class are cloneable with this method.
WCSCoverageSummary$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R.
Emmanuel Blondel <[email protected]>
WCSCoverageTemporalDomain
WCSCoverageTemporalDomain
R6Class
object.
Object of R6Class
modelling a WCS coverage temporal domain
ows4R::OGCAbstractObject
-> WCSCoverageTemporalDomain
instants
instants
periods
periods
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()
new()
Initializes an object of class WCSCoverageTemporalDomain
WCSCoverageTemporalDomain$new( xmlObj, serviceVersion, owsVersion, logger = NULL )
xmlObj
an object of class XMLInternalNode-class to initialize from XML
serviceVersion
service version
owsVersion
OWS version
logger
logger
getInstants()
Get time instants
WCSCoverageTemporalDomain$getInstants()
a list of objects of class POSIXct
getPeriods()
Get time periods
WCSCoverageTemporalDomain$getPeriods()
a list of objects of class GMLTimePeriod
clone()
The objects of this class are cloneable with this method.
WCSCoverageTemporalDomain$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R.
Emmanuel Blondel <[email protected]>
WCSDescribeCoverage
WCSDescribeCoverage
R6Class
object.
Object of R6Class
for modelling a WCS DescribeCoverage request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> WCSDescribeCoverage
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a WCSDescribeCoverage service request
WCSDescribeCoverage$new( capabilities, op, url, serviceVersion, coverageId, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), logger = NULL, ... )
capabilities
an object of class WCSCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
serviceVersion
serviceVersion
coverageId
coverage ID
user
user
pwd
password
token
token
headers
headers
config
config
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
WCSDescribeCoverage$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a WCS DescribeCoverage request
Emmanuel Blondel <[email protected]>
WCSGetCoverage
WCSGetCoverage
R6Class
object.
Object of R6Class
for modelling a WCS GetCoverage request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> WCSGetCoverage
CoverageId
coverage identifier
format
coverage format
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a WCSGetCoverage service request
WCSGetCoverage$new( capabilities, op, url, serviceVersion, coverage, envelope = NULL, crs = NULL, time = NULL, elevation = NULL, format = NULL, rangesubset = NULL, gridbaseCRS = NULL, gridtype = NULL, gridCS = NULL, gridorigin = NULL, gridoffsets = NULL, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), method = "GET", logger = NULL, ... )
capabilities
an object of class WCSCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
serviceVersion
serviceVersion
coverage
coverage, object of class WCSCoverageSummary
envelope
envelope
crs
crs
time
time
elevation
elevation
format
format
rangesubset
range subset
gridbaseCRS
grid base CRS
gridtype
grid type
gridCS
grid CS
gridorigin
grid origin
gridoffsets
grid offsets
user
user
pwd
password
token
token
headers
headers
config
config
method
method
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
WCSGetCoverage$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a WCS GetCoverage request
Emmanuel Blondel <[email protected]>
WCSGridCRS
WCSGridCRS
R6Class
object.
Object of R6Class
modelling a WCS grid CRS
ows4R::OGCAbstractObject
-> WCSGridCRS
GridBaseCRS
grid base CRS
GridType
grid type
GridOrigin
grid origin
GridOffsets
grid offsets
GridCS
grid CS
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()
new()
Initializes an object of class WCSGridCRS
WCSGridCRS$new(xmlObj, serviceVersion, owsVersion, logger = NULL)
xmlObj
an object of class XMLInternalNode-class to initialize from XML
serviceVersion
service version
owsVersion
OWS version
logger
logger
clone()
The objects of this class are cloneable with this method.
WCSGridCRS$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R.
Emmanuel Blondel <[email protected]>
WCSGSElevationDomain
WCSGSElevationDomain
R6Class
object.
Object of R6Class
modelling a WCS geoserver elevation domain object
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> WCSGSElevationDomain
SingleValue
single values
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
geometa::ISOAbstractObject$contains()
geometa::ISOAbstractObject$createLocalisedProperty()
geometa::ISOAbstractObject$delListElement()
geometa::ISOAbstractObject$encode()
geometa::ISOAbstractObject$getClass()
geometa::ISOAbstractObject$getClassName()
geometa::ISOAbstractObject$getNamespaceDefinition()
geometa::ISOAbstractObject$initialize()
geometa::ISOAbstractObject$isDocument()
geometa::ISOAbstractObject$isFieldInheritedFrom()
geometa::ISOAbstractObject$print()
geometa::ISOAbstractObject$save()
geometa::ISOAbstractObject$setAttr()
geometa::ISOAbstractObject$setCodeList()
geometa::ISOAbstractObject$setCodeListValue()
geometa::ISOAbstractObject$setCodeSpace()
geometa::ISOAbstractObject$setHref()
geometa::ISOAbstractObject$setId()
geometa::ISOAbstractObject$setIsNull()
geometa::ISOAbstractObject$setValue()
geometa::ISOAbstractObject$validate()
geometa::ISOAbstractObject$wrapBaseElement()
decode()
Decodes from XML
WCSGSElevationDomain$decode(xml)
xml
object of class XMLInternalNode-class from XML
clone()
The objects of this class are cloneable with this method.
WCSGSElevationDomain$clone(deep = FALSE)
deep
Whether to make a deep clone.
Experimental
Emmanuel Blondel <[email protected]>
WCSGSTimeDomain
WCSGSTimeDomain
R6Class
object.
Object of R6Class
modelling a WCS geoserver time domain object
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> WCSGSTimeDomain
TimeInstant
time instants
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
geometa::ISOAbstractObject$contains()
geometa::ISOAbstractObject$createLocalisedProperty()
geometa::ISOAbstractObject$delListElement()
geometa::ISOAbstractObject$encode()
geometa::ISOAbstractObject$getClass()
geometa::ISOAbstractObject$getClassName()
geometa::ISOAbstractObject$getNamespaceDefinition()
geometa::ISOAbstractObject$initialize()
geometa::ISOAbstractObject$isDocument()
geometa::ISOAbstractObject$isFieldInheritedFrom()
geometa::ISOAbstractObject$print()
geometa::ISOAbstractObject$save()
geometa::ISOAbstractObject$setAttr()
geometa::ISOAbstractObject$setCodeList()
geometa::ISOAbstractObject$setCodeListValue()
geometa::ISOAbstractObject$setCodeSpace()
geometa::ISOAbstractObject$setHref()
geometa::ISOAbstractObject$setId()
geometa::ISOAbstractObject$setIsNull()
geometa::ISOAbstractObject$setValue()
geometa::ISOAbstractObject$validate()
geometa::ISOAbstractObject$wrapBaseElement()
decode()
Decodes from XML
WCSGSTimeDomain$decode(xml)
xml
object of class XMLInternalNode-class from XML
clone()
The objects of this class are cloneable with this method.
WCSGSTimeDomain$clone(deep = FALSE)
deep
Whether to make a deep clone.
Experimental
Emmanuel Blondel <[email protected]>
WFSCapabilities
WFSCapabilities
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Web Feature Service Get Capabilities document.
ows4R::OGCAbstractObject
-> ows4R::OWSCapabilities
-> WFSCapabilities
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::OWSCapabilities$getClient()
ows4R::OWSCapabilities$getOWSVersion()
ows4R::OWSCapabilities$getOperationsMetadata()
ows4R::OWSCapabilities$getRequest()
ows4R::OWSCapabilities$getService()
ows4R::OWSCapabilities$getServiceIdentification()
ows4R::OWSCapabilities$getServiceProvider()
ows4R::OWSCapabilities$getServiceVersion()
ows4R::OWSCapabilities$getUrl()
ows4R::OWSCapabilities$setClient()
new()
Initializes a WFSCapabilities object
WFSCapabilities$new(url, version, logger = NULL, ...)
url
url
version
version
logger
logger type NULL
, "INFO" or "DEBUG"
...
any other parameter to pass to OWSGetCapabilities service request
getFeatureTypes()
List the feature types available. If pretty
is TRUE,
the output will be an object of class data.frame
WFSCapabilities$getFeatureTypes(pretty = FALSE)
pretty
whether the output should be summarized as data.frame
a list
of WFSFeatureType or a data.frame
findFeatureTypeByName()
Finds a feature type by name
WFSCapabilities$findFeatureTypeByName(expr, exact = TRUE)
expr
expr
exact
exact matching? Default is TRUE
clone()
The objects of this class are cloneable with this method.
WFSCapabilities$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used to read a WFSCapabilities
document. The use of WFSClient
is
recommended instead to benefit from the full set of capabilities associated to a WFS server.
Emmanuel Blondel <[email protected]>
WFSClient
WFSClient
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Web Feature Service.
ows4R::OGCAbstractObject
-> ows4R::OWSClient
-> WFSClient
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 WFSClient 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
WFSClient$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 WFS capabilities
WFSClient$getCapabilities()
an object of class WFSCapabilities
reloadCapabilities()
Reloads WFS capabilities
WFSClient$reloadCapabilities()
describeFeatureType()
Describes a feature type
WFSClient$describeFeatureType(typeName)
typeName
the name of the feature type
a list
of WFSFeatureTypeElement
getFeatures()
Get features
WFSClient$getFeatures(typeName, ...)
typeName
the name of the feature type
...
any other parameter to pass to the WFSGetFeature request
features as object of class sf
getFeatureTypes()
List the feature types available. If pretty
is TRUE,
the output will be an object of class data.frame
WFSClient$getFeatureTypes(pretty = FALSE)
pretty
whether the output should be summarized as data.frame
a list
of WFSFeatureType or a data.frame
clone()
The objects of this class are cloneable with this method.
WFSClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: #example based on a WFS endpoint responding at http://localhost:8080/geoserver/wfs wfs <- WFSClient$new("http://localhost:8080/geoserver/wfs", serviceVersion = "1.1.1") #get capabilities caps <- wfs$getCapabilities() #find feature type ft <- caps$findFeatureTypeByName("mylayer") if(length(ft)>0){ data <- ft$getFeatures() data_with_filter <- ft$getFeatures(cql_filter = "somefilter") } #Advanced examples at https://github.com/eblondel/ows4R/wiki#wfs ## End(Not run)
## Not run: #example based on a WFS endpoint responding at http://localhost:8080/geoserver/wfs wfs <- WFSClient$new("http://localhost:8080/geoserver/wfs", serviceVersion = "1.1.1") #get capabilities caps <- wfs$getCapabilities() #find feature type ft <- caps$findFeatureTypeByName("mylayer") if(length(ft)>0){ data <- ft$getFeatures() data_with_filter <- ft$getFeatures(cql_filter = "somefilter") } #Advanced examples at https://github.com/eblondel/ows4R/wiki#wfs ## End(Not run)
WFSDescribeFeatureType
WFSDescribeFeatureType
R6Class
object.
Object of R6Class
for modelling a WFS DescribeFeatureType request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> WFSDescribeFeatureType
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a WFSDescribeFeatureType service request
WFSDescribeFeatureType$new( capabilities, op, url, version, typeName, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), logger = NULL, ... )
capabilities
an object of class WFSCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
version
service version
typeName
typeName
user
user
pwd
pwd
token
token
headers
headers
config
config
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
WFSDescribeFeatureType$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used by ows4R to trigger a WFS DescribeFeatureType request
Emmanuel Blondel <[email protected]>
WFSFeatureType
WFSFeatureType
R6Class
object.
Object of R6Class
modelling a WFS feature type
ows4R::OGCAbstractObject
-> WFSFeatureType
description
description
features
features
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()
new()
Initializes an object of class WFSFeatureType
WFSFeatureType$new(xmlObj, capabilities, version, logger = NULL)
xmlObj
an object of class XMLInternalNode-class to initialize from XML
capabilities
object of class WFSCapabilities
version
service version
logger
logger
getName()
Get feature type name
WFSFeatureType$getName()
object
of class character
getTitle()
Get feature type title
WFSFeatureType$getTitle()
object
of class character
getAbstract()
Get feature type abstract
WFSFeatureType$getAbstract()
object
of class character
getKeywords()
Get feature type keywords
WFSFeatureType$getKeywords()
object
of class character
getDefaultCRS()
Get feature type default CRS
WFSFeatureType$getDefaultCRS()
object
of class character
getBoundingBox()
Get feature type bounding box
WFSFeatureType$getBoundingBox()
object
of class matrix
getDescription()
Describes a feature type
WFSFeatureType$getDescription(pretty = FALSE)
pretty
pretty whether to return a prettified data.frame
. Default is FALSE
a list
of WFSFeatureTypeElement or data.frame
hasGeometry()
Indicates with feature type has a geometry
WFSFeatureType$hasGeometry()
object of class logical
getGeometryType()
Get geometry type
WFSFeatureType$getGeometryType()
object of class character representing the geometry tpe
getFeaturesCRS()
Inherits features CRS
WFSFeatureType$getFeaturesCRS(obj)
obj
features object
object of class integer
getFeatures()
Get features
WFSFeatureType$getFeatures( ..., validate = TRUE, outputFormat = NULL, paging = FALSE, paging_length = 1000, parallel = FALSE, parallel_handler = NULL, cl = NULL )
...
any other parameter to pass to the WFSGetFeature request
validate
Whether features have to be validated vs. the feature type description. Default is TRUE
outputFormat
output format
paging
paging. Default is FALSE
paging_length
number of features to request per page. Default is 1000
parallel
whether to get features using parallel multicore strategy. Default is FALSE
parallel_handler
Handler function to parallelize the code. eg mclapply
cl
optional cluster object for parallel cluster approaches using eg. parallel::makeCluster
typeName
the name of the feature type
features as object of class sf
clone()
The objects of this class are cloneable with this method.
WFSFeatureType$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a WFS DescribeFeatureType request
Emmanuel Blondel <[email protected]>
WFSFeatureTypeElement
WFSFeatureTypeElement
R6Class
object.
Object of R6Class
modelling a WFS feature type element
new()
Initializes a WFSFeatureTypeElement
WFSFeatureTypeElement$new(xmlObj, namespaces)
xmlObj
object of class XMLInternalNode-class from XML
namespaces
namespaces definitions inherited from parent XML, as data.frame
getMinOccurs()
get min occurs
WFSFeatureTypeElement$getMinOccurs()
an object of class character
getMaxOccurs()
get max occurs
WFSFeatureTypeElement$getMaxOccurs()
an object of class character
isNillable()
get if nillable
WFSFeatureTypeElement$isNillable()
an object of class logical
getName()
get name
WFSFeatureTypeElement$getName()
an object of class character
getType()
get type
WFSFeatureTypeElement$getType()
an object of class character
isGeometry()
Is geometry
WFSFeatureTypeElement$isGeometry()
return
object of class logical
clone()
The objects of this class are cloneable with this method.
WFSFeatureTypeElement$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used by ows4R
Emmanuel Blondel <[email protected]>
WFSGetFeature
WFSGetFeature
R6Class
object.
Object of R6Class
for modelling a WFS GetFeature request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> WFSGetFeature
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a WFSGetFeature service request
WFSGetFeature$new( capabilities, op, url, version, typeName, outputFormat = NULL, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), logger = NULL, ... )
capabilities
an object of class WFSCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
version
service version
typeName
typeName
outputFormat
output format
user
user
pwd
password
token
token
headers
headers
config
config
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
WFSGetFeature$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a WFS GetFeature request
Emmanuel Blondel <[email protected]>
WMSCapabilities
WMSCapabilities
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Web Map Service Get Capabilities document.
ows4R::OGCAbstractObject
-> ows4R::OWSCapabilities
-> WMSCapabilities
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::OWSCapabilities$getClient()
ows4R::OWSCapabilities$getOWSVersion()
ows4R::OWSCapabilities$getOperationsMetadata()
ows4R::OWSCapabilities$getRequest()
ows4R::OWSCapabilities$getService()
ows4R::OWSCapabilities$getServiceIdentification()
ows4R::OWSCapabilities$getServiceProvider()
ows4R::OWSCapabilities$getServiceVersion()
ows4R::OWSCapabilities$getUrl()
ows4R::OWSCapabilities$setClient()
new()
Initializes a WMSCapabilities object
WMSCapabilities$new(url, version, logger = NULL, ...)
url
url
version
version
logger
logger type NULL
, "INFO" or "DEBUG"
...
any other parameter to pass to OWSGetCapabilities service request
getRequests()
List the requests available. If pretty
is TRUE,
the output will be an object of class data.frame
WMSCapabilities$getRequests(pretty = FALSE)
pretty
pretty
a list
of OWSRequest available, or a data.frame
getRequestNames()
List the names of requests available.
WMSCapabilities$getRequestNames()
object of class character
getLayers()
List the layers available. If pretty
is TRUE,
the output will be an object of class data.frame
WMSCapabilities$getLayers(pretty = FALSE)
pretty
pretty
a list
of WMSLayer available, or a data.frame
findLayerByName()
Finds a layer by name
WMSCapabilities$findLayerByName(expr, exact = TRUE)
expr
expr
exact
exact matching? Default is TRUE
clone()
The objects of this class are cloneable with this method.
WMSCapabilities$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used to read a WMSCapabilities
document. The use of WMSClient
is
recommended instead to benefit from the full set of capabilities associated to a WMS server.
Emmanuel Blondel <[email protected]>
WMSClient
WMSClient
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Web Map Service.
ows4R::OGCAbstractObject
-> ows4R::OWSClient
-> WMSClient
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 WMSClient 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
WMSClient$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 WMS capabilities
WMSClient$getCapabilities()
an object of class WMSCapabilities
reloadCapabilities()
Reloads WFS capabilities
WMSClient$reloadCapabilities()
getLayers()
List the layers available. If pretty
is TRUE,
the output will be an object of class data.frame
WMSClient$getLayers(pretty = FALSE)
pretty
pretty
a list
of WMSLayer available, or a data.frame
getMap()
Get map. NOT YET IMPLEMENTED
WMSClient$getMap()
getFeatureInfo()
Get feature info
WMSClient$getFeatureInfo( layer, srs = NULL, styles = NULL, feature_count = 1, x, y, width, height, bbox, info_format = "application/vnd.ogc.gml", ... )
layer
layer name
srs
srs
styles
styles
feature_count
feature count. Default is 1
x
x
y
y
width
width
height
height
bbox
bbox
info_format
info format. Default is "application/vnd.ogc.gml"
...
any other parameter to pass to a WMSGetFeatureInfo request
an object of class sf
given the feature(s)
getLegendGraphic()
Get legend graphic. NOT YET IMPLEMENTED
WMSClient$getLegendGraphic()
clone()
The objects of this class are cloneable with this method.
WMSClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
## Not run: #example based on a WMS endpoint responding at http://localhost:8080/geoserver/wms wms <- WMSClient$new("http://localhost:8080/geoserver/wms", serviceVersion = "1.1.1") #get capabilities caps <- wms$getCapabilities() #get feature info #Advanced examples at https://github.com/eblondel/ows4R/wiki#wms ## End(Not run)
## Not run: #example based on a WMS endpoint responding at http://localhost:8080/geoserver/wms wms <- WMSClient$new("http://localhost:8080/geoserver/wms", serviceVersion = "1.1.1") #get capabilities caps <- wms$getCapabilities() #get feature info #Advanced examples at https://github.com/eblondel/ows4R/wiki#wms ## End(Not run)
WMSGetFeatureInfo
WMSGetFeatureInfo
R6Class
object.
Object of R6Class
for modelling a WMS GetFeatureInfo request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> WMSGetFeatureInfo
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a WMSGetFeatureInfo service request
WMSGetFeatureInfo$new( capabilities, op, url, version, layers, srs, styles, feature_count = 1, x, y, width, height, bbox, info_format = "text/xml", user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), logger = NULL, ... )
capabilities
an object of class WMSCapabilities
op
object of class OWSOperation as retrieved from capabilities
url
url
version
version
layers
layers
srs
srs
styles
styles
feature_count
feature count
x
x
y
y
width
width
height
height
bbox
bbox
info_format
info format
user
user
pwd
pwd
token
token
headers
headers
config
config
logger
logger
...
any parameter to pass to the service request
clone()
The objects of this class are cloneable with this method.
WMSGetFeatureInfo$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a WMS GetFeatureInfo request
Emmanuel Blondel <[email protected]>
WMSLayer
WMSLayer
R6Class
object.
Object of R6Class
modelling a WMS layer
ows4R::OGCAbstractObject
-> WMSLayer
description
description
features
features
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()
new()
Initializes an object of class WMSLayer
WMSLayer$new(xmlObj, capabilities, version, logger = NULL)
xmlObj
an object of class XMLInternalNode-class to initialize from XML
capabilities
object of class WMSCapabilities
version
service version
logger
logger
getName()
Get layer name
WMSLayer$getName()
object of class character
getTitle()
Get layer title
WMSLayer$getTitle()
object of class character
getAbstract()
Get layer abstract
WMSLayer$getAbstract()
object of class character
getKeywords()
Get layer keywords
WMSLayer$getKeywords()
object of class character
getDefaultCRS()
Get layer default CRS
WMSLayer$getDefaultCRS()
object of class character
getBoundingBox()
Get layer bounding box
WMSLayer$getBoundingBox()
object of class matrix
getBoundingBoxSRS()
Get layer bounding box SRS
WMSLayer$getBoundingBoxSRS()
object of class character
getBoundingBoxCRS()
Get layer bounding box CRS
WMSLayer$getBoundingBoxCRS()
object of class character
getStyles()
Get layer styles
WMSLayer$getStyles()
an object of class list
getStylenames()
Get layer style names
WMSLayer$getStylenames()
list of object of class character
getDimensions()
Get layer dimensions
WMSLayer$getDimensions(time_format = "character")
time_format
time format. Default is character
a list
including default value and listed possible values
getTimeDimension()
Get layer TIME dimensions
WMSLayer$getTimeDimension(time_format = "character")
time_format
time format. Default is character
a list
including default value and listed possible values
getElevationDimension()
Get layer ELEVATION dimensions
WMSLayer$getElevationDimension()
a list
including default value and listed possible values
getFeatureInfo()
Get feature info
WMSLayer$getFeatureInfo( srs = NULL, styles = NULL, feature_count = 1, x, y, width, height, bbox, info_format = "text/xml", ... )
srs
srs
styles
styles
feature_count
feature count. Default is 1
x
x
y
y
width
width
height
height
bbox
bbox
info_format
info format. Default is "text/xml"
...
any other parameter to pass to a WMSGetFeatureInfo request
an object of class sf
given the feature(s)
clone()
The objects of this class are cloneable with this method.
WMSLayer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used by ows4R
Emmanuel Blondel <[email protected]>
WPSBoundingBoxData
WPSBoundingBoxData
R6Class
object.
Object of R6Class
for modelling an OGC WPS BoundingBox data
ows4R::OGCAbstractObject
-> ows4R::OWSBoundingBox
-> WPSBoundingBoxData
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::OWSBoundingBox$decode()
ows4R::OWSBoundingBox$getBBOX()
new()
Initializes an object of class WPSBoundingBoxData
WPSBoundingBoxData$new( xml = NULL, owsVersion, serviceVersion = "1.0.0", logger = NULL, ... )
xml
an object of class XMLInternalNode-class to initialize from XML
owsVersion
OWS version
serviceVersion
WPS service version
logger
logger
...
any other parameter
clone()
The objects of this class are cloneable with this method.
WPSBoundingBoxData$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
WPSCapabilities
WPSCapabilities
R6Class
object.
Object of R6Class
with methods for interfacing an OGC
Web Processing Service (WPS) Get Capabilities document.
ows4R::OGCAbstractObject
-> ows4R::OWSCapabilities
-> WPSCapabilities
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::OWSCapabilities$getClient()
ows4R::OWSCapabilities$getOWSVersion()
ows4R::OWSCapabilities$getOperationsMetadata()
ows4R::OWSCapabilities$getRequest()
ows4R::OWSCapabilities$getService()
ows4R::OWSCapabilities$getServiceIdentification()
ows4R::OWSCapabilities$getServiceProvider()
ows4R::OWSCapabilities$getServiceVersion()
ows4R::OWSCapabilities$getUrl()
ows4R::OWSCapabilities$setClient()
new()
Initializes a WPSCapabilities object
WPSCapabilities$new(url, version, client = NULL, logger = NULL, ...)
url
url
version
version
client
an object of class WPSClient
logger
logger type NULL
, "INFO" or "DEBUG"
...
any other parameter to pass to OWSGetCapabilities service request
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.
WPSCapabilities$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
WPSCapabilities$describeProcess(identifier)
identifier
process identifier
an object of class WPSProcessDescription
execute()
Execute a process, given its identifier
WPSCapabilities$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.
WPSCapabilities$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used to read a WPSCapabilities
document. The use of WPSClient
is
recommended instead to benefit from the full set of capabilities associated to a WPS server.
Emmanuel Blondel <[email protected]>
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 <[email protected]>
## 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)
## 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)
WPSComplexData
WPSComplexData
R6Class
object.
Object of R6Class
for modelling a WPS Complex Data
ows4R::OGCAbstractObject
-> WPSComplexData
value
value
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()
new()
Initializes an object of class WPSComplexData
WPSComplexData$new( xml = NULL, value = NULL, schema = NULL, mimeType = NULL, serviceVersion = "1.0.0", cdata = TRUE )
xml
an object of class XMLInternalNode-class to initialize from XML
value
value
schema
schema
mimeType
mime type
serviceVersion
WPS service version
cdata
whether value has to be wrapped in a XML CDATA. Default is TRUE
decode()
Decodes an object of class WPSComplexData from XML
WPSComplexData$decode(xml)
xml
an object of class XMLInternalNode-class to initialize from XML
checkValidity()
Check the object against a parameter description inherited from a WPS process description,
object of class WPSComplexInputDescription
. If not valid, the function will raise an error.
WPSComplexData$checkValidity(parameterDescription)
parameterDescription
object of class WPSComplexInputDescription
an error if not valid
getFeatures()
Get features
WPSComplexData$getFeatures()
object of class sf
clone()
The objects of this class are cloneable with this method.
WPSComplexData$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
WPSComplexInputDescription
WPSComplexInputDescription
R6Class
object.
Object of R6Class
modelling a WPS process complex input description
ows4R::OGCAbstractObject
-> ows4R::WPSParameter
-> ows4R::WPSDescriptionParameter
-> ows4R::WPSInputDescription
-> WPSComplexInputDescription
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::WPSParameter$getAbstract()
ows4R::WPSParameter$getIdentifier()
ows4R::WPSParameter$getTitle()
ows4R::WPSDescriptionParameter$getDataType()
ows4R::WPSDescriptionParameter$getFormats()
ows4R::WPSInputDescription$asDataFrame()
ows4R::WPSInputDescription$getMaxOccurs()
ows4R::WPSInputDescription$getMinOccurs()
new()
Initializes a WPSComplexInputDescription
WPSComplexInputDescription$new(xml = NULL, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
version
WPS service version
logger
logger
...
any other parameter
clone()
The objects of this class are cloneable with this method.
WPSComplexInputDescription$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSComplexOutputDescription
WPSComplexOutputDescription
R6Class
object.
Object of R6Class
modelling a WPS process complex input description
ows4R::OGCAbstractObject
-> ows4R::WPSParameter
-> ows4R::WPSDescriptionParameter
-> ows4R::WPSOutputDescription
-> WPSComplexOutputDescription
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::WPSParameter$getAbstract()
ows4R::WPSParameter$getIdentifier()
ows4R::WPSParameter$getTitle()
ows4R::WPSDescriptionParameter$getDataType()
ows4R::WPSDescriptionParameter$getFormats()
new()
Initializes a WPSComplexOutputDescription
WPSComplexOutputDescription$new(xml = NULL, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
version
WPS service version
logger
logger
...
any other parameter
clone()
The objects of this class are cloneable with this method.
WPSComplexOutputDescription$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSDescribeProcess
WPSDescribeProcess
R6Class
object.
Object of R6Class
for modelling a WPS DescribeProcess request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> WPSDescribeProcess
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a WPSDescribeProcess service request
WPSDescribeProcess$new( capabilities, op, url, serviceVersion, identifier, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), logger = NULL, ... )
capabilities
object of class WPSCapabilities
op
object of class OWSOperation
url
url
serviceVersion
WPS service version
identifier
process identifier
user
user
pwd
password
token
token
headers
headers
config
config
logger
logger
...
any other parameter to pass to the request
clone()
The objects of this class are cloneable with this method.
WPSDescribeProcess$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a WPS DescribeProcess request
Emmanuel Blondel <[email protected]>
WPSDescriptionParameter
WPSDescriptionParameter
R6Class
object.
Object of R6Class
modelling a WPS process input description parameter
ows4R::OGCAbstractObject
-> ows4R::WPSParameter
-> WPSDescriptionParameter
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::WPSParameter$getAbstract()
ows4R::WPSParameter$getIdentifier()
ows4R::WPSParameter$getTitle()
new()
Initializes a WPSDescriptionParameter
WPSDescriptionParameter$new(xml = NULL, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
version
WPS service version
logger
logger
...
any other parameter
getDataType()
Get data type
WPSDescriptionParameter$getDataType()
object of class character
getFormats()
get formats
WPSDescriptionParameter$getFormats()
the formats
clone()
The objects of this class are cloneable with this method.
WPSDescriptionParameter$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSException
WPSException
R6Class
object.
Object of R6Class
for modelling a WPS Exception
ows4R::OGCAbstractObject
-> WPSException
value
value
percentCompleted
percent of completion
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()
new()
Initializes a WPSException
WPSException$new(xml = NULL, serviceVersion = "1.0.0")
xml
object of class XMLInternalNode-class from XML
serviceVersion
service version. Default "1.0.0"
decode()
Decodes an object of class WPSException from XML
WPSException$decode(xml)
xml
object of class XMLInternalNode-class from XML
clone()
The objects of this class are cloneable with this method.
WPSException$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
WPSExecute
WPSExecute
R6Class
object.
Object of R6Class
for modelling a WPS Execute request
ows4R::OGCAbstractObject
-> ows4R::OWSHttpRequest
-> WPSExecute
Identifier
process identifier
DataInputs
list of WPSInput
ResponseForm
response form
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::OWSHttpRequest$execute()
ows4R::OWSHttpRequest$getCapabilities()
ows4R::OWSHttpRequest$getException()
ows4R::OWSHttpRequest$getRequest()
ows4R::OWSHttpRequest$getRequestHeaders()
ows4R::OWSHttpRequest$getResponse()
ows4R::OWSHttpRequest$getResult()
ows4R::OWSHttpRequest$getStatus()
ows4R::OWSHttpRequest$hasException()
ows4R::OWSHttpRequest$setResult()
new()
Initializes a WPSExecute service request
WPSExecute$new( capabilities, op, url, serviceVersion, identifier, dataInputs = list(), responseForm = NULL, storeExecuteResponse = FALSE, lineage = NULL, status = NULL, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), logger = NULL, ... )
capabilities
object of class WPSCapabilities
op
object of class OWSOperation
url
url
serviceVersion
WPS service version
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
user
user
pwd
password
token
token
headers
headers
config
config
logger
logger
...
any other parameter to pass to the request
getProcessDescription()
Get process description
WPSExecute$getProcessDescription()
an object of class WPSProcessDescription
clone()
The objects of this class are cloneable with this method.
WPSExecute$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R to trigger a WPS Execute request
Emmanuel Blondel <[email protected]>
WPSExecuteResponse
WPSExecuteResponse
R6Class
object.
Object of R6Class
for modelling a WPS Execute response
ows4R::OGCAbstractObject
-> WPSExecuteResponse
process
process
status
status
statusLocation
status location
statusHistory
status history
processOutputs
process outputs
exception
exception
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()
new()
Initializes a WPSExecuteResponse
WPSExecuteResponse$new( xml, capabilities, processDescription = NULL, logger = NULL )
xml
object of class XMLInternalNode-class from XML
capabilities
object of class WPSCapabilities
processDescription
process description
logger
logger
getProcess()
Get process
WPSExecuteResponse$getProcess()
an object of class WPSProcess
getStatus()
Get status
WPSExecuteResponse$getStatus()
an object of class WPSStatus
getStatusLocation()
Get status location
WPSExecuteResponse$getStatusLocation()
an object of class character
getStatusHistory()
Get status history
WPSExecuteResponse$getStatusHistory()
an object of class character
getProcessOutputs()
Get list of process outputs
WPSExecuteResponse$getProcessOutputs()
a list
of outputs
getException()
Get exception
WPSExecuteResponse$getException()
an object of class WPSException
decode()
Decodes an object of class WPSExecuteResponse from XML
WPSExecuteResponse$decode(xml, capabilities, processDescription, logger)
xml
object of class XMLInternalNode-class from XML
capabilities
object of class WPSCapabilities
processDescription
process description
logger
logger
update()
Updates status history
WPSExecuteResponse$update(verbose = FALSE)
verbose
verbose. Default is FALSE
clone()
The objects of this class are cloneable with this method.
WPSExecuteResponse$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
WPSFormat
WPSFormat
R6Class
object.
Object of R6Class
modelling a WPS process input description
ows4R::OGCAbstractObject
-> WPSFormat
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()
new()
Initializes an object of class WPSFormat
WPSFormat$new(xml = NULL, version, logger = NULL, ...)
xml
an object of class XMLInternalNode-class to initialize from XML
version
WPS service version
logger
logger
...
any additional parameter
getMimeType()
Get mime type
WPSFormat$getMimeType()
object of class character
getEncoding()
Get encoding
WPSFormat$getEncoding()
object of class character
getSchema()
Get schema
WPSFormat$getSchema()
object of class character
setIsDefault()
set is default
WPSFormat$setIsDefault(default)
default
object of class logical
isDefault()
is default
WPSFormat$isDefault()
TRUE
if default, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
WPSFormat$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSInput
WPSInput
R6Class
object.
Object of R6Class
for modelling a WPS Input
ows4R::OGCAbstractObject
-> WPSInput
Identifier
identifier
Data
data
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()
new()
Initializes a WPSInput
WPSInput$new(xml = NULL, identifier, data, serviceVersion = "1.0.0")
xml
object of class XMLInternalNode-class from XML
identifier
identifier
data
data
serviceVersion
service version. Default "1.0.0"
clone()
The objects of this class are cloneable with this method.
WPSInput$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
WPSInputDescription
WPSInputDescription
R6Class
object.
Object of R6Class
modelling a WPS process input description
ows4R::OGCAbstractObject
-> ows4R::WPSParameter
-> ows4R::WPSDescriptionParameter
-> WPSInputDescription
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::WPSParameter$getAbstract()
ows4R::WPSParameter$getIdentifier()
ows4R::WPSParameter$getTitle()
ows4R::WPSDescriptionParameter$getDataType()
ows4R::WPSDescriptionParameter$getFormats()
new()
Initializes a WPSInputDescription
WPSInputDescription$new(xml = NULL, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
version
WPS service version
logger
logger
...
any other parameter
getMinOccurs()
Get min occurs
WPSInputDescription$getMinOccurs()
the min occurs
getMaxOccurs()
Get max occurs
WPSInputDescription$getMaxOccurs()
the max occurs
asDataFrame()
Get intput description as data.frame
WPSInputDescription$asDataFrame()
object of class character
clone()
The objects of this class are cloneable with this method.
WPSInputDescription$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSLiteralData
WPSLiteralData
R6Class
object.
Object of R6Class
for modelling a WPS Literal Data
ows4R::OGCAbstractObject
-> WPSLiteralData
value
value
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()
new()
Initializes an object of class WPSLiteralData
WPSLiteralData$new(xml = NULL, value = NULL, serviceVersion = "1.0.0")
xml
an object of class XMLInternalNode-class to initialize from XML
value
value
serviceVersion
WPS service version
decode()
Decodes an object of class WPSLiteralData from XML
WPSLiteralData$decode(xml)
xml
an object of class XMLInternalNode-class to initialize from XML
checkValidity()
Check the object against a parameter description inherited from a WPS process description,
object of class WPSLiteralInputDescription
. If not valid, the function will raise an error.
WPSLiteralData$checkValidity(parameterDescription)
parameterDescription
object of class WPSLiteralInputDescription
an error if not valid
clone()
The objects of this class are cloneable with this method.
WPSLiteralData$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
WPSLiteralInputDescription
WPSLiteralInputDescription
R6Class
object.
Object of R6Class
modelling a WPS process input description
ows4R::OGCAbstractObject
-> ows4R::WPSParameter
-> ows4R::WPSDescriptionParameter
-> ows4R::WPSInputDescription
-> WPSLiteralInputDescription
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::WPSParameter$getAbstract()
ows4R::WPSParameter$getIdentifier()
ows4R::WPSParameter$getTitle()
ows4R::WPSDescriptionParameter$getFormats()
ows4R::WPSInputDescription$asDataFrame()
ows4R::WPSInputDescription$getMaxOccurs()
ows4R::WPSInputDescription$getMinOccurs()
new()
Initializes a WPSLiteralInputDescription
WPSLiteralInputDescription$new(xml = NULL, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
version
WPS service version
logger
logger
...
any other parameter
getDataType()
Get data type
WPSLiteralInputDescription$getDataType()
the data type, object of class character
getDefaultValue()
Get default value
WPSLiteralInputDescription$getDefaultValue()
the default value, object of class character
getAllowedValues()
Get allowed values
WPSLiteralInputDescription$getAllowedValues()
the allowed values
clone()
The objects of this class are cloneable with this method.
WPSLiteralInputDescription$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSLiteralOutputDescription
WPSLiteralOutputDescription
R6Class
object.
Object of R6Class
modelling a WPS process literal output description
ows4R::OGCAbstractObject
-> ows4R::WPSParameter
-> ows4R::WPSDescriptionParameter
-> ows4R::WPSOutputDescription
-> WPSLiteralOutputDescription
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::WPSParameter$getAbstract()
ows4R::WPSParameter$getIdentifier()
ows4R::WPSParameter$getTitle()
ows4R::WPSDescriptionParameter$getDataType()
ows4R::WPSDescriptionParameter$getFormats()
new()
Initializes a WPSLiteralOutputDescription
WPSLiteralOutputDescription$new(xml = NULL, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
version
WPS service version
logger
logger
...
any other parameter
clone()
The objects of this class are cloneable with this method.
WPSLiteralOutputDescription$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSOutput
WPSOutput
R6Class
object.
Object of R6Class
for modelling a WPS Input
ows4R::OGCAbstractObject
-> WPSOutput
Identifier
identifier
Title
tile
Data
data
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()
new()
Initializes a WPSOutput
WPSOutput$new( xml = NULL, identifier = NULL, title = NULL, data = NULL, dataType = NULL, serviceVersion = "1.0.0" )
xml
object of class XMLInternalNode-class from XML
identifier
identifier
title
title
data
data
dataType
data type
serviceVersion
WPS service version
decode()
Decodes an object of class WPSOutput from XML
WPSOutput$decode(xml)
xml
object of class XMLInternalNode-class from XML
getData()
Get data
WPSOutput$getData()
data
getDataValue()
Get data value
WPSOutput$getDataValue()
data value
clone()
The objects of this class are cloneable with this method.
WPSOutput$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
WPSOutputDescription
WPSOutputDescription
R6Class
object.
Object of R6Class
modelling a WPS process input description
ows4R::OGCAbstractObject
-> ows4R::WPSParameter
-> ows4R::WPSDescriptionParameter
-> WPSOutputDescription
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::WPSParameter$getAbstract()
ows4R::WPSParameter$getIdentifier()
ows4R::WPSParameter$getTitle()
ows4R::WPSDescriptionParameter$getDataType()
ows4R::WPSDescriptionParameter$getFormats()
new()
Initializes a WPSOutputDescription
WPSOutputDescription$new(xml = NULL, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
version
WPS service version
logger
logger
...
any other parameter
clone()
The objects of this class are cloneable with this method.
WPSOutputDescription$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSParameter
WPSParameter
R6Class
object.
Object of R6Class
modelling a WPS parameter
ows4R::OGCAbstractObject
-> WPSParameter
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()
new()
Initializes an object of class WPSParameter
WPSParameter$new(xml = NULL, version, logger = NULL, ...)
xml
an object of class XMLInternalNode-class to initialize from XML
version
WPS service version
logger
logger
...
any additional parameter
getIdentifier()
Get identifier
WPSParameter$getIdentifier()
object of class character
getTitle()
Get title
WPSParameter$getTitle()
object of class character
getAbstract()
Get abstract
WPSParameter$getAbstract()
object of class character
clone()
The objects of this class are cloneable with this method.
WPSParameter$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSProcess
WPSProcess
R6Class
object.
Object of R6Class
modelling a WPS process
ows4R::OGCAbstractObject
-> WPSProcess
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()
new()
Initializes a WPSProcess
WPSProcess$new(xml, capabilities = NULL, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
capabilities
object of class WPSCapabilities
version
service version
logger
logger
...
any additional parameter
getIdentifier()
Get identifier
WPSProcess$getIdentifier()
object of class character
getTitle()
Get title
WPSProcess$getTitle()
object of class character
getVersion()
Get version
WPSProcess$getVersion()
object of class character
getDescription()
Get description
WPSProcess$getDescription()
object of class WPSProcessDescription
execute()
Execute process
WPSProcess$execute( dataInputs = list(), responseForm = NULL, storeExecuteResponse = FALSE, lineage = NULL, status = NULL, update = FALSE, updateInterval = 1 )
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.
WPSProcess$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSProcessDescription
WPSProcessDescription
R6Class
object.
Object of R6Class
modelling a WPS process description
ows4R::OGCAbstractObject
-> WPSProcessDescription
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()
new()
Initializes an object of class WPSProcessDescription
WPSProcessDescription$new(xml, version, logger = NULL, ...)
xml
object of class XMLInternalNode-class from XML
version
version
logger
logger
...
any other parameter
getIdentifier()
Get process identifier
WPSProcessDescription$getIdentifier()
the identifier, object of class character
getTitle()
Get process title
WPSProcessDescription$getTitle()
the title, object of class character
getAbstract()
Get process abstract
WPSProcessDescription$getAbstract()
the abstract, object of class character
getVersion()
Get process version
WPSProcessDescription$getVersion()
the
version, object of class character
isStatusSupported()
Indicates if the status is supported
WPSProcessDescription$isStatusSupported()
TRUE
if supported, FALSE
otherwise
isStoreSupported()
Indicates if the store is supported
WPSProcessDescription$isStoreSupported()
TRUE
if supported, FALSE
otherwise
getDataInputs()
Get data inputs
WPSProcessDescription$getDataInputs()
a list
of objects extending WPSInputDescription
getProcessOutputs()
Get process outputs
WPSProcessDescription$getProcessOutputs()
a list
of objects extending WPSOutputDescription
asDataFrame()
Convenience method to export a process description as data.frame
WPSProcessDescription$asDataFrame()
a data.frame
giving the process description
clone()
The objects of this class are cloneable with this method.
WPSProcessDescription$clone(deep = FALSE)
deep
Whether to make a deep clone.
Class used internally by ows4R
Emmanuel Blondel <[email protected]>
WPSResponseDocument
WPSResponseDocument
R6Class object.
Object of R6Class
for modelling an OGC WPS response document
ows4R::OGCAbstractObject
-> WPSResponseDocument
Output
output property
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()
new()
Initializes a WPSResponseDocument
WPSResponseDocument$new( xml = NULL, storeExecuteResponse = FALSE, lineage = NULL, status = NULL, output = NULL, serviceVersion = "1.0.0" )
xml
object of class XMLInternalNode-class from XML
storeExecuteResponse
store execute response, object of class logical
lineage
lineage, object of class logical
status
status, object of class logical
output
output
serviceVersion
WPS service version
clone()
The objects of this class are cloneable with this method.
WPSResponseDocument$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>
WPSStatus
WPSStatus
R6Class
object.
Object of R6Class
for modelling a WPS Status
ows4R::OGCAbstractObject
-> WPSStatus
value
status value
percentCompleted
status percentage of completion
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()
new()
Initalizes a WPSStatus object
WPSStatus$new(xml = NULL, serviceVersion = "1.0.0")
xml
an object of class XMLInternalNode-class from XML
serviceVersion
WPS service version. Default is "1.0.0"
decode()
Decodes WPS status from XML
WPSStatus$decode(xml)
xml
an object of class XMLInternalNode-class from XML
getValue()
Get status value, among accepted WPS status values defined in the WPS standard:
ProcessAccepted
, ProcessStarted
, ProcessPaused
, ProcessSucceeded
,
ProcessFailed
.
WPSStatus$getValue()
value, object of class character
getPercentCompleted()
Get percentage of completion
WPSStatus$getPercentCompleted()
the percentage of completion, object of class integer
getCreationTime()
Get creation time
WPSStatus$getCreationTime()
the creation time, object of class POSIXct
clone()
The objects of this class are cloneable with this method.
WPSStatus$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <[email protected]>