WFS_util_attrs: Retrieves the (xmlns) attributes from a GetCapabilities...

View source: R/WFS_utils.R

WFS_util_attrsR Documentation

Retrieves the (xmlns) attributes from a GetCapabilities document

Description

Retrieves the (xmlns) attributes from a GetCapabilities document

Usage

WFS_util_attrs(cap, skip = c("none", "known", "version"), as.text = T)

Arguments

cap

XML document containg the GetCapabilities information

skip

Character string which of the attributes will be removed. See Details

as.text

Logical scalar. If TRUE indicates that the result will be a character string (ready for inclusion in a XML request). Otherwise the result is a named list.

Details

The user can indicate with the skip argument which attributes will be left out:

  • none : all will be returned

  • known : all the known (standard) attributes will be left out: version, schemaLocation, updateSequence, xmlns:wfs, xmlns:xsi, xmlns, xmlns:ows, xmlns:gml, xmlns:ogc, xmlns:fes, xmlns:xlink and xmlns:xs

  • version: only the version attribute will be left out

Value

Character string or list depending on the argument as.text

Examples

## Not run: 
base_url  <- "https://geodata.nationaalgeoregister.nl/wijkenbuurten2019/wfs"
cap1 = WFS_getcapabilities_POST(base_url,'1.1.0')
WFS_util_attrs(cap1,skip='version',as.text=T)

## End(Not run)

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