Skip to contents

Names of variables (attributes) available from a dataset (layer) in a data source (service).

Usage

layer_attributes_get_names(
  wfs = NULL,
  service = NULL,
  service_version = NULL,
  layer
)

Arguments

wfs

A WFSClient R6 object with methods for interfacing an OGC Web Feature Service. From emodnet_init_wfs_client().

service

the EMODnet OGC WFS service name. For available services, see emodnet_wfs().

service_version

[Deprecated] the WFS service version. Now always "2.0.0".

layer

character sting of layer name. To get info on layers, including layer_name use emodnet_get_wfs_info().

Value

character vector of layer attribute (variable) names.

Examples

layer_attributes_get_names(
  service = "biology",
  layer = "mediseh_zostera_m_pnt"
)
#>  WFS client created successfully
#>  Service: "https://geo.vliz.be/geoserver/Emodnetbio/wfs"
#>  Version: "2.0.0"
#> [1] "id"       "country"  "the_geom"