Package: mapSpain 1.1.0

Diego Hernangómez

mapSpain: Administrative Boundaries of Spain

Administrative Boundaries of Spain at several levels (Autonomous Communities, Provinces, Municipalities) based on the 'GISCO' 'Eurostat' database <https://ec.europa.eu/eurostat/web/gisco> and 'CartoBase SIANE' from 'Instituto Geografico Nacional' <https://www.ign.es/>. It also provides a 'leaflet' plugin and the ability of downloading and processing static tiles.

Authors:Diego Hernangómez [aut, cre, cph], Eurostat [cph], Instituto Geográfico Nacional [cph], Francisco J. Goerlich [ctb]

mapSpain_1.1.0.tar.gz
mapSpain_1.1.0.zip(r-4.7)mapSpain_1.1.0.zip(r-4.6)mapSpain_1.1.0.zip(r-4.5)
mapSpain_1.1.0.tgz(r-4.6-any)mapSpain_1.1.0.tgz(r-4.5-any)
mapSpain_1.1.0.tar.gz(r-4.6-any)mapSpain_1.1.0.tar.gz(r-4.5-any)
mapSpain_1.1.0.tgz(r-4.5-emscripten)
mapSpain.pdf |mapSpain.html
mapSpain/json (API)
NEWS

# Install 'mapSpain' in R:
install.packages('mapSpain', repos = c('https://ropenspain.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ropenspain/mapspain/issues

Pkgdown/docs site:https://ropenspain.github.io

Datasets:

On CRAN:

Conda:

ropenspaintilesmapsspatialmunicipalitiesspaingiscoprovincesignadministrative-boundariesccaastatic-tilesggplot2gisquarto

9.18 score 48 stars 1 packages 286 scripts 2.0k downloads 46 exports 80 dependencies

Last updated from:99d8e65a6b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK200
source / vignettesOK308
linux-release-x86_64OK196
macos-release-arm64OK188
macos-oldrel-arm64OK156
windows-develOK157
windows-releaseOK176
windows-oldrelOK158
wasm-releaseOK143

Exports:addProviderEspTilesesp_check_accessesp_clear_cacheesp_detect_cache_diresp_dict_region_codeesp_dict_translateesp_get_attributionsesp_get_can_boxesp_get_can_provincesesp_get_capimunesp_get_ccaaesp_get_ccaa_sianeesp_get_comarcaesp_get_countries_sianeesp_get_countryesp_get_grid_BDNesp_get_grid_BDN_ccaaesp_get_grid_ccaaesp_get_grid_EEAesp_get_grid_ESDACesp_get_grid_MTNesp_get_grid_provesp_get_hex_ccaaesp_get_hex_provesp_get_hydrobasinesp_get_hypsobathesp_get_municesp_get_munic_sianeesp_get_nutsesp_get_provesp_get_prov_sianeesp_get_railwayesp_get_riversesp_get_roadsesp_get_simpl_ccaaesp_get_simpl_provesp_get_spainesp_get_spain_sianeesp_get_stationsesp_get_tilesesp_get_wetlandsesp_getTilesesp_make_provideresp_move_canesp_set_cache_diresp_siane_bulk_download

Dependencies:askpassbase64encbriobslibcachemcallrclassclassIntclicountrycodecrayoncrosstalkcurlDBIdescdiffobjdigeste1071evaluatefarverfastmapfontawesomefsgiscoRgluehighrhtmltoolshtmlwidgetshttr2jquerylibjsonliteKernSmoothknitrlabelinglatticelazyevalleafletleaflet.providerslifecyclemagrittrMASSmemoisemimeopensslpillarpkgbuildpkgconfigpkgloadpngpraiseprocessxproxypsR6rappdirsrasterRColorBrewerRcpprlangrmarkdownrprojroots2sassscalessfspsysterratestthattibbletinytexunitsutf8vctrsviridisLitewaldowithrwkxfunyaml

Get Started

Rendered frommapSpain.qmdusingquarto::htmlon Apr 13 2026.

Last update: 2026-03-25
Started: 2026-02-16

Imagery and mapSpain

Rendered fromimagery.qmdusingquarto::htmlon Apr 13 2026.

Last update: 2026-03-25
Started: 2026-02-16

Readme and manuals

Help Manual

Help pageTopics
Add a tile layer from Spanish public administrations to a 'leaflet' mapaddProviderEspTiles
Clear your 'mapSpain' cache diresp_clear_cache
Database with codes and names of Spanish regionsesp_codelist
Convert and translate Spanish subdivision names and codesesp_dict_region_code esp_dict_translate
Canary Islands inset box and outlineesp_get_can_box esp_get_can_provinces
City where the municipal public authorities are based - SIANEesp_get_capimun
Autonomous Communities of Spain - GISCOesp_get_ccaa
Autonomous Communities of Spain - SIANEesp_get_ccaa_siane
'Comarcas' of Spainesp_get_comarca
Countries of the World - SIANEesp_get_countries_siane
National geographic grids from BDN (Nature Data Bank)esp_get_grid_BDN esp_get_grid_BDN_ccaa
National geographic grids from the European Soil Data Centre (ESDAC)esp_get_grid_ESDAC
National geographic grids from IGN MTN ((Mapa Topografico Nacional)esp_get_grid_MTN
Get a 'sf' hexbin or squared 'POLYGON' of Spainesp_get_gridmap esp_get_grid_ccaa esp_get_grid_prov esp_get_hex_ccaa esp_get_hex_prov
River basin districts of Spain - SIANEesp_get_hydrobasin
Hypsometry and bathymetry of Spain - SIANEesp_get_hypsobath
Rivers and wetlands of Spain - SIANEesp_get_landwater esp_get_rivers esp_get_wetlands
Municipalities of Spain - GISCOesp_get_munic
Municipalities of Spain - SIANEesp_get_munic_siane
Territorial Spanish units for statistics (NUTS) datasetesp_get_nuts
Provinces of Spain - GISCOesp_get_prov
Provinces of Spain - SIANEesp_get_prov_siane
Railways of Spain - SIANEesp_get_railway esp_get_stations
Roads of Spain - SIANEesp_get_roads
Simplified map of provinces and autonomous communities of Spainesp_get_simpl esp_get_simpl_ccaa esp_get_simpl_prov
Boundaries of Spain - GISCOesp_get_country esp_get_spain
Boundaries of Spain - SIANEesp_get_spain_siane
Get static tiles from public administrations of Spainesp_getTiles esp_get_attributions esp_get_tiles
Create a custom tile provideresp_make_provider
Displace a 'sf' object located in the Canary Islandsesp_move_can
NUTS 2024 for Spain 'sf' objectesp_nuts_2024
Set your 'mapSpain' cache diresp_detect_cache_dir esp_set_cache_dir
SIANE bulk downloadesp_siane_bulk_download
Public WMS and WMTS providers for Spainesp_tiles_providers
Population of Spain by municipality (2025)pobmun25