Package: mapSpain 0.9.2.9000

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]

mapSpain_0.9.2.9000.tar.gz
mapSpain_0.9.2.9000.zip(r-4.5)mapSpain_0.9.2.9000.zip(r-4.4)mapSpain_0.9.2.9000.zip(r-4.3)
mapSpain_0.9.2.9000.tgz(r-4.4-any)mapSpain_0.9.2.9000.tgz(r-4.3-any)
mapSpain_0.9.2.9000.tar.gz(r-4.5-noble)mapSpain_0.9.2.9000.tar.gz(r-4.4-noble)
mapSpain_0.9.2.9000.tgz(r-4.4-emscripten)mapSpain_0.9.2.9000.tgz(r-4.3-emscripten)
mapSpain.pdf |mapSpain.html
mapSpain/json (API)
NEWS

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

Peer review:

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

Datasets:
  • esp_codelist - Database with codes and names of spanish regions
  • esp_munic.sf - 'sf' object with all the municipalities of Spain
  • esp_nuts.sf - 'sf' object with all the NUTS levels of Spain
  • esp_tiles_providers - Database of public WMS and WMTS of Spain
  • pobmun19 - Database with the population of Spain by municipality

On CRAN:

ropenspaintilesmapsspatialmunicipalitiesspaingiscoprovincesignadministrative-boundariesccaastatic-tilesggplot2gis

9.67 score 42 stars 2 packages 242 scripts 1.3k downloads 39 exports 22 dependencies

Last updated 5 hours agofrom:1168658715. Checks:OK: 3 NOTE: 4. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winOKNov 20 2024
R-4.5-linuxOKNov 20 2024
R-4.4-winNOTENov 20 2024
R-4.4-macNOTENov 20 2024
R-4.3-winNOTENov 20 2024
R-4.3-macNOTENov 20 2024

Exports:addProviderEspTilesesp_check_accessesp_clear_cacheesp_detect_cache_diresp_dict_region_codeesp_dict_translateesp_get_can_boxesp_get_can_provincesesp_get_capimunesp_get_ccaaesp_get_ccaa_sianeesp_get_comarcaesp_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_getTilesesp_make_provideresp_move_canesp_set_cache_dirproviderEspTileOptions

Dependencies:classclassIntcountrycodeDBIe1071geojsonsfgeometriesgiscoRjsonifyjsonliteKernSmoothmagrittrMASSproxyrapidjsonrrappdirsRcpps2sfsfheadersunitswk

Get Started

Rendered frommapSpain.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-06-10
Started: 2020-11-24

Imagery and mapSpain

Rendered fromimagery.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2022-01-19
Started: 2020-11-26

Readme and manuals

Help Manual

Help pageTopics
Include base tiles of Spanish public administrations on a 'leaflet' mapaddProviderEspTiles providerEspTileOptions
Check access to SIANE dataesp_check_access
Clear your 'mapSpain' cache diresp_clear_cache
Database with codes and names of spanish regionsesp_codelist
Detect cache dir for 'mapSpain'esp_detect_cache_dir
Convert and translate subdivision namesesp_dict_region_code esp_dict_translate
Get 'sf' lines and polygons for insetting the Canary Islandsesp_get_can_box esp_get_can_provinces
Get 'sf' 'POINT' of the municipalities of Spainesp_get_capimun
Get Autonomous Communities of Spain as 'sf' 'POLYGON' or 'POINT'esp_get_ccaa esp_get_ccaa_siane
Get 'comarcas' of Spain as 'sf' 'POLYGON'esp_get_comarca
Get 'sf' 'POLYGON' representing Spainesp_get_country
Get 'sf' 'POLYGON' with the national geographic grids from BDNesp_get_grid_BDN esp_get_grid_BDN_ccaa
Get 'sf' 'POLYGON' of the national geographic grids from EEAesp_get_grid_EEA
Get 'sf' 'POLYGON' of the national geographic grids from ESDACesp_get_grid_ESDAC
Get 'sf' 'POLYGON' of the national geographic grids from IGNesp_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
Get 'sf' 'POLYGON' of the drainage basin demarcations of Spainesp_get_hydrobasin
Get 'sf' 'POLYGON' or 'LINESTRING' with hypsometry and bathymetry of Spainesp_get_hypsobath
Get municipalities of Spain as 'sf' 'POLYGON'esp_get_munic esp_get_munic_siane
Get NUTS of Spain as 'sf' 'POLYGON' or 'POINT'esp_get_nuts
Get Provinces of Spain as 'sf' 'POLYGON' or 'POINT'esp_get_prov esp_get_prov_siane
Get 'sf' 'LINESTRING' or 'POINT' with the railways of Spainesp_get_railway
Get 'sf' 'POLYGON' or 'LINESTRING' of rivers, channels and other wetlands of Spainesp_get_rivers
Get 'sf' 'LINESTRING' of the roads of Spainesp_get_roads
Get a simplified map of provinces and autonomous communities of Spainesp_get_simpl_ccaa esp_get_simpl_prov
Get static tiles from public administrations of Spainesp_getTiles
Create a custom tile provideresp_make_provider
Displace a 'sf' object located in the Canary Islandsesp_move_can
'sf' object with all the municipalities of Spain (2019)esp_munic.sf
'sf' object with all the NUTS levels of Spain (2016)esp_nuts.sf
Set your 'mapSpain' cache diresp_set_cache_dir
Database of public WMS and WMTS of Spainesp_tiles_providers
Database with the population of Spain by municipality (2019)pobmun19