Learn R Programming

helsinki (version 1.0.6)

wfs_api: WFS API

Description

Requests to various WFS API.

Usage

wfs_api(base.url = NULL, queries, ...)

Value

wfs_api (S3) object with the following attributes:

content

XML payload.

path

path provided to get the resonse.

response

the original response object.

Arguments

base.url

WFS url, for example "https://kartta.hsy.fi/geoserver/wfs"

queries

List of query parameters

...

For passing parameters to embedded functions, for example timeout.s (timeout in seconds) in the case of gracefully_fail() internal function

Author

Joona Lehtomäki joona.lehtomaki@iki.fi, Kostas Vasilopoulos, Pyry Kantanen

Details

Make a request to the spesific WFS API. The base url is https://kartta.hsy.fi/geoserver/wfs to which other components defined by the arguments are appended.

This is a low-level function intended to be used by other higher level functions in the package.

Examples

Run this code
if (FALSE) {
  wfs_api(base.url = "https://kartta.hsy.fi/geoserver/wfs", 
          queries = c("service" = "WFS", 
          "version" = "1.0.0", 
          "request" = "getFeature", 
          "typeName" = "ilmanlaatu:Ilmanlaatu_nyt")
          )
}
                     

Run the code above in your browser using DataLab