Administrative Boundaries and Static Map Tiles for Spain
Overview
Administrative boundaries of Spain at several levels (Autonomous Communities and Cities, provinces, municipalities and 'NUTS'), based on 'GISCO' from 'Eurostat' https://ec.europa.eu/eurostat/web/gisco and 'CartoBase ANE' from 'Instituto Geográfico Nacional' https://www.ign.es/. Includes tools to download and process static map tiles and a 'leaflet' plugin for Spanish public administration tile providers.
- Console messages now use clearer semantic formatting and distinguish warnings from status alerts.
- Query timeout can now also be controlled with the
MAPSPAIN_TIMEOUTenvironment variable. ?esp_tiles_providers: Updated all WMS providers to useservice=WMS&version=1.3.0.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-12
- ERROR12 OK, 1 ERROR2026-08-09
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-20
Show 6 earlier changesHide 6 earlier changes
- ERROR12 OK, 1 ERROR2026-06-19
- OK13 OK2026-06-18
- ERROR12 OK, 1 ERROR2026-06-12
- OK13 OK2026-06-01
- ERROR12 OK, 1 ERROR2026-05-29
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 39 (3 internal)includes a package overview page
- Examples that run
- 49%18 run in a plain check (9 of them under a condition) · 15 only when donttest examples are enabled (R CMD check --as-cran) · 4 never run
- Exported functions with examples
- 97%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 3%
Downloads
Repository
- PRs merged (all time)
- 94%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
23 development-tooling and community-health practices detected across 10 families in the upstream repository
Checks run against github.com/ropenspain/mapspain on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-12 · The repository has a site deploy workflow
pkgdown site last built 2026-10-12
Show all practicesHide 6 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-03-22Seen in the repository: .github/agents, .github/skills
- Claude Codefirst seen 2026-05-02Seen in the repository: .claudeNamed in .Rbuildignore: .claude
- Codexfirst seen 2026-07-18Seen in the repository: .codexNamed in .Rbuildignore: .codex
Dependencies
Installing mapSpain adds 63 packages (37 with compiled code, 54 MB of source tarballs). Heaviest: sf 9.3 MB, bslib 5.6 MB, sp 4.3 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.2.1Latest
- 1.2.02026-06-17 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.1.02026-03-26 · diff ↗
- 1.0.02026-01-17 · diff ↗ ·
removed 1 export
providerEspTileOptionsadded 8 exports
esp_get_attributions, esp_get_countries_siane, esp_get_spain, esp_get_spain_siane, esp_get_stations, esp_get_tiles, esp_get_wetlands, esp_siane_bulk_download - RR 4.5.0 released · 2025-04-11
- 0.10.02024-12-15 · diff ↗
- 0.9.22024-08-26 · diff ↗
- 0.9.12024-06-10 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.9.02024-01-23 · diff ↗ ·
removed 1 export
layer_spatrasteradded 2 exports
esp_detect_cache_dir, esp_move_can - 0.8.02023-07-12 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.7.0
- 0.6.2
- RR 4.2.0 released · 2022-04-22
Show 14 earlier eventsHide 14 earlier events
- 0.6.12022-02-25 · diff ↗
- 0.6.02022-02-18 · diff ↗
- 0.5.02022-01-25 · diff ↗ ·
added 5 exports
esp_get_grid_BDN, esp_get_grid_BDN_ccaa, esp_get_grid_EEA, esp_get_grid_ESDAC, esp_get_grid_MTN - 0.4.0
- 0.3.1
- 0.3.0
- RR 4.1.0 released · 2021-05-18
- 0.2.32021-04-25 · diff ↗
- 0.2.22021-04-17 · diff ↗
- 0.2.12021-03-19 · diff ↗
- 0.2.02021-02-25 · diff ↗ ·
added 9 exports
esp_get_capimun, esp_get_ccaa_siane, esp_get_hydrobasin, esp_get_hypsobath, esp_get_munic_siane, esp_get_prov_siane, esp_get_railway, esp_get_rivers, esp_get_roads - 0.1.22021-01-05 · diff ↗
- 0.1.12020-11-30
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-11-30
- Total releases
- 23 / 6 yrs
- License
- GPL-3 OSI
- Copyright
- © EuroGeographics for the administrative boundaries. Atlas Nacional de España (ANE) CC-BY 4.0 <https://www.ign.es>. INE <https://www.ine.es/en/index.htm>
- Minimum R
- ≥ 4.1.0
- Bundled data
- 387 KB / 4 files
- Download size
- 1.7 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("mapSpain")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.