WFS_describefeaturetype: DescribeFeatureType for the WFS service

View source: R/WFS_describefeaturetype.R

WFS_describefeaturetypeR Documentation

DescribeFeatureType for the WFS service

Description

Retrieve and unpack the DescribeFeatureType document for one or more FeatureTypes into a tibble. typename is copied to the result tibble to distinguish the various FeatureTypes when more than one is specified. Apart from typename the tibble contains the fields name, maxOccurs, minOccurs and type .

Usage

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

Arguments

typenames

Character vector with the name of features (such as e.g. obtained by using WFS_featuretypes() )

url

URL of the WFS service. See WFS_get_url() for the default

version

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

debug

Logical indicating the httr response is to be returned. Only valid when typenames contains one featuretype

httrverbose

Logical vector of up to four entries to be used in httr::verbose(). When this vector contains at least one TRUE debugging messages are displayed. Useful to find out what exactly was sent to and received from the webserver

out_path

(optional) path where the FeatureType info is to be saved in xml format. Only valid when typenames contains one featuretype

Value

a tibble with typename and name (the fieldnames)

Examples

## Not run: 
WFS_describefeaturetype("topp:gidw_groenbomen")

## End(Not run)

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