Title: | Interface to the 'INSPIRE' services of 'Catastro de Bizkaia', 'Catastro de Gipuzkua', 'Catastro de Araba' |
---|---|
Description: | Access public spatial data available under the 'INSPIRE' directive. Tools for downloading references, buildings and addresses of properties on Pais Vasco (Spain). |
Authors: | Jimena Salinero [aut, cre] |
Maintainer: | Jimena Salinero <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9000 |
Built: | 2024-12-14 03:35:51 UTC |
Source: | https://github.com/rOpenSpain/CatastRoEus |
Get the spatial data of all the addresses belonging to a single municipality using the INSPIRE ATOM service.
catreus_bizk_atom_get_addresses( munic, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
catreus_bizk_atom_get_addresses( munic, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
munic |
Municipality to extract, It can be a part of a string or the addresses code. See catreus_bizk_atom_get_addresses_db_all. |
cache |
A logical whether to do caching. Default is |
update_cache |
A logical whether to update cache. Default is |
cache_dir |
A path to a cache directory. On missing value the function would store the cached files on a temporary dir (See |
verbose |
Logical, displays information. Useful for debugging, default is |
A sf
object.
Other ATOM:
catreus_bizk_atom_get_addresses_db_all()
,
catreus_bizk_atom_get_buildings()
,
catreus_bizk_atom_get_buildings_db_all()
,
catreus_bizk_atom_get_parcels()
,
catreus_bizk_atom_get_parcels_db_all()
Other addresses:
catreus_bizk_atom_get_addresses_db_all()
s <- catreus_bizk_atom_get_addresses("ABADIÑO") library(ggplot2) ggplot(s) + geom_sf() + labs( title = "Addresses Zoning", subtitle = "ABADIÑO" )
s <- catreus_bizk_atom_get_addresses("ABADIÑO") library(ggplot2) ggplot(s) + geom_sf() + labs( title = "Addresses Zoning", subtitle = "ABADIÑO" )
Create a database containing the urls provided in the INSPIRE ATOM service for extracting Addresses.
catreus_bizk_atom_get_addresses_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
catreus_bizk_atom_get_addresses_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
cache |
A logical whether to do caching. Default is |
update_cache |
A logical whether to update cache. Default is |
cache_dir |
A path to a cache directory. On missing value the function would store the cached files on a temporary dir (See |
verbose |
Logical, displays information. Useful for debugging, default is |
A tibble with the information requested:
munic
: Name of the municipality.
url
: url for downloading information of the corresponding municipality.
date
: Reference date of the data.
Other ATOM:
catreus_bizk_atom_get_addresses()
,
catreus_bizk_atom_get_buildings()
,
catreus_bizk_atom_get_buildings_db_all()
,
catreus_bizk_atom_get_parcels()
,
catreus_bizk_atom_get_parcels_db_all()
Other addresses:
catreus_bizk_atom_get_addresses()
catreus_bizk_atom_get_addresses_db_all()
catreus_bizk_atom_get_addresses_db_all()
Get the spatial data of all the buildings belonging to a single municipality using the INSPIRE ATOM service.
catreus_bizk_atom_get_buildings( munic, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
catreus_bizk_atom_get_buildings( munic, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
munic |
Municipality to extract, It can be a part of a string or the buildings code. See catreus_bizk_atom_get_buildings_db_all. |
cache |
A logical whether to do caching. Default is |
update_cache |
A logical whether to update cache. Default is |
cache_dir |
A path to a cache directory. On missing value the function would store the cached files on a temporary dir (See |
verbose |
Logical, displays information. Useful for debugging, default is |
A sf
object.
Other ATOM:
catreus_bizk_atom_get_addresses()
,
catreus_bizk_atom_get_addresses_db_all()
,
catreus_bizk_atom_get_buildings_db_all()
,
catreus_bizk_atom_get_parcels()
,
catreus_bizk_atom_get_parcels_db_all()
Other buildings:
catreus_bizk_atom_get_buildings_db_all()
s <- catreus_bizk_atom_get_buildings("ABADIÑO") library(ggplot2) ggplot(s) + geom_sf() + labs( title = "Buildings Zoning", subtitle = "ABADIÑO" )
s <- catreus_bizk_atom_get_buildings("ABADIÑO") library(ggplot2) ggplot(s) + geom_sf() + labs( title = "Buildings Zoning", subtitle = "ABADIÑO" )
Create a database containing the urls provided in the INSPIRE ATOM service for extracting Buildings.
catreus_bizk_atom_get_buildings_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
catreus_bizk_atom_get_buildings_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
cache |
A logical whether to do caching. Default is |
update_cache |
A logical whether to update cache. Default is |
cache_dir |
A path to a cache directory. On missing value the function would store the cached files on a temporary dir (See |
verbose |
Logical, displays information. Useful for debugging, default is |
A tibble with the information requested:
munic
: Name of the municipality.
url
: url for downloading information of the corresponding municipality.
date
: Reference date of the data.
Other ATOM:
catreus_bizk_atom_get_addresses()
,
catreus_bizk_atom_get_addresses_db_all()
,
catreus_bizk_atom_get_buildings()
,
catreus_bizk_atom_get_parcels()
,
catreus_bizk_atom_get_parcels_db_all()
Other buildings:
catreus_bizk_atom_get_buildings()
catreus_bizk_atom_get_buildings_db_all()
catreus_bizk_atom_get_buildings_db_all()
Get the spatial data of all the cadastral parcels belonging to a single municipality using the INSPIRE ATOM service.
catreus_bizk_atom_get_parcels( munic, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
catreus_bizk_atom_get_parcels( munic, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
munic |
Municipality to extract, It can be a part of a string or the cadastral code. See catreus_bizk_atom_get_parcels_db_all. |
cache |
A logical whether to do caching. Default is |
update_cache |
A logical whether to update cache. Default is |
cache_dir |
A path to a cache directory. On missing value the function would store the cached files on a temporary dir (See |
verbose |
Logical, displays information. Useful for debugging, default is |
A sf
object.
Other ATOM:
catreus_bizk_atom_get_addresses()
,
catreus_bizk_atom_get_addresses_db_all()
,
catreus_bizk_atom_get_buildings()
,
catreus_bizk_atom_get_buildings_db_all()
,
catreus_bizk_atom_get_parcels_db_all()
Other parcels:
catreus_bizk_atom_get_parcels_db_all()
s <- catreus_bizk_atom_get_parcels("ABANTO Y CIERVANA") library(ggplot2) ggplot(s) + geom_sf() + labs( title = "Cadastral Zoning", subtitle = "ABANTO Y CIERVANA" )
s <- catreus_bizk_atom_get_parcels("ABANTO Y CIERVANA") library(ggplot2) ggplot(s) + geom_sf() + labs( title = "Cadastral Zoning", subtitle = "ABANTO Y CIERVANA" )
Create a database containing the urls provided in the INSPIRE ATOM service for extracting Cadastral Parcels.
catreus_bizk_atom_get_parcels_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
catreus_bizk_atom_get_parcels_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )
cache |
A logical whether to do caching. Default is |
update_cache |
A logical whether to update cache. Default is |
cache_dir |
A path to a cache directory. On missing value the function would store the cached files on a temporary dir (See |
verbose |
Logical, displays information. Useful for debugging, default is |
A tibble with the information requested:
munic
: Name of the municipality.
url
: url for downloading information of the corresponding municipality.
date
: Reference date of the data.
Other ATOM:
catreus_bizk_atom_get_addresses()
,
catreus_bizk_atom_get_addresses_db_all()
,
catreus_bizk_atom_get_buildings()
,
catreus_bizk_atom_get_buildings_db_all()
,
catreus_bizk_atom_get_parcels()
Other parcels:
catreus_bizk_atom_get_parcels()
catreus_bizk_atom_get_parcels_db_all()
catreus_bizk_atom_get_parcels_db_all()
Use this function with caution. This function would clear your cached data and configuration, specifically:
Deletes the CatastRoEus config directory
(rappdirs::user_config_dir("CatastRoEus", "R")
).
Deletes the cache_dir
directory.
Deletes the values on stored on Sys.getenv("CATASTROEUS_CACHE_DIR")
.
catreus_clear_cache(config = FALSE, cached_data = TRUE, verbose = FALSE)
catreus_clear_cache(config = FALSE, cached_data = TRUE, verbose = FALSE)
config |
if |
cached_data |
If this is set to |
verbose |
Logical, displays information. Useful for debugging, default is |
This is an overkill function that is intended to reset your status as it you would never have installed and/or used CatastRoEus.
Invisible. This function is called for its side effects.
Other cache utilities:
catreus_set_cache_dir()
# Don't run this! It would modify your current state ## Not run: catreus_clear_cache(verbose = TRUE) ## End(Not run) Sys.getenv("CATASTROEUS_CACHE_DIR")
# Don't run this! It would modify your current state ## Not run: catreus_clear_cache(verbose = TRUE) ## End(Not run) Sys.getenv("CATASTROEUS_CACHE_DIR")
This function will store your cache_dir
path on your local machine and would load it for future sessions. Type Sys.getenv("CATASTROEUS_CACHE_DIR")
to find your cached path.
Alternatively, you can store the cache_dir
manually with the following options:
Run Sys.setenv(CATASTROEUS_CACHE_DIR = "cache_dir")
. You would need to run this command on each session (Similar to install = FALSE
).
Write this line on your .Renviron
file:
CATASTROEUS_CACHE_DIR = "value_for_cache_dir"
(same behavior than install = TRUE
). This would store your cache_dir
permanently.
catreus_set_cache_dir( cache_dir, overwrite = FALSE, install = FALSE, verbose = TRUE )
catreus_set_cache_dir( cache_dir, overwrite = FALSE, install = FALSE, verbose = TRUE )
cache_dir |
A path to a cache directory. On missing value the function would store the cached files on a temporary dir (See |
overwrite |
If this is set to |
install |
if |
verbose |
Logical, displays information. Useful for debugging, default is |
An (invisible) character with the path to your cache_dir
.
Sometimes cached files may be corrupt. On that case, try re-downloading the data setting update_cache = TRUE
.
If you experience any problem on download, try to download the corresponding file by any other method and save it on your
cache_dir
. Use the option verbose = TRUE
for debugging the API query.
Other cache utilities:
catreus_clear_cache()
# Don't run this! It would modify your current state ## Not run: catreus_set_cache_dir(verbose = TRUE) ## End(Not run) Sys.getenv("CATASTROEUS_CACHE_DIR")
# Don't run this! It would modify your current state ## Not run: catreus_set_cache_dir(verbose = TRUE) ## End(Not run) Sys.getenv("CATASTROEUS_CACHE_DIR")
This function fetches addresses data within a specified bounding box. It first checks if the provided coordinates are valid, determines the province based on these coordinates using reverse geocoding, and fetches address data for Bizkaia or Gipuzkoa accordingly. It supports transformations between geographical and UTM coordinate systems, handles multiple Coordinate Reference Systems (CRS), and manages different minimum counts for returned records.
catreus_wfs_get_address_bbox(x, srs = NULL, verbose = FALSE, count = NULL)
catreus_wfs_get_address_bbox(x, srs = NULL, verbose = FALSE, count = NULL)
x |
Bounding box coordinates or a spatial object, which could be:
|
srs |
Spatial Reference System (SRS) or Coordinate Reference System (CRS) code to be used in the query. For best results, ensure the coordinates are in ETRS89 (EPSG:25830) or WGS84 (EPSG:4326) when using latitude and longitude. |
verbose |
Logical; if |
count |
Integer specifying the maximum number of address records to return,
or |
This function uses reverse geocoding to determine the province within the Basque Country from the coordinates provided. Based on the province, it delegates the data fetching to specific functions handling each province's data. It supports flexible input types and handles geographical coordinate transformations internally if needed.
Depending on the input and geographic location, this function may return:
A message detailing the success of the query and the province fetched.
A warning message if the bounding box spans multiple provinces.
An error message if the coordinates are not within Pais Vasco.
st_bbox
, which is used to manage spatial bounding boxes.
# Define bounding box coordinates for an urban location in Gipuzkoa coords_gipuzkoa <- c(582745.070132,4795611.169048,584249.337348,4796830.604835) # Fetch address data using the bounding box addresses_gipuzkoa <- catreus_wfs_get_address_bbox(coords_gipuzkoa, srs = 25830) library(ggplot2) # Plot the buildings data ggplot(addresses_gipuzkoa) + geom_sf() + ggtitle("Addresses Data for Gipuzkoa") # Define bounding box coordinates for a location in Bizkaia coords_bizkaia <- c(499307.414680, 4792958.784686, 502508.961032, 4796815.771278) # Fetch address data using the bounding box addresses_bizkaia <- catreus_wfs_get_address_bbox(coords_bizkaia, srs = 25830) library(ggplot2) # Plot the buildings data ggplot(addresses_bizkaia) + geom_sf() + ggtitle("Addresses Data for Bizkaia")
# Define bounding box coordinates for an urban location in Gipuzkoa coords_gipuzkoa <- c(582745.070132,4795611.169048,584249.337348,4796830.604835) # Fetch address data using the bounding box addresses_gipuzkoa <- catreus_wfs_get_address_bbox(coords_gipuzkoa, srs = 25830) library(ggplot2) # Plot the buildings data ggplot(addresses_gipuzkoa) + geom_sf() + ggtitle("Addresses Data for Gipuzkoa") # Define bounding box coordinates for a location in Bizkaia coords_bizkaia <- c(499307.414680, 4792958.784686, 502508.961032, 4796815.771278) # Fetch address data using the bounding box addresses_bizkaia <- catreus_wfs_get_address_bbox(coords_bizkaia, srs = 25830) library(ggplot2) # Plot the buildings data ggplot(addresses_bizkaia) + geom_sf() + ggtitle("Addresses Data for Bizkaia")
This function fetches buildings data within a specified bounding box. It first checks if the provided coordinates are valid, determines the province based on these coordinates using reverse geocoding, and fetches buildings data for Bizkaia, Gipuzkoa, or Araba/Álava accordingly. It supports transformations between geographical and UTM coordinate systems, handles multiple Coordinate Reference Systems (CRS), and manages different minimum counts for returned records.
catreus_wfs_get_buildings_bbox(x, srs = NULL, verbose = FALSE, count = NULL)
catreus_wfs_get_buildings_bbox(x, srs = NULL, verbose = FALSE, count = NULL)
x |
Bounding box coordinates or a spatial object, which could be:
|
srs |
Spatial Reference System (SRS) or Coordinate Reference System (CRS) code to be used in the query. For best results, ensure the coordinates are in ETRS89 (EPSG:25830) or WGS84 (EPSG:4326) when using latitude and longitude. |
verbose |
Logical; if |
count |
Integer specifying the maximum number of building records to return. Default is 10. |
This function uses reverse geocoding to determine the province within the Basque Country from the coordinates provided. Based on the province, it delegates the data fetching to specific functions handling each province's data. It supports flexible input types and handles geographical coordinate transformations internally if needed.
Depending on the input and geographic location, this function may return:
An sf
object containing building data within the specified bbox.
A message indicating mismatched or out-of-region coordinates.
st_bbox
, which is used to manage spatial bounding boxes.
library(mapSpain) library(dplyr) library(sf) # Define bounding box coordinates for a location in Gipuzkoa coords_gipuzkoa <- c(580335.961264, 4795197.149650, 581482.214894, 4795985.065492) # Fetch building data using the bounding box buildings_gipuzkoa <- catreus_wfs_get_buildings_bbox(coords_gipuzkoa, srs = 25830, count = 10) library(ggplot2) # Plot the buildings data ggplot(buildings_gipuzkoa) + geom_sf() + ggtitle("Building Data for Gipuzkoa") # Define bounding box coordinates for a location in Bizkaia bilbao <- esp_get_capimun(munic = "Bilbao") %>% st_transform(25830) %>% st_buffer(300) buildings_bilbao <- catreus_wfs_get_buildings_bbox(bilbao) ggplot(buildings_bilbao) + geom_sf() + ggtitle("Buildings Data for Bilbao") # Define bounding box coordinates for a rural location in Araba/Álava coords_alaba = c(525858.205755, 4742911.412803, 526701.543389, 4743398.976145) # Fetch building data using the bounding box, requesting more features buildings_alaba <- catreus_wfs_get_buildings_bbox(coords_alaba, srs = 25830) library(ggplot2) # Plot the buildings data for Araba/Álava ggplot(buildings_alaba) + geom_sf() + ggtitle("Building Data for Alaba")
library(mapSpain) library(dplyr) library(sf) # Define bounding box coordinates for a location in Gipuzkoa coords_gipuzkoa <- c(580335.961264, 4795197.149650, 581482.214894, 4795985.065492) # Fetch building data using the bounding box buildings_gipuzkoa <- catreus_wfs_get_buildings_bbox(coords_gipuzkoa, srs = 25830, count = 10) library(ggplot2) # Plot the buildings data ggplot(buildings_gipuzkoa) + geom_sf() + ggtitle("Building Data for Gipuzkoa") # Define bounding box coordinates for a location in Bizkaia bilbao <- esp_get_capimun(munic = "Bilbao") %>% st_transform(25830) %>% st_buffer(300) buildings_bilbao <- catreus_wfs_get_buildings_bbox(bilbao) ggplot(buildings_bilbao) + geom_sf() + ggtitle("Buildings Data for Bilbao") # Define bounding box coordinates for a rural location in Araba/Álava coords_alaba = c(525858.205755, 4742911.412803, 526701.543389, 4743398.976145) # Fetch building data using the bounding box, requesting more features buildings_alaba <- catreus_wfs_get_buildings_bbox(coords_alaba, srs = 25830) library(ggplot2) # Plot the buildings data for Araba/Álava ggplot(buildings_alaba) + geom_sf() + ggtitle("Building Data for Alaba")
This function fetches parcel data within a specified bounding box. It first checks if the provided coordinates are valid, determines the province based on these coordinates using reverse geocoding, and fetches parcel data for Bizkaia, Gipuzkoa, or Araba/Álava accordingly. It supports transformations between geographical and UTM coordinate systems, handles multiple Coordinate Reference Systems (CRS), and manages different minimum counts for returned records.
catreus_wfs_get_parcels_bbox(x, srs = NULL, verbose = FALSE, count = NULL)
catreus_wfs_get_parcels_bbox(x, srs = NULL, verbose = FALSE, count = NULL)
x |
Bounding box coordinates or a spatial object, which could be:
|
srs |
Spatial Reference System (SRS) or Coordinate Reference System (CRS) code to be used in the query. For best results, ensure the coordinates are in ETRS89 (EPSG:25830) or WGS84 (EPSG:4326) when using latitude and longitude. |
verbose |
Logical; if |
count |
Integer specifying the maximum number of parcel records to return. Default is 10. |
The function uses reverse geocoding to identify the province within the Basque Country. It delegates data fetching to province-specific functions, which handle data extraction based on the provided geographic bounds. The function adapts dynamically to coordinate system inputs and provides options for detailed logging to facilitate debugging and verification of operations.
Depending on the input and geographic location, this function may return:
A message detailing the success of the query and the province fetched.
A warning message if the bounding box spans multiple provinces.
An error message if the coordinates are not within Pais Vasco.
st_bbox
, which is used to manage spatial bounding boxes.
library(mapSpain) library(dplyr) library(sf) # Define bounding box coordinates for an urban location in Gipuzkoa coords_gipuzkoa <- c(582745.070132,4795611.169048,584249.337348,4796830.604835) # Fetch parcel data using the bounding box parcels_gipuzkoa <- catreus_wfs_get_parcels_bbox(coords_gipuzkoa, srs = 25830) library(ggplot2) # Plot the parcels data ggplot(parcels_gipuzkoa) + geom_sf() + ggtitle("Parcels Data for Gipuzkoa") # Define bounding box coordinates for a location in Bizkaia coords_bizkaia <- c(504218.816311, 4788948.595082, 505374.746026, 4789719.963173) # Fetch parcel data using the bounding box parcels_bizkaia <- catreus_wfs_get_parcels_bbox(coords_bizkaia, srs = 25830) library(ggplot2) # Plot the parcels data for Bizkaia ggplot(parcels_bizkaia) + geom_sf() + ggtitle("Parcels Data for Bizkaia") # Define bounding box coordinates for a location in Araba # Fetch parcel data using the bounding box vitoria <- esp_get_capimun(munic = "Vitoria") %>% st_transform(4326) %>% # Small buffer of 200 m st_buffer(300) parcels_araba <- catreus_wfs_get_parcels_bbox(vitoria) ggplot(parcels_araba) + geom_sf() + ggtitle("Parcels Data for Vitoria")
library(mapSpain) library(dplyr) library(sf) # Define bounding box coordinates for an urban location in Gipuzkoa coords_gipuzkoa <- c(582745.070132,4795611.169048,584249.337348,4796830.604835) # Fetch parcel data using the bounding box parcels_gipuzkoa <- catreus_wfs_get_parcels_bbox(coords_gipuzkoa, srs = 25830) library(ggplot2) # Plot the parcels data ggplot(parcels_gipuzkoa) + geom_sf() + ggtitle("Parcels Data for Gipuzkoa") # Define bounding box coordinates for a location in Bizkaia coords_bizkaia <- c(504218.816311, 4788948.595082, 505374.746026, 4789719.963173) # Fetch parcel data using the bounding box parcels_bizkaia <- catreus_wfs_get_parcels_bbox(coords_bizkaia, srs = 25830) library(ggplot2) # Plot the parcels data for Bizkaia ggplot(parcels_bizkaia) + geom_sf() + ggtitle("Parcels Data for Bizkaia") # Define bounding box coordinates for a location in Araba # Fetch parcel data using the bounding box vitoria <- esp_get_capimun(munic = "Vitoria") %>% st_transform(4326) %>% # Small buffer of 200 m st_buffer(300) parcels_araba <- catreus_wfs_get_parcels_bbox(vitoria) ggplot(parcels_araba) + geom_sf() + ggtitle("Parcels Data for Vitoria")
Fetches geotagged images from the Cadastre based on the provided bounding box coordinates. This function determines the province (Bizkaia, Gipuzkoa, or Araba/Álava) using reverse geocoding and fetches the appropriate data using specific WMS service functions for each province. It ensures the coordinates fall within a single province and handles different CRS inputs.
catreus_wms_get_layer( x, srs = NULL, what = c("parcel", "admunit", "admbound", "building", "zoning", "address", "buother"), id = "change_id", styles = NULL, verbose = FALSE, crop = FALSE, options = list() )
catreus_wms_get_layer( x, srs = NULL, what = c("parcel", "admunit", "admbound", "building", "zoning", "address", "buother"), id = "change_id", styles = NULL, verbose = FALSE, crop = FALSE, options = list() )
x |
A numeric vector of bbox coordinates or an
|
srs |
The spatial reference system to be used, typically an EPSG code (3857 or 25830). |
what |
Specifies the layer to be extracted. Options include: For Bizkaia:
For Gipuzkoa:
For Araba:
|
id |
An identifier for the custom WMS service configuration. |
styles |
Specifies the style of the WMS layer, see Styles for options. |
verbose |
Logical; if |
crop |
Logical; if |
options |
List; additional options for the WMS request. |
This function uses reverse geocoding to determine the province within the Basque Country from the provided coordinates. Based on the identified province, it delegates the data fetching to specific functions handling each province's data. It supports flexible input types and handles geographical coordinate transformations internally if needed.
Returns a SpatRaster
object with either RGB or RGBA layers depending on the data.
Additionally, prints messages detailing the province detected and any potential issues with
the provided coordinates.
Various styles are available for each layer, which can enhance the visualization:
Bizkaia:
"parcel"
: "CP.CadastralParcel.BoundariesOnly"
, "CP.CadastralParcel.ReferencePointOnly"
, "CP.CadastralParcel.LabelOnReferencePoint"
, "CP.CadastralParcel.Default"
, "inspire_common:DEFAULT"
"zoning"
: "CP.CadastralZoning.Default"
, "inspire_common:DEFAULT"
"address"
: "AD.Address.Default"
, "inspire_common:DEFAULT"
"admunit"
: "AU.AdministrativeUnit.Default"
, "inspire_common:DEFAULT"
Gipuzkoa:
"parcel"
: "CP.CadastralParcel.BoundariesOnly"
, "CP.CadastralParcel.ReferencePointOnly"
, "CP.CadastralParcel.LabelOnReferencePoint"
, "CP.CadastralParcel.Default"
, "CP.CadastralParcel.ELFCadastre"
"zoning"
: "CP.CadastralZoning.Default"
, "CP.CadastralZoning.ELFCadastre"
"address"
: "AD.Address.Default"
, "AD.Address.Number.ELFCadastre"
"admunit"
: "AU.AdministrativeUnit.Default"
, "AU.AdministrativeUnit.ELFCadastre"
"admbound"
: "AU.AdministrativeBoundary.Default"
, "AU.AdministrativeBoundary.ELFCadastre"
"building"
: "BU.Building.Default"
, "BU.Building.ELFCadastre"
"buother"
: "BU.OtherConstruction.Default"
,"BU.OtherConstruction.ELFCadastre"
Araba:
"parcel"
: "INSPIRE_CP:CP.CadastralParcel.Default"
, "INSPIRE_CP:CP.CadastralParcel.ELFCadastre"
, "INSPIRE_CP:CP.CadastralParcel.BoundariesOnly"
, "INSPIRE_CP:CP.CadastralParcel.LabelOnReferencePoint"
, "INSPIRE_CP:CP.CadastralParcel.ReferencePointOnly"
"admunit"
: "INSPIRE_AU:AU.AdministrativeUnit.Default"
"admbound"
: "INSPIRE_AU:AU.AdministrativeBoundary.Default"
"building"
: "INSPIRE_BU:BU.Building.Default"
mapSpain::esp_getTiles()
, mapSpain::esp_make_provider()
, terra::RGB()
.
For advanced plotting, see terra::plotRGB()
and tidyterra::geom_spatraster_rgb()
.
library(mapSpain) library(ggplot2) library(terra) library(tidyterra) # Fetching a building layer using specific bounding box coordinates (Araba) pic_bu <- catreus_wms_get_layer(c(-298730.238481,5288011.551711,-296360.690604,5289922.477418), srs = 3857, what = "building", id = "layer_eus_1") # Displaying the fetched raster image ggplot() + geom_spatraster_rgb(data = pic_bu) # Fetching an address layer using specific bounding box coordinates (Gipuzkoa) pic_ad <- catreus_wms_get_layer(c(-221868.029226,5358914.061417,-220750.137688,5360872.760267), srs= 3857, what = "address", id = "layer_eus_2") # Displaying the fetched raster image ggplot() + geom_spatraster_rgb(data = pic_ad) # Fetching a zoning layer using specific bounding box coordinates (Bizkaia) pic_zo <- catreus_wms_get_layer(c(-339724.372213,5356554.068169,-333915.158064,5361598.912035), srs= 3857, what = "zoning", id = "layer_eus_3") # Displaying the fetched raster image ggplot() + geom_spatraster_rgb(data = pic_zo)
library(mapSpain) library(ggplot2) library(terra) library(tidyterra) # Fetching a building layer using specific bounding box coordinates (Araba) pic_bu <- catreus_wms_get_layer(c(-298730.238481,5288011.551711,-296360.690604,5289922.477418), srs = 3857, what = "building", id = "layer_eus_1") # Displaying the fetched raster image ggplot() + geom_spatraster_rgb(data = pic_bu) # Fetching an address layer using specific bounding box coordinates (Gipuzkoa) pic_ad <- catreus_wms_get_layer(c(-221868.029226,5358914.061417,-220750.137688,5360872.760267), srs= 3857, what = "address", id = "layer_eus_2") # Displaying the fetched raster image ggplot() + geom_spatraster_rgb(data = pic_ad) # Fetching a zoning layer using specific bounding box coordinates (Bizkaia) pic_zo <- catreus_wms_get_layer(c(-339724.372213,5356554.068169,-333915.158064,5361598.912035), srs= 3857, what = "zoning", id = "layer_eus_3") # Displaying the fetched raster image ggplot() + geom_spatraster_rgb(data = pic_zo)