
Metadata for one couple of apikey and data_type
Source:R/get_layers_metadata.R
get_layers_metadata.Rd
Metadata are retrieved using the IGN APIs. The execution time can be long depending on the size of the metadata associated with the API key and the overload of the IGN servers.
Arguments
- apikey
API key from
get_apikeys()
or directly from the IGN website- data_type
Should be
"wfs"
or"wms"
. See details for more information about these two Webservice formats.
Examples
if (FALSE) {
apikey <- get_apikeys()[4]
metadata_table <- get_layers_metadata(apikey, "wms")
layers <- metadata_table$Name
one_abstract <- metadata_table[1, "Abstract"]
# List every wfs layers (warning : it's quite long)
all_layers <- lapply(get_apikeys(),
get_layers_metadata,
data_type = "wfs")
# Convert list to data.frame
all_layers <- do.call(rbind, list_metadata)
}