Political

These functions return sf objects with political boundaries

esp_get_can_box() esp_get_can_provinces()

Get sf lines and polygons for insetting the Canary Islands

esp_get_capimun()

Get sf points of the municipalities of Spain

esp_get_ccaa() esp_get_ccaa_siane()

Get Autonomous Communities of Spain as sf polygons and points

esp_get_country()

Get the borders of Spain as a sf polygon

esp_get_hex_prov() esp_get_hex_ccaa() esp_get_grid_prov() esp_get_grid_ccaa()

Get a sf hexbin or squared polygon of Spain

esp_get_munic() esp_get_munic_siane()

Get municipalities of Spain as sf polygons

esp_get_nuts()

Get NUTS of Spain as sf polygons and points

esp_get_prov() esp_get_prov_siane()

Get Provinces of Spain as sf polygons and points

Natural

These functions return sf objects with natural features

esp_get_hydrobasin()

Get sf polygons of the drainage basin demarcations of Spain

esp_get_hypsobath()

Get sf polygons and lines with the hypsometry and bathymetry of Spain

esp_get_rivers()

Get sf polygon and lines of rivers, channels and other wetlands of Spain

Infrastructures

These functions return sf objects with man-made features

esp_get_railway()

Get sf lines and points with the railways of Spain

esp_get_roads()

Get sf lines of the roads of Spain

Tiles

Return static tiles or create a leaflet map

addProviderEspTiles() providerEspTileOptions()

Include base tiles of Spanish public administrations on a leaflet map

esp_getTiles()

Get static tiles from public administrations of Spanish.

Cache management

esp_clear_cache()

Clear your mapSpain cache dir

esp_set_cache_dir()

Set your mapSpain cache dir

Dictionary

Translation across languages and coding systems

esp_dict_region_code() esp_dict_translate()

Convert and translate Subdivision Names

Datasets

These objects are datasets already included in the package.

esp_codelist

Spanish Code Translation Data Frame

esp_munic.sf

All Municipalities POLYGON object of Spain (2019)

esp_nuts.sf

All NUTS POLYGON object of Spain

leaflet.providersESP.df

Public WMS and WMTS of Spain

pobmun19

Population by municipality (2019)

Helpers

A collection of helper functions

About the package

mapSpain-package

mapSpain package