View source: R/get_layers_metadata.R
get_layers_metadata | R Documentation |
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.
get_layers_metadata(data_type, apikey = NULL)
data_type |
Should be |
apikey |
API key from |
"wfs"
: Web Feature Service designed to return data in vector format (line,
point, polygon, ...) ;
"wms-r"
: Web Map Service focuses on raster data ;
"wmts"
: Web Map Tile Service is similar to WMS, but instead of serving maps
as single images, WMTS serves maps by dividing the map into a pyramid of tiles at
multiple scales.
data.frame
get_apikeys()
## Not run:
# Get all metadata for a datatype
metadata_table <- get_layers_metadata("wms-r")
# Get all "administratif" wms layers
apikey <- get_apikeys()[1] #administratif
admin_layers <- get_layers_metadata("wms-r", apikey)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.