WFSClient: WFSClient

Description Usage Format Value Methods Author(s) Examples

Description

WFSClient

Usage

1

Format

R6Class object.

Value

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

Methods

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

This method is used to instantiate a WFSClient with the url of the OGC service. Authentication (user/pwd) is not yet supported and will be added with the support of service transactional modes. By default, the logger argument will be set to NULL (no logger). This argument accepts two possible values: INFO: to print only ows4R logs, DEBUG: to print more verbose logs

getCapabilities()

Get service capabilities. Inherited from OWS Client

reloadCapabilities()

Reload service capabilities

describeFeatureType(typeName)

Get the description of a given featureType

getFeatures(typeName, ...)

Retrieves the features for a given feature type.

getFeatureTypes(pretty)

List the feature types available. If pretty is TRUE, the output will be an object of class data.frame

Author(s)

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
   #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

ows4R documentation built on July 2, 2020, 2:38 a.m.