sf output
finalization, WMTS tile retrieval, dictionary translation and no-match
messages. These changes are intended to improve maintainability without
changing user-facing behavior.devtools::load_all() followed by
lintr::lint_package().options(mapspain_timeout) using
httr2::req_timeout(). The default value is
httr2::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 tibbles 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.
esp_get_grid_EEA() is deprecated and defunct because
the source file is no longer available.providerEspTileOptions() has been removed, use
leaflet::providerTileOptions() instead.?esp_munic.sf.?leaflet.providersESP.df, superseded in
mapSpain v0.8.0.?pobmun19, replaced by
?pobmun25.esp_get_country() has been renamed to
esp_get_spain(), the old name still works.esp_get_rivers() deprecates the resolution
and spatialtype arguments. Wetlands support has been moved
to the new esp_get_wetlands() function.esp_getTiles() has been renamed to
esp_get_tiles(), the old name still works.?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 new moveCAN
argument.esp_get_spain_siane() is analogous to
esp_get_spain() but uses SIANE data.esp_get_stations() replaces
esp_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 specified cache_dir in a single step.esp_get_comarca() gains a new type
argument to extract official (IGN), statistical (INE), agrarian or
livestock comarcas (MAPA).esp_get_prov_siane() fixes a bug when selecting columns
(#115).esp_dict_region_code() and
esp_dict_translate() improve dictionary support.esp_detect_cache_dir() shows the current cache
directory.esp_move_can() was added as a helper to displace
standalone sf objects in the Canary Islands.esp_move_can() is used internally by all
functions.layer_spatraster() was removed, it was deprecated in
mapSpain 0.6.2.?esp_tiles_providers to https://dieghernan.github.io/leaflet-providersESP/
v1.3.3. New providers include IDErioja.Base,
IDErioja.Relieve, IDErioja.Claro and
IDErioja.Oscuro.esp_getTiles() now supports non-OGC-compliant WMTS
providers, such as Stamen or OpenStreetMap. See examples.?leaflet.providersESP.df to https://dieghernan.github.io/leaflet-providersESP/
v1.3.2.?leaflet.providersESP.df is superseded in favor of
?esp_tiles_providers.esp_getTiles() can use a custom URL with the
type argument (#88).esp_make_provider() was added to help create custom
providers.moveCAN is now an explicit argument in the relevant
functions.layer_spatraster(). Use
tidyterra::geom_spatraster_rgb() instead.esp_get_comarca() gets comarcas from INE.esp_get_hex_prov() and esp_get_hex_ccaa()
fix geometries.esp_get_simpl_prov() and
esp_get_simpl_ccaa().esp_getTiles() fixes a bug when
mask = TRUE.?leaflet.providersESP.df to https://dieghernan.github.io/leaflet-providersESP/
v1.3.0. New providers include Catastro.BuildingPart,
Catastro.AdministrativeBoundary and
Catastro.AdministrativeUnit.esp_getTiles() gains a new options
argument.esp_get_grid_MTN(),
esp_get_grid_BDN(), esp_get_grid_EEA() and
esp_get_grid_ESDAC() (#61).Suggests.layer_spatraster().esp_clear_cache().@family tags.sysdata.rda.esp_getTiles() gains a new zoommin
argument.esp_set_cache_dir() improves caching with
rappdirs::user_cache_dir(). The cache_dir path
is now stored, so it does not need to be set again in each new
session.esp_dict_translate() (#36).addProviderEspTiles() and removed the vignette after a
CRAN warning.sysdata.rda.cache directory is created recursively.esp_dict_region_code() works with mixed casing, for
example
esp_dict_region_code("aLbacEte", destination = "cpro").cache_dir must be set as
options(mapSpain_cache_dir = "path/to/dir").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() and esp_get_railway().esp_get_munic().geogrid::calculate_grid().esp_get_can_box() gains a new poly
option.esp_get_grid_prov() and
esp_get_grid_ccaa().