wfs_api: WFS API

Description Usage Arguments Details Value Author(s) Examples

View source: R/wfs_api.R

Description

Requests to various WFS API.

Usage

1
wfs_api(base.url = NULL, queries)

Arguments

base.url

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

queries

List of query parameters

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.

Note that GET requests are used using 'httpcache' meaning that requests are cached. If you want clear cache, use [httpcache::clearCache()]. To turn the cache off completely, use [httpcache::cacheOff()]

Value

wfs_api (S3) object with the following attributes:

content

XML payload.

path

path provided to get the resonse.

response

the original response object.

Author(s)

Joona Lehtomäki <joona.lehtomaki@iki.fi>

Examples

1
2
3
4
  wfs_api(base.url = "https://kartta.hsy.fi/geoserver/wfs",
          queries = append(list("service" = "WFS", "version" = "1.0.0"),
                list(request = "getFeature",
                     layer = "tilastointialueet:kunta4500k_2017")))

pitkant/turku documentation built on Dec. 22, 2021, 8:45 a.m.