- 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.
- Consolidated repeated metadata for Autonomous Communities and Cities, provinces and municipalities across GISCO, SIANE, simplified and grid-map getters.
- Reviewed roxygen2 documentation, generated Rd files and prose documentation for consistent terminology and clearer user-facing messages. This work was completed with AI assistance and human review.
- Migrated package vignettes to Quarto.
- Minimum httr2 version is now 1.2.0 to ensure compatibility with giscoR.
- Query timeout can be controlled with
options(mapspain_timeout)usinghttr2::req_timeout(). The default value ishttr2::req_timeout(..., seconds = 300)(5 minutes).
This major release introduces a full overhaul of the codebase and test suite. Requests now use httr2, and cached files are reorganized into topic-based subfolders for easier management.
Because of internal changes, existing caches are not compatible with this release and must be rebuilt.
We have transitioned from rappdirs::user_config_dir() to tools::R_user_dir()
for managing the persistent cache directory. If you have an existing cache
directory, you will receive a one-time notification about this migration.
The package now requires R >= 4.1 and dependency updates improve performance
and maintainability. All functions return tidy objects, either tibble objects
or sf objects with tibble data.
Several new functions and arguments have been added, some functions renamed and others deprecated. All bundled datasets have been updated to their latest versions.
- Minimum required R version is now 4.1.0.
- Removed dependency on slippymath (#126).
esp_get_grid_EEA()is deprecated and defunct because the source file is no longer available.providerEspTileOptions()has been removed. Useleaflet::providerTileOptions()instead.- Removed dataset
?esp_munic.sf. - Removed dataset
?leaflet.providersESP.df, superseded in mapSpain v0.8.0. - Removed dataset
?pobmun19, replaced by?pobmun25.
esp_get_country()has been renamed toesp_get_spain(). The old name still works.esp_get_rivers()deprecates theresolutionandspatialtypearguments. Wetlands support has been moved to the newesp_get_wetlands()function.esp_getTiles()has been renamed toesp_get_tiles(). The old name still works.
- Added dataset
?esp_nuts_2024, replacing?esp_nuts.sf. esp_get_attributions()retrieves tile provider attributions.esp_get_countries_siane()retrieves all countries available in SIANE at a given date.esp_get_rivers()gains a newmoveCANargument.esp_get_spain_siane()is analogous toesp_get_spain()but uses SIANE data.esp_get_stations()replacesesp_get_railway(..., spatialtype = "point").esp_get_tiles()can be used with providers that need an API key.esp_siane_bulk_download()downloads all SIANE datasets to a specifiedcache_dirin a single step.
esp_get_comarca()gains a newtypeargument to extract official (IGN), statistical (INE), agrarian or livestock comarcas (MAPA).esp_get_prov_siane()fixes a bug when selecting columns (#115).
- Adapted functions to the SIANE 2024 databases.
esp_dict_region_code()andesp_dict_translate()improve dictionary support.
- Updated actions and documentation.
- Changed how modifications to Canary Islands objects are handled (#101).
esp_detect_cache_dir()shows the current cache directory.esp_move_can()was added as a helper to displace standalonesfobjects in the Canary Islands.esp_move_can()is used internally by all functions.layer_spatraster()was removed after being deprecated in mapSpain 0.6.2.
- Improved download of NUTS data from giscoR.
- Upgraded
?esp_tiles_providersto https://dieghernan.github.io/leaflet-providersESP/ v1.3.3. New providers includeIDErioja.Base,IDErioja.Relieve,IDErioja.ClaroandIDErioja.Oscuro. esp_getTiles()now supports non-OGC-compliant WMTS providers, such as Stamen or OpenStreetMap. See examples.
- Changed how the package manages tile providers.
- Upgraded
?leaflet.providersESP.dfto https://dieghernan.github.io/leaflet-providersESP/ v1.3.2. ?leaflet.providersESP.dfis superseded in favor of?esp_tiles_providers.esp_getTiles()can use a custom URL with thetypeargument (#88).esp_make_provider()was added to help create custom providers.
moveCANis now an explicit argument in the relevant functions.- Deprecated
layer_spatraster(). Usetidyterra::geom_spatraster_rgb()instead. esp_get_comarca()gets comarcas from INE.esp_get_hex_prov()andesp_get_hex_ccaa()fix geometries.- Added functions to get simplified maps from INE,
esp_get_simpl_prov()andesp_get_simpl_ccaa().
esp_getTiles()fixes a bug whenmask = TRUE.
- Improved regex search on municipalities. Letter case is now ignored.
- Upgraded
?leaflet.providersESP.dfto https://dieghernan.github.io/leaflet-providersESP/ v1.3.0. New providers includeCatastro.BuildingPart,Catastro.AdministrativeBoundaryandCatastro.AdministrativeUnit. esp_getTiles()gains a newoptionsargument.
- Rebuilt coding database to avoid encoding errors.
- Fixed Galician translations.
- Added grid functions
esp_get_grid_MTN(),esp_get_grid_BDN(),esp_get_grid_EEA()andesp_get_grid_ESDAC()(#61).
- Switched from raster to terra.
- Cleaned up dependencies. Imagery packages moved to
Suggests. - Added
layer_spatraster(). - Moved examples to ggplot2.
- Fixed an error on CRAN related to the cache folder (#52).
- Added
esp_clear_cache(). - Updated documentation with
@familytags.
- Added tests with testthat.
- Precomputed the vignette.
- Refactored
sysdata.rda. - Updated documentation with new examples.
esp_getTiles()gains a newzoomminargument.esp_set_cache_dir()improves caching withrappdirs::user_cache_dir(). Thecache_dirpath is now stored, so it does not need to be set again in each new session.
- Moved minimum version of giscoR to v0.2.4.
- Fixed typos in
esp_dict_translate()(#36). - Do not run examples on tiles because the server sometimes does not respond.
- CRAN fixes removed a broken link in
addProviderEspTiles()and removed the vignette after a CRAN warning. - Refactored
sysdata.rda. - Now the
cachedirectory is created recursively.
- Migrated examples, vignettes and README to tmap.
- Added vignette to the package.
esp_dict_region_code()works with mixed casing, for exampleesp_dict_region_code("aLbacEte", destination = "cpro").
- Fixed a documentation typo:
cache_dirmust be set asoptions(mapSpain_cache_dir = "path/to/dir").
- Fixed DOI https://doi.org/10.5281/zenodo.4318024.
- Ported documentation to roxygen2.
- Included CartoBase ANE (Atlas Nacional de España) data:
https://github.com/rOpenSpain/mapSpain/tree/sianedata, with
esp_get_munic_siane(),esp_get_prov_siane(),esp_get_ccaa_siane(),esp_get_hypsobath(),esp_get_rivers(),esp_get_hydrobasin(),esp_get_capimun(),esp_get_roads()andesp_get_railway(). - Muted warnings from rgdal.
- Fixed a warning when sf was not loaded first.
- Added more years to
esp_get_munic(). - Created new grids with
geogrid::calculate_grid(). - Moved to rOpenSpain organization.
esp_get_can_box()gains a newpolyoption.
- Fixed CRAN submission.
- Added
esp_get_grid_prov()andesp_get_grid_ccaa().
- Initial release.