get_layers_metadata: Metadata for one couple of apikey and data_type

View source: R/get_layers_metadata.R

get_layers_metadataR Documentation

Metadata for one couple of apikey and data_type

Description

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.

Usage

get_layers_metadata(data_type, apikey = NULL)

Arguments

data_type

Should be "wfs", "wms-r" or "wmts". See details for more information about these Web services formats.

apikey

API key from get_apikeys() or directly from the IGN website

Details

  • "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.

Value

data.frame

See Also

get_apikeys()

Examples

## 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)


happign documentation built on Sept. 11, 2024, 7:17 p.m.