WFS_getcapabilities_POST: Retrieves the GetCapabilities document

View source: R/WFS_getcapabilities.R

WFS_getcapabilities_POSTR Documentation

Retrieves the GetCapabilities document

Description

Retrieve the GetCapabilities document with request version version for WFS service url. This function uses the httr::POST() interface.

Usage

WFS_getcapabilities_POST(
  url = WFS_get_url(),
  version = WFS_get_version(),
  debug = F,
  httrverbose = F,
  out_path = NULL
)

Arguments

url

Character with base url for WFS service

version

software version for WFS service request. See WFS_get_version() for the default

debug

Logical indicating the httr response is to be returned

httrverbose

Logical indicating full request and httr response code will be displayed

out_path

(optional) path where the xml result is to be saved

Value

xml document with the GetCapabilities information for this WFS service or character string 'UNEXPECTED ERROR' when an error was encountered

Examples

## Not run: 
base_url  <- "https://geodata.nationaalgeoregister.nl/wijkenbuurten2019/wfs"
cap1 = WFS_getcapabilities_POST(base_url,'1.1.0')
WFS_util_showxml(cap1,lines=2:3)
cap2 <- WFS_getcapabilities_POST(url=WFS_get_url(),version='1.1.0')
WFS_util_showxml(cap2,lines=2:3)

## End(Not run)

HanOostdijk/HOQCwfs documentation built on March 6, 2023, 8:18 a.m.