diff --git a/pkgdown.yml b/pkgdown.yml index 6a7ee6f..ea1b86c 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -4,7 +4,7 @@ pkgdown_sha: ~ articles: CatastRo: CatastRo.html ovcservice: ovcservice.html -last_built: 2024-12-02T09:46Z +last_built: 2024-12-11T12:32Z urls: reference: https://ropenspain.github.io/CatastRo/reference article: https://ropenspain.github.io/CatastRo/articles diff --git a/reference/catr_clear_cache.html b/reference/catr_clear_cache.html index 86b32f5..bfb80fa 100644 --- a/reference/catr_clear_cache.html +++ b/reference/catr_clear_cache.html @@ -101,7 +101,7 @@

Examples# Don't run this! It would modify your current state # \dontrun{ catr_clear_cache(verbose = TRUE) -#> CatastRo cached data deleted: C:\Users\RUNNER~1\AppData\Local\Temp\Rtmps3uZME/CatastRo +#> CatastRo cached data deleted: C:\Users\RUNNER~1\AppData\Local\Temp\Rtmps9KRQD/CatastRo # } Sys.getenv("CATASTROESP_CACHE_DIR") diff --git a/reference/catr_set_cache_dir.html b/reference/catr_set_cache_dir.html index 838bdba..3a00848 100644 --- a/reference/catr_set_cache_dir.html +++ b/reference/catr_set_cache_dir.html @@ -142,12 +142,12 @@

Examples# \dontrun{ catr_set_cache_dir(verbose = TRUE) #> Using a temporary cache dir. Set 'cache_dir' to a value for store permanently -#> CatastRo cache dir is: C:\Users\RUNNER~1\AppData\Local\Temp\Rtmps3uZME/CatastRo +#> CatastRo cache dir is: C:\Users\RUNNER~1\AppData\Local\Temp\Rtmps9KRQD/CatastRo # } catr_detect_cache_dir() -#> [1] "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps3uZME/CatastRo" +#> [1] "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps9KRQD/CatastRo" diff --git a/reference/catr_wfs_get_parcels.html b/reference/catr_wfs_get_parcels.html index 79c1ab0..99d9ad4 100644 --- a/reference/catr_wfs_get_parcels.html +++ b/reference/catr_wfs_get_parcels.html @@ -215,7 +215,7 @@

Examples ), srs = 25830 ) -#> Warning: incomplete final line found on 'C:\Users\RUNNER~1\AppData\Local\Temp\Rtmps3uZME/file107c749c4f70.gml' +#> Warning: incomplete final line found on 'C:\Users\RUNNER~1\AppData\Local\Temp\Rtmps9KRQD/file4903f334805.gml' library(ggplot2) diff --git a/reference/catr_wms_get_layer-1.png b/reference/catr_wms_get_layer-1.png index cb3c1be..897b1f1 100644 Binary files a/reference/catr_wms_get_layer-1.png and b/reference/catr_wms_get_layer-1.png differ diff --git a/reference/catr_wms_get_layer.html b/reference/catr_wms_get_layer.html index dfacec3..062a0e3 100644 --- a/reference/catr_wms_get_layer.html +++ b/reference/catr_wms_get_layer.html @@ -226,7 +226,7 @@

Examples# With a spatial object parcels <- catr_wfs_get_parcels_neigh_parcel("3662303TF3136B", srs = 25830) -#> Warning: incomplete final line found on 'C:\Users\RUNNER~1\AppData\Local\Temp\Rtmps3uZME/file107c62013529.gml' +#> Warning: incomplete final line found on 'C:\Users\RUNNER~1\AppData\Local\Temp\Rtmps9KRQD/file490784f2a3a.gml' # Use styles diff --git a/reference/figures/README-wms-1.png b/reference/figures/README-wms-1.png index 0e2a890..7b2b20a 100644 Binary files a/reference/figures/README-wms-1.png and b/reference/figures/README-wms-1.png differ diff --git a/search.json b/search.json index 491e92c..4866928 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"ovccoordenadas-service","dir":"Articles","previous_headings":"","what":"OVCCoordenadas Service","title":"Get started","text":"OVCCoordenadas service allows retrieve coordinates known cadastral reference (geocoding). also possible retrieve cadastral references around specific pair coordinates (reverse geocoding). CatastRo returns results tibble format. functionality described detail corresponding vignette (see vignette(\"ovcservice\", package = \"CatastRo\")).","code":""},{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"inspire-services","dir":"Articles","previous_headings":"","what":"INSPIRE Services","title":"Get started","text":"INSPIRE Directive aims create European Union spatial data infrastructure purposes EU environmental policies policies activities may impact environment. European Spatial Data Infrastructure enable sharing environmental spatial information among public sector organisations, facilitate public access spatial information across Europe assist policy-making across boundaries. https://knowledge-base.inspire.ec.europa.eu/overview_en implementation INSPIRE directive Spanish Cadastre (see Catastro INSPIRE) allows retrieve spatial objects database cadastre: Vector objects: Parcels, addresses, buildings, cadastral zones . objects provided CatastRo sf objects provided sf package. Imagery: Image layers representing information vector objects. objects provided CatastRo SpatRaster objects provided terra package. Note coverage service 95% Spanish territory, excluding Basque Country Navarre1 independent cadastral offices. three types functions, one querying different service: ATOM service: ATOM service allows batch-download vector objects different cadastral elements specific municipality. WFS service: WFS service allows download vector objects specific cadastral elements. Note restrictions extension number elements query. batch-downloading ATOM service preferred. WMS service: service allows download georeferenced images different cadastral elements.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"working-with-layers","dir":"Articles","previous_headings":"Examples","what":"Working with layers","title":"Get started","text":"example demonstrate main capabilities package recreating cadastral map surroundings Santiago Bernabéu Stadium. make use WMS WFS services get different layers order show capabilities package: Example: Santiago Bernabeu","code":"# Extract building by bounding box # Check https://boundingbox.klokantech.com/ library(CatastRo) stadium <- catr_wfs_get_buildings_bbox( c(-3.6891446916, 40.4523311971, -3.687462138, 40.4538643165), srs = 4326 ) # Now extract cadastral parcels. We can use spatial objects on the query stadium_parcel <- catr_wfs_get_parcels_bbox(stadium) # Project for tiles stadium_parcel_pr <- sf::st_transform(stadium_parcel, 25830) # Extract imagery: Labels of the parcel labs <- catr_wms_get_layer(stadium_parcel_pr, what = \"parcel\", styles = \"BoundariesOnly\", srs = 25830 ) # Plot library(ggplot2) library(tidyterra) # For terra tiles ggplot() + geom_spatraster_rgb(data = labs) + geom_sf(data = stadium_parcel_pr, fill = NA, col = \"red\", linewidth = 2) + geom_sf(data = stadium, fill = \"red\", alpha = .5) + coord_sf(crs = 25830)"},{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"thematic-maps","dir":"Articles","previous_headings":"Examples","what":"Thematic maps","title":"Get started","text":"can create also thematic maps using information available spatial objects. produce visualization urban growth Granada using CatastRo, replicating map produced Dominic Royé post Visualize urban growth, using ATOM services. first place, extract coordinates city center Granada using mapSpain: Next step consists extracting buildings using ATOM service. use also function catr_get_code_from_coords() identify code Granada Cadastre, download buildings catr_atom_get_buildings(). Next step creating visualization limit analysis circle radius 1.5 km around city center: Minimal cadastral map Granada Let’s extract now construction year, available column beginning: Last step create groups based year create data visualization. use function cut() create classes every decade starting year 1900: Granada: Urban growth","code":"library(dplyr) library(sf) library(mapSpain) # Use mapSpain for getting the coords city <- esp_get_capimun(munic = \"^Granada$\") city_catr_code <- catr_get_code_from_coords(city) city_catr_code #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 GRANA… 18 900 18900 18 087 18087 GRAN… 18 900 18 #> # ℹ 1 more variable: cm city_bu <- catr_atom_get_buildings(city_catr_code$catrcode) buff <- city %>% # Adjust CRS to 25830: (Buildings) st_transform(st_crs(city_bu)) %>% # Buffer st_buffer(1500) # Cut buildings dataviz <- st_intersection(city_bu, buff) ggplot(dataviz) + geom_sf() # Extract 4 initial positions year <- substr(dataviz$beginning, 1, 4) # Replace all that doesn't look as a number with 0000 year[!(year %in% 0:2500)] <- \"0000\" # To numeric year <- as.integer(year) # New column dataviz <- dataviz %>% mutate(year = year) dataviz <- dataviz %>% mutate(year_cat = cut(year, breaks = c(0, seq(1900, 2030, by = 10)), dig.lab = 4 )) ggplot(dataviz) + geom_sf(aes(fill = year_cat), color = NA, na.rm = TRUE) + scale_fill_manual( values = hcl.colors(15, \"Spectral\"), na.translate = FALSE ) + theme_void() + labs(title = \"GRANADA\", fill = \"\") + theme( panel.background = element_rect(fill = \"black\"), plot.background = element_rect(fill = \"black\"), legend.justification = .5, legend.text = element_text( colour = \"white\", size = 12 ), plot.title = element_text( colour = \"white\", hjust = .5, margin = margin(t = 30), size = 30 ), plot.caption = element_text( colour = \"white\", margin = margin(b = 20), hjust = .5 ), plot.margin = margin(r = 40, l = 40) )"},{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"references","dir":"Articles","previous_headings":"","what":"References","title":"Get started","text":"Royé D (2019). “Visualize urban growth.” https://dominicroye.github.io/en/2019/visualize-urban-growth/.","code":""},{"path":"https://ropenspain.github.io/CatastRo/articles/ovcservice.html","id":"catastro-api","dir":"Articles","previous_headings":"","what":"CatastRo API","title":"OVCCoordenadas Web Service","text":"OVCCoordenadas Web Service can reached using following functions: catr_ovc_get_rccoor() catr_ovc_get_rccoor_distancia() catr_ovc_get_cpmrc()","code":""},{"path":"https://ropenspain.github.io/CatastRo/articles/ovcservice.html","id":"reverse-geocoding-cadastral-references","dir":"Articles","previous_headings":"","what":"Reverse Geocoding Cadastral References","title":"OVCCoordenadas Web Service","text":"function catr_ovc_get_rccoor() receives coordinates (lat lon) spatial reference system (srs) used express . return tibble cadastral reference property spatial point, including also information address (town street number). function accept srs argument following values: also possible get cadastral references square 50-meters’ side centered coordinates lat lon function catr_ovc_get_rccoor_distancia().","code":"result <- catr_ovc_get_rccoor( lat = 38.6196566583596, lon = -3.45624183836806, srs = \"4230\" ) data(catr_srs_values) # OVC valid codes library(dplyr) catr_srs_values %>% filter(ovc_service == TRUE) %>% select(SRS, Description) %>% knitr::kable() catr_ovc_get_rccoor_distancia( lat = 40.96002, lon = -5.663408, srs = \"4230\" ) %>% knitr::kable()"},{"path":"https://ropenspain.github.io/CatastRo/articles/ovcservice.html","id":"geocoding-a-cadastral-reference","dir":"Articles","previous_headings":"","what":"Geocoding a Cadastral Reference","title":"OVCCoordenadas Web Service","text":"opposite query possible well. given function catr_ovc_get_cpmrc() cadastral reference (rc), province (province) town (municipality), catr_ovc_get_cpmrc() returns coordinates lat lon particular srs besides address (town, street number). Neither province municipality required passed function, unless argument municipality NULL, case argument province needed passed. passed value province argument municipality argument NULL, function catr_ovc_get_cpmrc() throw message return tibble data. using rc result provided expected:","code":"catr_ovc_get_cpmrc( rc = \"13077A01800039\", srs = \"4230\", province = \"CIUDAD REAL\", municipality = \"SANTA CRUZ DE MUDELA\" ) %>% knitr::kable() catr_ovc_get_cpmrc( rc = \"13077A01800039\", municipality = \"SANTA CRUZ DE MUDELA\" ) %>% knitr::kable() #> Error code: 11. LA PROVINCIA ES OBLIGATORIA # No warning, get the result catr_ovc_get_cpmrc(rc = \"13077A01800039\") %>% knitr::kable()"},{"path":"https://ropenspain.github.io/CatastRo/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Ángel Delgado Panadero. Author, copyright holder. Iñaki Ucar. Contributor. Diego Hernangómez. Author, maintainer.","code":""},{"path":"https://ropenspain.github.io/CatastRo/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Delgado Panadero Á, Hernangómez D (2024). CatastRo: Interface API Sede Electrónica Del Catastro. doi:10.32614/CRAN.package.CatastRo, https://ropenspain.github.io/CatastRo/.","code":"@Manual{R-CatastRo, title = {{CatastRo}: Interface to the {API} Sede Electrónica Del Catastro}, author = {Ángel {Delgado Panadero} and Diego Hernangómez}, doi = {10.32614/CRAN.package.CatastRo}, year = {2024}, version = {0.4.0}, url = {https://ropenspain.github.io/CatastRo/}, abstract = {Access public spatial data available under the INSPIRE directive. Tools for downloading references and addresses of properties, as well as map images.}, }"},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"fixing-typos","dir":"","previous_headings":"","what":"Fixing typos","title":"CONTRIBUTING","text":"Small typos grammatical errors documentation may edited directly using GitHub web interface, long changes made source file. YES ✔️: edit roxygen comment .R file R/. ❌: edit .Rd file man/.","code":""},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"prerequisites","dir":"","previous_headings":"","what":"Prerequisites","title":"CONTRIBUTING","text":"make substantial pull request, always file issue make sure someone team agrees ’s problem. ’ve found bug, create associated issue illustrate bug minimal reprex.","code":""},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"pull-request-process","dir":"","previous_headings":"","what":"Pull request process","title":"CONTRIBUTING","text":"recommend create Git branch pull request (PR). Look R-CMD-check build status . making changes, run devtools::check() ensure new Notes, Warnings Errors appearing. recommend tidyverse style guide. also use styler package apply styles, please don’t restyle code nothing PR. use roxygen2. use testthat. Contributions test cases included easier accept. user-facing changes, add bullet top NEWS.md current development version header describing changes made followed GitHub username, links relevant issue(s)/PR(s).","code":""},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"prefer-to-email","dir":"","previous_headings":"","what":"Prefer to Email?","title":"CONTRIBUTING","text":"Email person listed maintainer DESCRIPTION file repo. Though note private discussions email don’t help others - course email totally warranted ’s sensitive problem kind.","code":""},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"thanks-for-contributing","dir":"","previous_headings":"","what":"Thanks for contributing!","title":"CONTRIBUTING","text":"contributing guide adapted tidyverse contributing guide available https://raw.githubusercontent.com/r-lib/usethis/master/inst/templates/tidy-contributing.md","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"catastro-","dir":"","previous_headings":"","what":"Interface to the API Sede Electronica Del Catastro","title":"Interface to the API Sede Electronica Del Catastro","text":"CatastRo package provide access different API services Spanish Cadastre. CatastRo possible download spatial objects (buildings cadastral parcels), maps geocode cadastral references.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Interface to the API Sede Electronica Del Catastro","text":"Install CatastRo CRAN: can install developing version CatastRo using r-universe: Alternatively, can install developing version CatastRo :","code":"install.packages(\"CatastRo\") # Install CatastRo in R: install.packages(\"CatastRo\", repos = c( \"https://ropenspain.r-universe.dev\", \"https://cloud.r-project.org\" ) ) remotes::install_github(\"rOpenSpain/CatastRo\", dependencies = TRUE)"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"package-api","dir":"","previous_headings":"","what":"Package API","title":"Interface to the API Sede Electronica Del Catastro","text":"functions CatastRo organized API endpoint. package naming convention catr_*api*_*description*.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"ovccoordenadas","dir":"","previous_headings":"Package API","what":"OVCCoordenadas","title":"Interface to the API Sede Electronica Del Catastro","text":"functions allow geocode reverse geocode cadastral references using OVCCoordenadas service. functions named catr_ovc_get_* returns tibble, provided package tibble. See vignette(\"ovcservice\", package = \"CatastRo\") functions described.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"inspire","dir":"","previous_headings":"Package API","what":"INSPIRE","title":"Interface to the API Sede Electronica Del Catastro","text":"functions return spatial object (formats provided sf terra using Catastro INSPIRE service. Note coverage service 95% Spanish territory, excluding Basque Country Navarre1 independent cadastral offices. three types functions, one querying different service:","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"atom-service","dir":"","previous_headings":"Package API > INSPIRE","what":"ATOM service","title":"Interface to the API Sede Electronica Del Catastro","text":"ATOM service allows batch-download vector objects different cadastral elements specific municipality. result provided sf objects (See sf package). functions named catr_atom_get_xxx.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"wfs-service","dir":"","previous_headings":"Package API > INSPIRE","what":"WFS service","title":"Interface to the API Sede Electronica Del Catastro","text":"WFS service allows download vector objects specific cadastral elements. result provided sf class objects (see sf package). Note limitations extension number elements query. batch-downloading ATOM service preferred. functions named catr_wms_get_xxx.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"wms-service","dir":"","previous_headings":"Package API > INSPIRE","what":"WMS service","title":"Interface to the API Sede Electronica Del Catastro","text":"service allows download georeferenced images different cadastral elements. result raster format provides terra. single function querying service: catr_wms_get_layer().","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"terms-and-conditions-of-use","dir":"","previous_headings":"Package API > INSPIRE","what":"Terms and conditions of use","title":"Interface to the API Sede Electronica Del Catastro","text":"Please check downloading provisions service.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"examples","dir":"","previous_headings":"","what":"Examples","title":"Interface to the API Sede Electronica Del Catastro","text":"script highlights features CatastRo :","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"geocode-a-cadastral-reference","dir":"","previous_headings":"Examples","what":"Geocode a cadastral reference","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"library(CatastRo) catr_ovc_get_cpmrc(rc = \"13077A01800039\") #> # A tibble: 1 × 10 #> xcoord ycoord refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 -3.46 38.6 13077A018… DS DIS… 13077… 18000… -3.4575… 38.6184… EPSG:4… DS D…"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"extract-a-cadastral-reference-from-a-given-set-of-coordinates","dir":"","previous_headings":"Examples","what":"Extract a cadastral reference from a given set of coordinates","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"catr_ovc_get_rccoor( lat = 38.6196566583596, lon = -3.45624183836806, srs = \"4230\" ) #> # A tibble: 1 × 8 #> refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 13077A01800039 DS DISEMINADO P… 13077… 18000… -3.46 38.6 EPSG:4… DS D…"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"extract-geometries-using-the-atom-service","dir":"","previous_headings":"Examples","what":"Extract geometries using the ATOM service","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"bu <- catr_atom_get_buildings(\"Nava de la Asuncion\", to = \"Segovia\") # Map library(ggplot2) ggplot(bu) + geom_sf(aes(fill = currentUse), col = NA) + coord_sf( xlim = c(374500, 375500), ylim = c(4556500, 4557500) ) + scale_fill_manual(values = hcl.colors(6, \"Dark 3\")) + theme_minimal() + ggtitle(\"Nava de la Asunción, Segovia\")"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"extract-geometries-using-the-wfs-service","dir":"","previous_headings":"Examples","what":"Extract geometries using the WFS service","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"wfs_get_buildings <- catr_wfs_get_buildings_bbox( c(-5.569, 42.598, -5.564, 42.601), srs = 4326 ) # Map ggplot(wfs_get_buildings) + geom_sf() + ggtitle(\"Leon Cathedral, Spain\")"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"extract-maps-using-the-wms-service","dir":"","previous_headings":"Examples","what":"Extract maps using the WMS service","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"# For tiles better project wfs_get_buildings_pr <- sf::st_transform(wfs_get_buildings, 25830) wms_bu <- catr_wms_get_layer(wfs_get_buildings_pr, srs = 25830, bbox_expand = 0.2 ) # Map # Load tidyterra library(tidyterra) ggplot() + geom_spatraster_rgb(data = wms_bu) + geom_sf(data = wfs_get_buildings_pr, fill = \"red\", alpha = 0.6)"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"a-note-on-caching","dir":"","previous_headings":"","what":"A note on caching","title":"Interface to the API Sede Electronica Del Catastro","text":"data sets tiles may size larger 50MB. can use CatastRo create local repository given local directory passing following option: option set, CatastRo look cached file load , speeding process.","code":"catr_set_cache_dir(\"./path/to/location\")"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Interface to the API Sede Electronica Del Catastro","text":"Delgado Panadero Á, Hernangómez D (2024). CatastRo: Interface API Sede Electrónica Del Catastro. doi:10.32614/CRAN.package.CatastRo, https://ropenspain.github.io/CatastRo/. BibTeX entry LaTeX users :","code":"@Manual{R-CatastRo, title = {{CatastRo}: Interface to the {API} Sede Electrónica Del Catastro}, author = {Ángel {Delgado Panadero} and Diego Hernangómez}, doi = {10.32614/CRAN.package.CatastRo}, year = {2024}, version = {0.4.0}, url = {https://ropenspain.github.io/CatastRo/}, abstract = {Access public spatial data available under the INSPIRE directive. Tools for downloading references and addresses of properties, as well as map images.}, }"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"contribute","dir":"","previous_headings":"","what":"Contribute","title":"Interface to the API Sede Electronica Del Catastro","text":"Check GitHub page source code.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/CatastRo-package.html","id":null,"dir":"Reference","previous_headings":"","what":"CatastRo: Interface to the API 'Sede Electronica Del Catastro' — CatastRo-package","title":"CatastRo: Interface to the API 'Sede Electronica Del Catastro' — CatastRo-package","text":"Access public spatial data available 'INSPIRE' directive. Tools downloading references addresses properties, well map images.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/CatastRo-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"CatastRo: Interface to the API 'Sede Electronica Del Catastro' — CatastRo-package","text":"Maintainer: Diego Hernangómez diego.hernangomezherrero@gmail.com (ORCID) Authors: Ángel Delgado Panadero delgadopanadero@gmail.com (ORCID) [copyright holder] contributors: Iñaki Ucar (ORCID) [contributor]","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"Get spatial data addresses belonging single municipality using INSPIRE ATOM service. Additionally, function also returns corresponding street information fields prefix tfname_*.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"","code":"catr_atom_get_address( munic, to = NULL, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"munic Municipality extract, can part string cadastral code. See catr_atom_search_munic() getting cadastral codes. Optional parameter defining Territorial Office munic belongs. parameter helper narrowing search. cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"","code":"# \\donttest{ s <- catr_atom_get_address(\"Melque\", to = \"Segovia\" ) library(ggplot2) ggplot(s) + geom_sf(aes(color = specification)) + coord_sf( xlim = c(376200, 376850), ylim = c(4545000, 4546000) ) + labs( title = \"Addresses\", subtitle = \"Melque de Cercos, Segovia\" ) # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"Create database containing urls provided INSPIRE ATOM service Spanish Cadastre extracting Addresses. catr_atom_get_address_db_all() provides top-level table including information territorial offices (except Basque Country Navarre) listing municipalities included office. catr_atom_get_address_db_to() provides table specified territorial office including information municipalities office.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"","code":"catr_atom_get_address_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE ) catr_atom_get_address_db_to( to, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"https://www.catastro.hacienda.gob.es/INSPIRE/Addresses/ES.SDGC.AD.atom.xml","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE. Territorial office. can type string, function perform search using base::grep().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"tibble information requested. catr_atom_get_address_db_all() includes following fields: territorial_office: Territorial office, corresponding province Spain expect Basque Country Navarre. url: ATOM url corresponding territorial office. munic: Name municipality. date: Reference date data. Note information service updated twice year. catr_atom_get_address_db_to() includes following fields: munic: Name municipality. url: url downloading information corresponding municipality. date: Reference date data. Note information service updated twice year.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"","code":"# \\donttest{ catr_atom_get_address_db_all() #> # A tibble: 7,611 × 4 #> territorial_office url munic date #> #> 1 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 2 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 3 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 4 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 5 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 6 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 7 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 8 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 9 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> 10 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> # ℹ 7,601 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"Get spatial data buildings belonging single municipality using INSPIRE ATOM service.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"","code":"catr_atom_get_buildings( munic, to = NULL, what = c(\"building\", \"buildingpart\", \"other\"), cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"munic Municipality extract, can part string cadastral code. See catr_atom_search_munic() getting cadastral codes. Optional parameter defining Territorial Office munic belongs. parameter helper narrowing search. Information load. : \"building\" buildings. \"buildingpart\" parts building. \"\" others elements, swimming pools, etc. cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"","code":"# \\donttest{ s <- catr_atom_get_buildings(\"Nava de la Asuncion\", to = \"Segovia\", what = \"building\" ) library(ggplot2) ggplot(s) + geom_sf() + coord_sf( xlim = c(374500, 375500), ylim = c(4556500, 4557500) ) + labs( title = \"Buildings\", subtitle = \"Nava de la Asuncion, Segovia\" ) # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"Create database containing urls provided INSPIRE ATOM service Spanish Cadastre extracting buildings. catr_atom_get_buildings_db_all() provides top-level table including information territorial offices (except Basque Country Navarre) listing municipalities included office. catr_atom_get_buildings_db_to() provides table specified territorial office including information municipalities office.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"","code":"catr_atom_get_buildings_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE ) catr_atom_get_buildings_db_to( to, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"https://www.catastro.hacienda.gob.es/INSPIRE/buildings/ES.SDGC.BU.atom.xml","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE. Territorial office. can type string, function perform search using base::grep().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"tibble information requested. catr_atom_get_buildings_db_all() includes following fields: territorial_office: Territorial office, corresponding province Spain expect Basque Country Navarre. url: ATOM url corresponding territorial office. munic: Name municipality. date: Reference date data. Note information service updated twice year. catr_atom_get_buildings_db_to() includes following fields: munic: Name municipality. url: url downloading information corresponding municipality. date: Reference date data. Note information service updated twice year.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"","code":"# \\donttest{ catr_atom_get_buildings_db_all() #> # A tibble: 7,611 × 4 #> territorial_office url munic date #> #> 1 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 2 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 3 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 4 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 5 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 6 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 7 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 8 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 9 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> 10 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> # ℹ 7,601 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"Get spatial data cadastral parcels belonging single municipality using INSPIRE ATOM service.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"","code":"catr_atom_get_parcels( munic, to = NULL, what = \"parcel\", cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"munic Municipality extract, can part string cadastral code. See catr_atom_search_munic() getting cadastral codes. Optional parameter defining Territorial Office munic belongs. parameter helper narrowing search. Information load. \"parcel\" cadastral parcels \"zoning\" cadastral zoning. cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"","code":"# \\donttest{ s <- catr_atom_get_parcels(\"Melque\", to = \"Segovia\", what = \"parcel\" ) library(ggplot2) ggplot(s) + geom_sf() + labs( title = \"Cadastral Zoning\", subtitle = \"Melque de Cercos, Segovia\" ) # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"Create database containing urls provided INSPIRE ATOM service Spanish Cadastre extracting cadastral parcels. catr_atom_get_parcels_db_all() provides top-level table including information territorial offices (except Basque Country Navarre) listing municipalities included office. catr_atom_get_parcels_db_to() provides table specified territorial office including information municipalities office.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"","code":"catr_atom_get_parcels_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE ) catr_atom_get_parcels_db_to( to, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"https://www.catastro.hacienda.gob.es/INSPIRE/CadastralParcels/ES.SDGC.CP.atom.xml","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE. Territorial office. can type string, function perform search using base::grep().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"tibble information requested. catr_atom_get_parcels_db_all() includes following fields: territorial_office: Territorial office, corresponding province Spain expect Basque Country Navarre. url: ATOM url corresponding territorial office. munic: Name municipality. date: Reference date data. Note information service updated twice year. catr_atom_get_parcels_db_to() includes following fields: munic: Name municipality. url: url downloading information corresponding municipality. date: Reference date data. Note information service updated twice year.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"","code":"# \\donttest{ catr_atom_get_parcels_db_all() #> # A tibble: 7,611 × 4 #> territorial_office url munic date #> #> 1 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 2 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 3 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 4 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 5 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 6 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 7 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 8 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 9 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> 10 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> # ℹ 7,601 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"Search municipality (string, part string code) get corresponding coding per Cadastre.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"","code":"catr_atom_search_munic( munic, to = NULL, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"munic Municipality extract, can part string cadastral code. Optional parameter defining Territorial Office munic belongs. parameter helper narrowing search. cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"tibble.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"","code":"# \\donttest{ catr_atom_search_munic(\"Mad\") #> # A tibble: 40 × 3 #> territorial_office munic catrcode #> #> 1 Territorial office 02 Albacete 02045-MADRIGUERAS 02045 #> 2 Territorial office 02 Albacete 02058-PATERNA DEL MADERA 02058 #> 3 Territorial office 05 Avila 05114-MADRIGAL DE LAS ALTAS TORRES 05114 #> 4 Territorial office 09 Burgos 09178-HUMADA 09178 #> 5 Territorial office 09 Burgos 09187-JARAMILLO QUEMADO 09187 #> 6 Territorial office 09 Burgos 09200-MADRIGAL DEL MONTE 09200 #> 7 Territorial office 09 Burgos 09201-MADRIGALEJO DEL MONTE 09201 #> 8 Territorial office 09 Burgos 09287-QUEMADA 09287 #> 9 Territorial office 10 Cáceres 10114-MADRIGAL DE LA VERA 10114 #> 10 Territorial office 10 Cáceres 10115-MADRIGALEJO 10115 #> # ℹ 30 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":null,"dir":"Reference","previous_headings":"","what":"Clear your CatastRo cache dir — catr_clear_cache","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"Use function caution. function clear cached data configuration, specifically: Deletes CatastRo config directory (rappdirs::user_config_dir(\"CatastRo\", \"R\")). Deletes cache_dir directory. Deletes values stored Sys.getenv(\"CATASTROESP_CACHE_DIR\").","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"","code":"catr_clear_cache(config = FALSE, cached_data = TRUE, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"config TRUE, delete configuration folder CatastRo. cached_data set TRUE, delete cache_dir content. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"Invisible. function called side effects.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"overkill function intended reset status never installed /used CatastRo.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"","code":"# Don't run this! It would modify your current state # \\dontrun{ catr_clear_cache(verbose = TRUE) #> CatastRo cached data deleted: C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps3uZME/CatastRo # } Sys.getenv(\"CATASTROESP_CACHE_DIR\") #> [1] \"\""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":null,"dir":"Reference","previous_headings":"","what":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"function takes input pair coordinates sf object returns corresponding municipality code coordinates. See also mapSpain::esp_get_munic_siane() catr_ovc_get_cod_munic().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"","code":"catr_get_code_from_coords(x, srs, verbose = FALSE, cache_dir = NULL, ...)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"x : pair coordinates c(x,y). sf object. See Details. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. verbose Logical, displays information. Useful debugging, default FALSE. cache_dir path cache directory. NULL value (default) function store cached files tempdir. ... Arguments passed mapSpain::esp_get_munic_siane year Release year. See Details years available.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"tibble format described catr_ovc_get_cod_munic().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"x numeric vector, make sure srs matches coordinate values. x sf object, first value used. function extract coordinates using sf::st_centroid(x, of_largest_polygon = TRUE).","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"","code":"# \\donttest{ # Use with coords catr_get_code_from_coords(c(-16.25462, 28.46824), srs = 4326) #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 SANTA… 38 900 38900 38 038 38038 SANT… 38 900 38 #> # ℹ 1 more variable: cm # Use with sf prov <- mapSpain::esp_get_prov(\"Caceres\") catr_get_code_from_coords(prov) #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 MONROY 10 128 10128 10 125 10125 MONR… 10 128 10 #> # ℹ 1 more variable: cm # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"Implementation OVCCallejero service ConsultaMunicipioCodigos. Return names codes municipality. Returns codes per Cadastre per INE (National Statistics Institute).","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"","code":"catr_ovc_get_cod_munic(cpro, cmun = NULL, cmun_ine = NULL, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"cpro code province, provided catr_ovc_get_cod_provinces(). cmun Code municipality, recorded Spanish Cadastre. cmun_ine Code municipality, recorded National Statistics Institute. See INE: List municipalities verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"tibble. See Details","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"Parameter cpro mandatory. Either cmun cmun_ine provided. successful query, function returns tibble one row including following columns: munic: Name municipality per Cadastre. catr_to: Cadastral territorial office code. catr_munic: Municipality code recorded Cadastre. catrcode: Full Cadastral code municipality. cpro: Province code per INE. catr_munic: Municipality code per INE. catrcode: Full INE code municipality. Rest fields: Check API Docs.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"ConsultaMunicipioCodigos.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"","code":"# \\donttest{ # Get municipality by cadastal code ab <- catr_ovc_get_cod_munic(2, 900) ab #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 ALBAC… 02 900 02900 02 003 02003 ALBA… 2 900 2 #> # ℹ 1 more variable: cm # Same query using the INE code ab2 <- catr_ovc_get_cod_munic(2, cmun_ine = 3) ab2 #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 ALBAC… 02 900 02900 02 003 02003 ALBA… 2 900 2 #> # ℹ 1 more variable: cm # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"Implementation OVCCallejero service ConsultaProvincia. Return list provinces included Spanish Cadastre.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"","code":"catr_ovc_get_cod_provinces(verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"tibble.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"ConsultaProvincia.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"","code":"# \\donttest{ catr_ovc_get_cod_provinces() #> # A tibble: 48 × 2 #> cpine np #> #> 1 15 A CORUÑA #> 2 03 ALACANT #> 3 02 ALBACETE #> 4 04 ALMERIA #> 5 33 ASTURIAS #> 6 05 AVILA #> 7 06 BADAJOZ #> 8 08 BARCELONA #> 9 09 BURGOS #> 10 10 CACERES #> # ℹ 38 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"Implementation OVCCoordenadas service Consulta CPMRC. Return coordinates specific cadastral reference.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"","code":"catr_ovc_get_cpmrc( rc, srs = 4326, province = NULL, municipality = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"rc cadastral reference geocoded. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically ovc_service column. province, municipality Optional, used narrowing search. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"tibble. See Details","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"API provide result, function returns tibble input parameters . successful query, function returns tibble one row cadastral reference, including following columns: xcoord, ycoord: X Y coordinates specified SRS. refcat: Cadastral Reference. address: Address recorded Cadastre. Rest fields: Check API Docs.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"Consulta CPMRC.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"","code":"# \\donttest{ # using all the arguments catr_ovc_get_cpmrc(\"13077A01800039\", 4230, province = \"CIUDAD REAL\", municipality = \"SANTA CRUZ DE MUDELA\" ) #> # A tibble: 1 × 10 #> xcoord ycoord refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 -3.46 38.6 13077A018… DS DIS… 13077… 18000… -3.4562… 38.6196… EPSG:4… DS D… # only the cadastral reference catr_ovc_get_cpmrc(\"9872023VH5797S\") #> # A tibble: 1 × 10 #> xcoord ycoord refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 -3.46 38.6 9872023VH… CL GLO… 98720… VH579… -3.4632… 38.6401… EPSG:4… CL G… # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"Implementation OVCCoordenadas service Consulta RCCOOR. Return cadastral reference found set specific coordinates.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"","code":"catr_ovc_get_rccoor(lat, lon, srs = 4326, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"lat Latitude use query. specified CRS/SRS specified srs. lon Longitude use query. specified CRS/SRS specified srs. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically ovc_service column. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"tibble. See Details","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"API provide result, function returns tibble input parameters . successful query, function returns tibble one row cadastral reference, including following columns: geo.xcen, geo.ycen, geo.srs: Input parameters query. refcat: Cadastral Reference. address: Address recorded Cadastre. Rest fields: Check API Docs.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"Consulta RCCOOR.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"","code":"# \\donttest{ catr_ovc_get_rccoor( lat = 38.6196566583596, lon = -3.45624183836806, srs = 4326 ) #> # A tibble: 1 × 8 #> refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 13077A01800011 DS DISEMINADO P… 13077… 18000… -3.46 38.6 EPSG:4… DS D… # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"Implementation OVCCoordenadas service Consulta RCCOOR Distancia. Return cadastral reference found set coordinates. cadastral references found, API returns list cadastral references found area 50 square meters around requested coordinates.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"","code":"catr_ovc_get_rccoor_distancia(lat, lon, srs = 4326, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"lat Latitude use query. specified CRS/SRS specified srs. lon Longitude use query. specified CRS/SRS specified srs. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically ovc_service column. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"tibble. See Details","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"API provide result, function returns tibble input parameters . successful query, function returns tibble one row cadastral reference, including following columns: geo.xcen, geo.ycen, geo.srs: Input parameters query. refcat: Cadastral reference. address: Address recorded Cadastre. cmun_ine: Municipality code registered INE (National Statistics Institute). Rest fields: Check API Docs.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"Consulta RCCOOR Distancia.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"","code":"# \\donttest{ catr_ovc_get_rccoor_distancia( lat = 40.963200, lon = -5.671420, srs = 4326 ) #> # A tibble: 7 × 14 #> geo.xcen geo.ycen geo.srs refcat address cmun_ine pc.pc1 pc.pc2 dt.loine.cp #> #> 1 -5.67 41.0 EPSG:4326 528380… CL SAN… 37274 52838… TL735… 37 #> 2 -5.67 41.0 EPSG:4326 528383… CT SAN… 37274 52838… TL735… 37 #> 3 -5.67 41.0 EPSG:4326 528341… CL SAN… 37274 52834… TL735… 37 #> 4 -5.67 41.0 EPSG:4326 538380… CT SAN… 37274 53838… TL735… 37 #> 5 -5.67 41.0 EPSG:4326 538480… CL GAR… 37274 53848… TL735… 37 #> 6 -5.67 41.0 EPSG:4326 538380… CL ENC… 37274 53838… TL735… 37 #> 7 -5.67 41.0 EPSG:4326 528383… CL SAN… 37274 52838… TL735… 37 #> # ℹ 5 more variables: dt.loine.cm , dt.lourb.dir.cv , #> # dt.lourb.dir.pnp , ldt , dis # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":null,"dir":"Reference","previous_headings":"","what":"Set your CatastRo cache dir — catr_set_cache_dir","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"catr_set_cache_dir() store cache_dir path local machine load future sessions. Alternatively, can store cache_dir manually following options: Run Sys.setenv(CATASTROESP_CACHE_DIR = \"cache_dir\"). need run command session (Similar install = FALSE). Write line .Renviron file: CATASTROESP_CACHE_DIR = \"value_for_cache_dir\" (behavior install = TRUE). store cache_dir permanently. catr_detect_cache_dir() detects returns path current cache_dir.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"","code":"catr_set_cache_dir( cache_dir = NULL, overwrite = FALSE, install = FALSE, verbose = TRUE ) catr_detect_cache_dir(...)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"cache_dir path cache directory. NULL value (default) function store cached files tempdir. overwrite set TRUE, overwrite existing CATASTROESP_CACHE_DIR already local machine. install TRUE, install key local machine use future sessions. Defaults FALSE. cache_dir FALSE parameter set FALSE automatically. verbose Logical, displays information. Useful debugging, default FALSE. ... Ignored","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"catr_set_cache_dir() called side effects, returns (invisible) character path cache_dir. catr_detect_cache_dir() returns path cache_dir used session","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"about-caching","dir":"Reference","previous_headings":"","what":"About caching","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"Sometimes cached files may corrupt. case, try re-downloading data setting update_cache = TRUE. experience problem download, try download corresponding file method save cache_dir. Use option verbose = TRUE debugging API query.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"","code":"# Don't run this! It would modify your current state # \\dontrun{ catr_set_cache_dir(verbose = TRUE) #> Using a temporary cache dir. Set 'cache_dir' to a value for store permanently #> CatastRo cache dir is: C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps3uZME/CatastRo # } catr_detect_cache_dir() #> [1] \"C:\\\\Users\\\\RUNNER~1\\\\AppData\\\\Local\\\\Temp\\\\Rtmps3uZME/CatastRo\""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":null,"dir":"Reference","previous_headings":"","what":"Reference SRS codes for CatastRo APIs — catr_srs_values","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"tibble including valid SRS (also known CRS) values may used API service. values provided EPSG codes.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"tibble 16 rows columns: SRS Spatial Reference System (CRS) value, identified corresponding EPSG code. Description Description SRS/EPSG code. ovc_service Logical. code valid OVC services? wfs_service Logical. code valid INSPIRE WFS services?","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"Table: Content catr_srs_values","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"OVCCoordenadas. INSPIRE WFS Service.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"","code":"data(\"catr_srs_values\") # OVC valid codes library(dplyr) #> #> Attaching package: 'dplyr' #> The following objects are masked from 'package:stats': #> #> filter, lag #> The following objects are masked from 'package:base': #> #> intersect, setdiff, setequal, union catr_srs_values %>% filter(ovc_service == TRUE) #> # A tibble: 14 × 4 #> SRS Description ovc_service wfs_service #> #> 1 4230 Geográficas en ED 50 TRUE FALSE #> 2 4258 Geográficas en ETRS89 TRUE TRUE #> 3 4326 Geográficas en WGS 80 TRUE TRUE #> 4 23029 UTM huso 29N en ED50 TRUE FALSE #> 5 23030 UTM huso 30N en ED50 TRUE FALSE #> 6 23031 UTM huso 31N en ED50 TRUE FALSE #> 7 25829 UTM huso 29N en ETRS89 TRUE TRUE #> 8 25830 UTM huso 30N en ETRS89 TRUE TRUE #> 9 25831 UTM huso 31N en ETRS89 TRUE TRUE #> 10 32627 UTM huso 27N en WGS 84 TRUE FALSE #> 11 32628 UTM huso 28N en WGS 84 TRUE FALSE #> 12 32629 UTM huso 29N en WGS 84 TRUE FALSE #> 13 32630 UTM huso 30N en WGS 84 TRUE FALSE #> 14 32631 UTM huso 31N en WGS 84 TRUE FALSE # WFS valid codes catr_srs_values %>% filter(wfs_service == TRUE) #> # A tibble: 7 × 4 #> SRS Description ovc_service wfs_service #> #> 1 3785 Web Mercator FALSE TRUE #> 2 3857 Web Mercator FALSE TRUE #> 3 4258 Geográficas en ETRS89 TRUE TRUE #> 4 4326 Geográficas en WGS 80 TRUE TRUE #> 5 25829 UTM huso 29N en ETRS89 TRUE TRUE #> 6 25830 UTM huso 30N en ETRS89 TRUE TRUE #> 7 25831 UTM huso 31N en ETRS89 TRUE TRUE # Use with sf::st_crs() catr_srs_values %>% filter(wfs_service == TRUE & ovc_service == TRUE) %>% print() %>% # First value slice_head(n = 1) %>% pull(SRS) %>% # As crs sf::st_crs(.) #> # A tibble: 5 × 4 #> SRS Description ovc_service wfs_service #> #> 1 4258 Geográficas en ETRS89 TRUE TRUE #> 2 4326 Geográficas en WGS 80 TRUE TRUE #> 3 25829 UTM huso 29N en ETRS89 TRUE TRUE #> 4 25830 UTM huso 30N en ETRS89 TRUE TRUE #> 5 25831 UTM huso 31N en ETRS89 TRUE TRUE #> Coordinate Reference System: #> User input: EPSG:4258 #> wkt: #> GEOGCRS[\"ETRS89\", #> ENSEMBLE[\"European Terrestrial Reference System 1989 ensemble\", #> MEMBER[\"European Terrestrial Reference Frame 1989\"], #> MEMBER[\"European Terrestrial Reference Frame 1990\"], #> MEMBER[\"European Terrestrial Reference Frame 1991\"], #> MEMBER[\"European Terrestrial Reference Frame 1992\"], #> MEMBER[\"European Terrestrial Reference Frame 1993\"], #> MEMBER[\"European Terrestrial Reference Frame 1994\"], #> MEMBER[\"European Terrestrial Reference Frame 1996\"], #> MEMBER[\"European Terrestrial Reference Frame 1997\"], #> MEMBER[\"European Terrestrial Reference Frame 2000\"], #> MEMBER[\"European Terrestrial Reference Frame 2005\"], #> MEMBER[\"European Terrestrial Reference Frame 2014\"], #> ELLIPSOID[\"GRS 1980\",6378137,298.257222101, #> LENGTHUNIT[\"metre\",1]], #> ENSEMBLEACCURACY[0.1]], #> PRIMEM[\"Greenwich\",0, #> ANGLEUNIT[\"degree\",0.0174532925199433]], #> CS[ellipsoidal,2], #> AXIS[\"geodetic latitude (Lat)\",north, #> ORDER[1], #> ANGLEUNIT[\"degree\",0.0174532925199433]], #> AXIS[\"geodetic longitude (Lon)\",east, #> ORDER[2], #> ANGLEUNIT[\"degree\",0.0174532925199433]], #> USAGE[ #> SCOPE[\"Spatial referencing.\"], #> AREA[\"Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Cyprus; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State.\"], #> BBOX[32.88,-16.1,84.73,40.18]], #> ID[\"EPSG\",4258]]"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":null,"dir":"Reference","previous_headings":"","what":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"Get spatial data addresses WFS Service allows perform several types queries: bounding box: Implemented catr_wfs_get_address_bbox(). Extract objects included bounding box provided. See Details. street code: Implemented catr_wfs_get_address_codvia(). Extract objects specific addresses. cadastral reference: Implemented catr_wfs_get_address_rc(). Extract objects specific cadastral references postal codes: Implemented catr_wfs_get_address_postalcode(). Extract objects specific cadastral references","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"","code":"catr_wfs_get_address_bbox(x, srs, verbose = FALSE) catr_wfs_get_address_codvia(codvia, del, mun, srs = NULL, verbose = FALSE) catr_wfs_get_address_rc(rc, srs = NULL, verbose = FALSE) catr_wfs_get_address_postalcode(postalcode, srs = NULL, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"x See Details. : numeric vector length 4 coordinates defines bounding box: c(xmin, ymin, xmax, ymax) sf/sfc object, provided sf package. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. verbose Logical, displays information. Useful debugging, default FALSE. codvia Cadastral street code. del Cadastral office code. mun Cadastral municipality code. rc cadastral reference extracted. postalcode Postal code.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"x numeric vector, make sure srs matches coordinate values. Additionally, srs correspond geographic reference system (4326, 4258), function queries bounding box EPSG:3857 - Web Mercator, overcome potential bug API side. x sf object, value srs ignored. case, bounding box sf object used query (see sf::st_bbox()). query performed using EPSG:3857 (Web Mercator). result provided always SRS sf object provided input.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"api-limits","dir":"Reference","previous_headings":"","what":"API Limits","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"API service limited bounding box 4km2 maximum 5.000 elements.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"","code":"# \\donttest{ ad <- catr_wfs_get_address_bbox( c( 233673, 4015968, 233761, 4016008 ), srs = 25830 ) library(ggplot2) ggplot(ad) + geom_sf() # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":null,"dir":"Reference","previous_headings":"","what":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"Get spatial data buildings. WFS Service allows perform two types queries: bounding box: Implemented catr_wfs_get_buildings_bbox(). Extract objects included bounding box provided. See Details. cadastral reference: Implemented catr_wfs_get_buildings_rc(). Extract objects specific cadastral references.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"","code":"catr_wfs_get_buildings_bbox(x, what = \"building\", srs, verbose = FALSE) catr_wfs_get_buildings_rc(rc, what = \"building\", srs = NULL, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"x See Details. : numeric vector length 4 coordinates defines bounding box: c(xmin, ymin, xmax, ymax) sf/sfc object, provided sf package. Information load. : \"building\" buildings. \"buildingpart\" parts building. \"\" others elements, swimming pools, etc. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. verbose Logical, displays information. Useful debugging, default FALSE. rc cadastral reference extracted.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"x numeric vector, make sure srs matches coordinate values. Additionally, srs correspond geographic reference system (4326, 4258), function queries bounding box EPSG:3857 - Web Mercator, overcome potential bug API side. result provided always SRS provided srs. x sf object, value srs ignored. query performed using EPSG:3857 (Web Mercator) spatial object projected back SRS initial object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"api-limits","dir":"Reference","previous_headings":"","what":"API Limits","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"API service limited bounding box 4km2 maximum 5.000 elements.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"","code":"# \\donttest{ # Using bbox building <- catr_wfs_get_buildings_bbox( c( 376550, 4545424, 376600, 4545474 ), srs = 25830 ) library(ggplot2) ggplot(building) + geom_sf() + labs(title = \"Search using bbox\") # Using rc rc <- catr_wfs_get_buildings_rc(\"6656601UL7465N\") library(ggplot2) ggplot(rc) + geom_sf() + labs(title = \"Search using rc\") # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":null,"dir":"Reference","previous_headings":"","what":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"Get spatial data cadastral parcels zones. WFS Service allows perform several types queries: bounding box: Implemented catr_wfs_get_parcels_bbox(). Extract objects included bounding box provided. See Details. zoning: Implemented catr_wfs_get_parcels_zoning(). Extract objects specific cadastral zone. cadastral parcel: Implemented catr_wfs_get_parcels_parcel(). Extract cadastral parcels specific cadastral reference. Neighbor cadastral parcels: Implemented catr_wfs_get_parcels_neigh_parcel(). Extract neighbor cadastral parcels specific cadastral reference. Cadastral parcels zoning: Implemented catr_wfs_get_parcels_parcel_zoning(). Extract cadastral parcels specific cadastral zone.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"","code":"catr_wfs_get_parcels_bbox(x, what = \"parcel\", srs, verbose = FALSE) catr_wfs_get_parcels_zoning(cod_zona, srs = NULL, verbose = FALSE) catr_wfs_get_parcels_parcel(rc, srs = NULL, verbose = FALSE) catr_wfs_get_parcels_neigh_parcel(rc, srs = NULL, verbose = FALSE) catr_wfs_get_parcels_parcel_zoning(cod_zona, srs = NULL, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"x See Details. : numeric vector length 4 coordinates defines bounding box: c(xmin, ymin, xmax, ymax) sf/sfc object, provided sf package. Information load. \"parcel\" cadastral parcels \"zoning\" cadastral zoning. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. verbose Logical, displays information. Useful debugging, default FALSE. cod_zona Cadastral zone code. rc cadastral reference extracted.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"x numeric vector, make sure srs matches coordinate values. Additionally, srs correspond geographic reference system (4326, 4258), function queries bounding box EPSG:3857 - Web Mercator, overcome potential bug API side. result provided always SRS provided srs. x sf object, value srs ignored. query performed using EPSG:3857 (Web Mercator) spatial object projected back SRS initial object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"api-limits","dir":"Reference","previous_headings":"","what":"API Limits","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"API service limited following constrains: \"parcel: Bounding box 1km2 maximum 500. elements. \"zoning\": Bounding box 25km2 maximum 500 elements.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"","code":"# \\donttest{ cp <- catr_wfs_get_parcels_bbox( c( 233673, 4015968, 233761, 4016008 ), srs = 25830 ) #> Warning: incomplete final line found on 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps3uZME/file107c749c4f70.gml' library(ggplot2) ggplot(cp) + geom_sf() # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":null,"dir":"Reference","previous_headings":"","what":"WMS INSPIRE: Download map images — catr_wms_get_layer","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"Get geotagged images Spanish Cadastre. function wrapper mapSpain::esp_getTiles().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"","code":"catr_wms_get_layer( x, srs, what = c(\"building\", \"buildingpart\", \"parcel\", \"zoning\", \"address\", \"admboundary\", \"admunit\"), styles = \"default\", update_cache = FALSE, cache_dir = NULL, verbose = FALSE, crop = FALSE, options = NULL, ... )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"x See Details. : numeric vector length 4 coordinates defines bounding box: c(xmin, ymin, xmax, ymax) sf/sfc object, provided sf package. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. Layer extracted, see Details. styles Style WMS layer. See Details. update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE. crop TRUE results cropped specified x extent, FALSE otherwise. x sf object one POINT, crop set FALSE. options named list containing additional options pass query. ... Arguments passed mapSpain::esp_getTiles res Resolution (pixels) final tile. valid WMS. bbox_expand numeric value indicates expansion percentage bounding box x. transparent Logical. Provides transparent background, supported. Depends selected provider type. mask TRUE result masked x.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"SpatRaster returned, 3 (RGB) 4 (RGBA) layers, see terra::RGB().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"x numeric vector, make sure srs matches coordinate values. x sf object, value srs ignored. query performed using EPSG:3857 (Web Mercator) tile projected back SRS x. case tile looks deformed, try either providing x specify SRS requested tile via srs parameter, ideally need match SRS x. See Examples.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"layers","dir":"Reference","previous_headings":"","what":"Layers","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"parameter defines layer extracted. equivalence API Docs equivalence : \"parcel\": CP.CadastralParcel \"zoning\": CP.CadastralZoning \"building\": BU.Building \"buildingpart\": BU.BuildingPart \"address\": AD.Address \"admboundary\": AU.AdministrativeBoundary \"admunit\": AU.AdministrativeUnit","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"styles","dir":"Reference","previous_headings":"","what":"Styles","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"WMS service provide different styles layer (parameter). styles available : \"parcel\": styles : \"BoundariesOnly\", \"ReferencePointOnly\", \"ELFCadastre\". \"zoning\": styles : \"BoundariesOnly\", \"ELFCadastre\". \"building\", \"buildingpart\": \"ELFCadastre\" \"address\": \"Number.ELFCadastre\" \"admboundary\", \"admunit\": \"ELFCadastre\" Check API Docs information.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"","code":"# \\donttest{ # With a bbox pict <- catr_wms_get_layer( c(222500, 4019500, 223700, 4020700), srs = 25830, what = \"parcel\" ) library(mapSpain) library(ggplot2) library(tidyterra) #> #> Attaching package: 'tidyterra' #> The following object is masked from 'package:stats': #> #> filter ggplot() + geom_spatraster_rgb(data = pict) # With a spatial object parcels <- catr_wfs_get_parcels_neigh_parcel(\"3662303TF3136B\", srs = 25830) #> Warning: incomplete final line found on 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps3uZME/file107c62013529.gml' # Use styles parcels_img <- catr_wms_get_layer(parcels, what = \"buildingpart\", srs = 25830, # As parcels object bbox_expand = 0.3, styles = \"ELFCadastre\" ) ggplot() + geom_sf(data = parcels, fill = \"blue\", alpha = 0.5) + geom_spatraster_rgb(data = parcels_img) # }"},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-040","dir":"Changelog","previous_headings":"","what":"CatastRo 0.4.0","title":"CatastRo 0.4.0","text":"CRAN release: 2024-06-02 Update entry points (#53).","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-031","dir":"Changelog","previous_headings":"","what":"CatastRo 0.3.1","title":"CatastRo 0.3.1","text":"CRAN release: 2024-04-12 Migrate httr httr2 (#44), visible change users. Improve documentation.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-030","dir":"Changelog","previous_headings":"","what":"CatastRo 0.3.0","title":"CatastRo 0.3.0","text":"CRAN release: 2024-01-18 catr_atom_get_address() returns also names streets (layer \"ThoroughfareName\" *.gml file). new fields named prefix tfname_*. Add helper function easy detecting cache_dir: catr_detect_cache_dir(). Update documentation tests.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-023","dir":"Changelog","previous_headings":"","what":"CatastRo 0.2.3","title":"CatastRo 0.2.3","text":"CRAN release: 2023-01-08 Housekeeping update documentation. Adapt catr_wms_get_layer() mapSpain (>= 0.7.0).","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-022","dir":"Changelog","previous_headings":"","what":"CatastRo 0.2.2","title":"CatastRo 0.2.2","text":"CRAN release: 2022-05-27 Add tidyterra ‘Suggests’. Now catr_get_code_from_coords() handle sfc objects (#26). catr_clear_cache() now config = FALSE ad default parameter.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-021","dir":"Changelog","previous_headings":"","what":"CatastRo 0.2.1","title":"CatastRo 0.2.1","text":"CRAN release: 2022-03-08 Fix CRAN tests.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-020","dir":"Changelog","previous_headings":"","what":"CatastRo 0.2.0","title":"CatastRo 0.2.0","text":"CRAN release: 2022-02-28 Overall revamp package. Major changes API. Addresses: catr_atom_get_address(), catr_atom_get_address_db_all(). Cadastral Parcels: catr_atom_get_parcels(), catr_atom_get_parcels_db_all(). Buildings: catr_atom_get_buildings(), catr_atom_get_buildings_db_all(). Addresses: catr_wfs_get_address_bbox(), catr_wfs_get_address_codvia(), catr_wfs_get_address_postalcode(), catr_wfs_get_address_rc(). Cadastral Parcels: catr_wfs_get_parcels_neigh_parcel(), catr_wfs_get_parcels_parcel(), catr_wfs_get_parcels_parcel_zoning(), catr_wfs_get_parcels_zoning(). Buildings: catr_wfs_get_buildings_bbox(),catr_wfs_get_buildings_rc(). Add WMS INSPIRE capabilities: catr_wms_get_layer(). New SRS database catr_srs_values, replaces coordinates. catr_ovc_get_rccoor_distancia() replaces near_rc(). catr_ovc_get_rccoor() replaces get_rc(). catr_ovc_get_cpmrc() replaces get_coor(). Add pre-computed vignettes.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-010","dir":"Changelog","previous_headings":"","what":"CatastRo 0.1.0","title":"CatastRo 0.1.0","text":"Initial release.","code":""}] +[{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"ovccoordenadas-service","dir":"Articles","previous_headings":"","what":"OVCCoordenadas Service","title":"Get started","text":"OVCCoordenadas service allows retrieve coordinates known cadastral reference (geocoding). also possible retrieve cadastral references around specific pair coordinates (reverse geocoding). CatastRo returns results tibble format. functionality described detail corresponding vignette (see vignette(\"ovcservice\", package = \"CatastRo\")).","code":""},{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"inspire-services","dir":"Articles","previous_headings":"","what":"INSPIRE Services","title":"Get started","text":"INSPIRE Directive aims create European Union spatial data infrastructure purposes EU environmental policies policies activities may impact environment. European Spatial Data Infrastructure enable sharing environmental spatial information among public sector organisations, facilitate public access spatial information across Europe assist policy-making across boundaries. https://knowledge-base.inspire.ec.europa.eu/overview_en implementation INSPIRE directive Spanish Cadastre (see Catastro INSPIRE) allows retrieve spatial objects database cadastre: Vector objects: Parcels, addresses, buildings, cadastral zones . objects provided CatastRo sf objects provided sf package. Imagery: Image layers representing information vector objects. objects provided CatastRo SpatRaster objects provided terra package. Note coverage service 95% Spanish territory, excluding Basque Country Navarre1 independent cadastral offices. three types functions, one querying different service: ATOM service: ATOM service allows batch-download vector objects different cadastral elements specific municipality. WFS service: WFS service allows download vector objects specific cadastral elements. Note restrictions extension number elements query. batch-downloading ATOM service preferred. WMS service: service allows download georeferenced images different cadastral elements.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"working-with-layers","dir":"Articles","previous_headings":"Examples","what":"Working with layers","title":"Get started","text":"example demonstrate main capabilities package recreating cadastral map surroundings Santiago Bernabéu Stadium. make use WMS WFS services get different layers order show capabilities package: Example: Santiago Bernabeu","code":"# Extract building by bounding box # Check https://boundingbox.klokantech.com/ library(CatastRo) stadium <- catr_wfs_get_buildings_bbox( c(-3.6891446916, 40.4523311971, -3.687462138, 40.4538643165), srs = 4326 ) # Now extract cadastral parcels. We can use spatial objects on the query stadium_parcel <- catr_wfs_get_parcels_bbox(stadium) # Project for tiles stadium_parcel_pr <- sf::st_transform(stadium_parcel, 25830) # Extract imagery: Labels of the parcel labs <- catr_wms_get_layer(stadium_parcel_pr, what = \"parcel\", styles = \"BoundariesOnly\", srs = 25830 ) # Plot library(ggplot2) library(tidyterra) # For terra tiles ggplot() + geom_spatraster_rgb(data = labs) + geom_sf(data = stadium_parcel_pr, fill = NA, col = \"red\", linewidth = 2) + geom_sf(data = stadium, fill = \"red\", alpha = .5) + coord_sf(crs = 25830)"},{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"thematic-maps","dir":"Articles","previous_headings":"Examples","what":"Thematic maps","title":"Get started","text":"can create also thematic maps using information available spatial objects. produce visualization urban growth Granada using CatastRo, replicating map produced Dominic Royé post Visualize urban growth, using ATOM services. first place, extract coordinates city center Granada using mapSpain: Next step consists extracting buildings using ATOM service. use also function catr_get_code_from_coords() identify code Granada Cadastre, download buildings catr_atom_get_buildings(). Next step creating visualization limit analysis circle radius 1.5 km around city center: Minimal cadastral map Granada Let’s extract now construction year, available column beginning: Last step create groups based year create data visualization. use function cut() create classes every decade starting year 1900: Granada: Urban growth","code":"library(dplyr) library(sf) library(mapSpain) # Use mapSpain for getting the coords city <- esp_get_capimun(munic = \"^Granada$\") city_catr_code <- catr_get_code_from_coords(city) city_catr_code #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 GRANA… 18 900 18900 18 087 18087 GRAN… 18 900 18 #> # ℹ 1 more variable: cm city_bu <- catr_atom_get_buildings(city_catr_code$catrcode) buff <- city %>% # Adjust CRS to 25830: (Buildings) st_transform(st_crs(city_bu)) %>% # Buffer st_buffer(1500) # Cut buildings dataviz <- st_intersection(city_bu, buff) ggplot(dataviz) + geom_sf() # Extract 4 initial positions year <- substr(dataviz$beginning, 1, 4) # Replace all that doesn't look as a number with 0000 year[!(year %in% 0:2500)] <- \"0000\" # To numeric year <- as.integer(year) # New column dataviz <- dataviz %>% mutate(year = year) dataviz <- dataviz %>% mutate(year_cat = cut(year, breaks = c(0, seq(1900, 2030, by = 10)), dig.lab = 4 )) ggplot(dataviz) + geom_sf(aes(fill = year_cat), color = NA, na.rm = TRUE) + scale_fill_manual( values = hcl.colors(15, \"Spectral\"), na.translate = FALSE ) + theme_void() + labs(title = \"GRANADA\", fill = \"\") + theme( panel.background = element_rect(fill = \"black\"), plot.background = element_rect(fill = \"black\"), legend.justification = .5, legend.text = element_text( colour = \"white\", size = 12 ), plot.title = element_text( colour = \"white\", hjust = .5, margin = margin(t = 30), size = 30 ), plot.caption = element_text( colour = \"white\", margin = margin(b = 20), hjust = .5 ), plot.margin = margin(r = 40, l = 40) )"},{"path":"https://ropenspain.github.io/CatastRo/articles/CatastRo.html","id":"references","dir":"Articles","previous_headings":"","what":"References","title":"Get started","text":"Royé D (2019). “Visualize urban growth.” https://dominicroye.github.io/en/2019/visualize-urban-growth/.","code":""},{"path":"https://ropenspain.github.io/CatastRo/articles/ovcservice.html","id":"catastro-api","dir":"Articles","previous_headings":"","what":"CatastRo API","title":"OVCCoordenadas Web Service","text":"OVCCoordenadas Web Service can reached using following functions: catr_ovc_get_rccoor() catr_ovc_get_rccoor_distancia() catr_ovc_get_cpmrc()","code":""},{"path":"https://ropenspain.github.io/CatastRo/articles/ovcservice.html","id":"reverse-geocoding-cadastral-references","dir":"Articles","previous_headings":"","what":"Reverse Geocoding Cadastral References","title":"OVCCoordenadas Web Service","text":"function catr_ovc_get_rccoor() receives coordinates (lat lon) spatial reference system (srs) used express . return tibble cadastral reference property spatial point, including also information address (town street number). function accept srs argument following values: also possible get cadastral references square 50-meters’ side centered coordinates lat lon function catr_ovc_get_rccoor_distancia().","code":"result <- catr_ovc_get_rccoor( lat = 38.6196566583596, lon = -3.45624183836806, srs = \"4230\" ) data(catr_srs_values) # OVC valid codes library(dplyr) catr_srs_values %>% filter(ovc_service == TRUE) %>% select(SRS, Description) %>% knitr::kable() catr_ovc_get_rccoor_distancia( lat = 40.96002, lon = -5.663408, srs = \"4230\" ) %>% knitr::kable()"},{"path":"https://ropenspain.github.io/CatastRo/articles/ovcservice.html","id":"geocoding-a-cadastral-reference","dir":"Articles","previous_headings":"","what":"Geocoding a Cadastral Reference","title":"OVCCoordenadas Web Service","text":"opposite query possible well. given function catr_ovc_get_cpmrc() cadastral reference (rc), province (province) town (municipality), catr_ovc_get_cpmrc() returns coordinates lat lon particular srs besides address (town, street number). Neither province municipality required passed function, unless argument municipality NULL, case argument province needed passed. passed value province argument municipality argument NULL, function catr_ovc_get_cpmrc() throw message return tibble data. using rc result provided expected:","code":"catr_ovc_get_cpmrc( rc = \"13077A01800039\", srs = \"4230\", province = \"CIUDAD REAL\", municipality = \"SANTA CRUZ DE MUDELA\" ) %>% knitr::kable() catr_ovc_get_cpmrc( rc = \"13077A01800039\", municipality = \"SANTA CRUZ DE MUDELA\" ) %>% knitr::kable() #> Error code: 11. LA PROVINCIA ES OBLIGATORIA # No warning, get the result catr_ovc_get_cpmrc(rc = \"13077A01800039\") %>% knitr::kable()"},{"path":"https://ropenspain.github.io/CatastRo/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Ángel Delgado Panadero. Author, copyright holder. Iñaki Ucar. Contributor. Diego Hernangómez. Author, maintainer.","code":""},{"path":"https://ropenspain.github.io/CatastRo/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Delgado Panadero Á, Hernangómez D (2024). CatastRo: Interface API Sede Electrónica Del Catastro. doi:10.32614/CRAN.package.CatastRo, https://ropenspain.github.io/CatastRo/.","code":"@Manual{R-CatastRo, title = {{CatastRo}: Interface to the {API} Sede Electrónica Del Catastro}, author = {Ángel {Delgado Panadero} and Diego Hernangómez}, doi = {10.32614/CRAN.package.CatastRo}, year = {2024}, version = {0.4.0}, url = {https://ropenspain.github.io/CatastRo/}, abstract = {Access public spatial data available under the INSPIRE directive. Tools for downloading references and addresses of properties, as well as map images.}, }"},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"fixing-typos","dir":"","previous_headings":"","what":"Fixing typos","title":"CONTRIBUTING","text":"Small typos grammatical errors documentation may edited directly using GitHub web interface, long changes made source file. YES ✔️: edit roxygen comment .R file R/. ❌: edit .Rd file man/.","code":""},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"prerequisites","dir":"","previous_headings":"","what":"Prerequisites","title":"CONTRIBUTING","text":"make substantial pull request, always file issue make sure someone team agrees ’s problem. ’ve found bug, create associated issue illustrate bug minimal reprex.","code":""},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"pull-request-process","dir":"","previous_headings":"","what":"Pull request process","title":"CONTRIBUTING","text":"recommend create Git branch pull request (PR). Look R-CMD-check build status . making changes, run devtools::check() ensure new Notes, Warnings Errors appearing. recommend tidyverse style guide. also use styler package apply styles, please don’t restyle code nothing PR. use roxygen2. use testthat. Contributions test cases included easier accept. user-facing changes, add bullet top NEWS.md current development version header describing changes made followed GitHub username, links relevant issue(s)/PR(s).","code":""},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"prefer-to-email","dir":"","previous_headings":"","what":"Prefer to Email?","title":"CONTRIBUTING","text":"Email person listed maintainer DESCRIPTION file repo. Though note private discussions email don’t help others - course email totally warranted ’s sensitive problem kind.","code":""},{"path":"https://ropenspain.github.io/CatastRo/CONTRIBUTING.html","id":"thanks-for-contributing","dir":"","previous_headings":"","what":"Thanks for contributing!","title":"CONTRIBUTING","text":"contributing guide adapted tidyverse contributing guide available https://raw.githubusercontent.com/r-lib/usethis/master/inst/templates/tidy-contributing.md","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"catastro-","dir":"","previous_headings":"","what":"Interface to the API Sede Electronica Del Catastro","title":"Interface to the API Sede Electronica Del Catastro","text":"CatastRo package provide access different API services Spanish Cadastre. CatastRo possible download spatial objects (buildings cadastral parcels), maps geocode cadastral references.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Interface to the API Sede Electronica Del Catastro","text":"Install CatastRo CRAN: can install developing version CatastRo using r-universe: Alternatively, can install developing version CatastRo :","code":"install.packages(\"CatastRo\") # Install CatastRo in R: install.packages(\"CatastRo\", repos = c( \"https://ropenspain.r-universe.dev\", \"https://cloud.r-project.org\" ) ) remotes::install_github(\"rOpenSpain/CatastRo\", dependencies = TRUE)"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"package-api","dir":"","previous_headings":"","what":"Package API","title":"Interface to the API Sede Electronica Del Catastro","text":"functions CatastRo organized API endpoint. package naming convention catr_*api*_*description*.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"ovccoordenadas","dir":"","previous_headings":"Package API","what":"OVCCoordenadas","title":"Interface to the API Sede Electronica Del Catastro","text":"functions allow geocode reverse geocode cadastral references using OVCCoordenadas service. functions named catr_ovc_get_* returns tibble, provided package tibble. See vignette(\"ovcservice\", package = \"CatastRo\") functions described.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"inspire","dir":"","previous_headings":"Package API","what":"INSPIRE","title":"Interface to the API Sede Electronica Del Catastro","text":"functions return spatial object (formats provided sf terra using Catastro INSPIRE service. Note coverage service 95% Spanish territory, excluding Basque Country Navarre1 independent cadastral offices. three types functions, one querying different service:","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"atom-service","dir":"","previous_headings":"Package API > INSPIRE","what":"ATOM service","title":"Interface to the API Sede Electronica Del Catastro","text":"ATOM service allows batch-download vector objects different cadastral elements specific municipality. result provided sf objects (See sf package). functions named catr_atom_get_xxx.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"wfs-service","dir":"","previous_headings":"Package API > INSPIRE","what":"WFS service","title":"Interface to the API Sede Electronica Del Catastro","text":"WFS service allows download vector objects specific cadastral elements. result provided sf class objects (see sf package). Note limitations extension number elements query. batch-downloading ATOM service preferred. functions named catr_wms_get_xxx.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"wms-service","dir":"","previous_headings":"Package API > INSPIRE","what":"WMS service","title":"Interface to the API Sede Electronica Del Catastro","text":"service allows download georeferenced images different cadastral elements. result raster format provides terra. single function querying service: catr_wms_get_layer().","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"terms-and-conditions-of-use","dir":"","previous_headings":"Package API > INSPIRE","what":"Terms and conditions of use","title":"Interface to the API Sede Electronica Del Catastro","text":"Please check downloading provisions service.","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"examples","dir":"","previous_headings":"","what":"Examples","title":"Interface to the API Sede Electronica Del Catastro","text":"script highlights features CatastRo :","code":""},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"geocode-a-cadastral-reference","dir":"","previous_headings":"Examples","what":"Geocode a cadastral reference","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"library(CatastRo) catr_ovc_get_cpmrc(rc = \"13077A01800039\") #> # A tibble: 1 × 10 #> xcoord ycoord refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 -3.46 38.6 13077A018… DS DIS… 13077… 18000… -3.4575… 38.6184… EPSG:4… DS D…"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"extract-a-cadastral-reference-from-a-given-set-of-coordinates","dir":"","previous_headings":"Examples","what":"Extract a cadastral reference from a given set of coordinates","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"catr_ovc_get_rccoor( lat = 38.6196566583596, lon = -3.45624183836806, srs = \"4230\" ) #> # A tibble: 1 × 8 #> refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 13077A01800039 DS DISEMINADO P… 13077… 18000… -3.46 38.6 EPSG:4… DS D…"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"extract-geometries-using-the-atom-service","dir":"","previous_headings":"Examples","what":"Extract geometries using the ATOM service","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"bu <- catr_atom_get_buildings(\"Nava de la Asuncion\", to = \"Segovia\") # Map library(ggplot2) ggplot(bu) + geom_sf(aes(fill = currentUse), col = NA) + coord_sf( xlim = c(374500, 375500), ylim = c(4556500, 4557500) ) + scale_fill_manual(values = hcl.colors(6, \"Dark 3\")) + theme_minimal() + ggtitle(\"Nava de la Asunción, Segovia\")"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"extract-geometries-using-the-wfs-service","dir":"","previous_headings":"Examples","what":"Extract geometries using the WFS service","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"wfs_get_buildings <- catr_wfs_get_buildings_bbox( c(-5.569, 42.598, -5.564, 42.601), srs = 4326 ) # Map ggplot(wfs_get_buildings) + geom_sf() + ggtitle(\"Leon Cathedral, Spain\")"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"extract-maps-using-the-wms-service","dir":"","previous_headings":"Examples","what":"Extract maps using the WMS service","title":"Interface to the API Sede Electronica Del Catastro","text":"","code":"# For tiles better project wfs_get_buildings_pr <- sf::st_transform(wfs_get_buildings, 25830) wms_bu <- catr_wms_get_layer(wfs_get_buildings_pr, srs = 25830, bbox_expand = 0.2 ) # Map # Load tidyterra library(tidyterra) ggplot() + geom_spatraster_rgb(data = wms_bu) + geom_sf(data = wfs_get_buildings_pr, fill = \"red\", alpha = 0.6)"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"a-note-on-caching","dir":"","previous_headings":"","what":"A note on caching","title":"Interface to the API Sede Electronica Del Catastro","text":"data sets tiles may size larger 50MB. can use CatastRo create local repository given local directory passing following option: option set, CatastRo look cached file load , speeding process.","code":"catr_set_cache_dir(\"./path/to/location\")"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Interface to the API Sede Electronica Del Catastro","text":"Delgado Panadero Á, Hernangómez D (2024). CatastRo: Interface API Sede Electrónica Del Catastro. doi:10.32614/CRAN.package.CatastRo, https://ropenspain.github.io/CatastRo/. BibTeX entry LaTeX users :","code":"@Manual{R-CatastRo, title = {{CatastRo}: Interface to the {API} Sede Electrónica Del Catastro}, author = {Ángel {Delgado Panadero} and Diego Hernangómez}, doi = {10.32614/CRAN.package.CatastRo}, year = {2024}, version = {0.4.0}, url = {https://ropenspain.github.io/CatastRo/}, abstract = {Access public spatial data available under the INSPIRE directive. Tools for downloading references and addresses of properties, as well as map images.}, }"},{"path":"https://ropenspain.github.io/CatastRo/index.html","id":"contribute","dir":"","previous_headings":"","what":"Contribute","title":"Interface to the API Sede Electronica Del Catastro","text":"Check GitHub page source code.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/CatastRo-package.html","id":null,"dir":"Reference","previous_headings":"","what":"CatastRo: Interface to the API 'Sede Electronica Del Catastro' — CatastRo-package","title":"CatastRo: Interface to the API 'Sede Electronica Del Catastro' — CatastRo-package","text":"Access public spatial data available 'INSPIRE' directive. Tools downloading references addresses properties, well map images.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/CatastRo-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"CatastRo: Interface to the API 'Sede Electronica Del Catastro' — CatastRo-package","text":"Maintainer: Diego Hernangómez diego.hernangomezherrero@gmail.com (ORCID) Authors: Ángel Delgado Panadero delgadopanadero@gmail.com (ORCID) [copyright holder] contributors: Iñaki Ucar (ORCID) [contributor]","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"Get spatial data addresses belonging single municipality using INSPIRE ATOM service. Additionally, function also returns corresponding street information fields prefix tfname_*.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"","code":"catr_atom_get_address( munic, to = NULL, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"munic Municipality extract, can part string cadastral code. See catr_atom_search_munic() getting cadastral codes. Optional parameter defining Territorial Office munic belongs. parameter helper narrowing search. cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Download all the addresses of a municipality — catr_atom_get_address","text":"","code":"# \\donttest{ s <- catr_atom_get_address(\"Melque\", to = \"Segovia\" ) library(ggplot2) ggplot(s) + geom_sf(aes(color = specification)) + coord_sf( xlim = c(376200, 376850), ylim = c(4545000, 4546000) ) + labs( title = \"Addresses\", subtitle = \"Melque de Cercos, Segovia\" ) # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"Create database containing urls provided INSPIRE ATOM service Spanish Cadastre extracting Addresses. catr_atom_get_address_db_all() provides top-level table including information territorial offices (except Basque Country Navarre) listing municipalities included office. catr_atom_get_address_db_to() provides table specified territorial office including information municipalities office.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"","code":"catr_atom_get_address_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE ) catr_atom_get_address_db_to( to, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"https://www.catastro.hacienda.gob.es/INSPIRE/Addresses/ES.SDGC.AD.atom.xml","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE. Territorial office. can type string, function perform search using base::grep().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"tibble information requested. catr_atom_get_address_db_all() includes following fields: territorial_office: Territorial office, corresponding province Spain expect Basque Country Navarre. url: ATOM url corresponding territorial office. munic: Name municipality. date: Reference date data. Note information service updated twice year. catr_atom_get_address_db_to() includes following fields: munic: Name municipality. url: url downloading information corresponding municipality. date: Reference date data. Note information service updated twice year.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_address_db.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Reference database for ATOM addresses — catr_atom_get_address_db_all","text":"","code":"# \\donttest{ catr_atom_get_address_db_all() #> # A tibble: 7,611 × 4 #> territorial_office url munic date #> #> 1 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 2 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 3 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 4 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 5 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 6 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 7 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 8 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 9 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> 10 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> # ℹ 7,601 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"Get spatial data buildings belonging single municipality using INSPIRE ATOM service.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"","code":"catr_atom_get_buildings( munic, to = NULL, what = c(\"building\", \"buildingpart\", \"other\"), cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"munic Municipality extract, can part string cadastral code. See catr_atom_search_munic() getting cadastral codes. Optional parameter defining Territorial Office munic belongs. parameter helper narrowing search. Information load. : \"building\" buildings. \"buildingpart\" parts building. \"\" others elements, swimming pools, etc. cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Download all the buildings of a municipality — catr_atom_get_buildings","text":"","code":"# \\donttest{ s <- catr_atom_get_buildings(\"Nava de la Asuncion\", to = \"Segovia\", what = \"building\" ) library(ggplot2) ggplot(s) + geom_sf() + coord_sf( xlim = c(374500, 375500), ylim = c(4556500, 4557500) ) + labs( title = \"Buildings\", subtitle = \"Nava de la Asuncion, Segovia\" ) # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"Create database containing urls provided INSPIRE ATOM service Spanish Cadastre extracting buildings. catr_atom_get_buildings_db_all() provides top-level table including information territorial offices (except Basque Country Navarre) listing municipalities included office. catr_atom_get_buildings_db_to() provides table specified territorial office including information municipalities office.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"","code":"catr_atom_get_buildings_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE ) catr_atom_get_buildings_db_to( to, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"https://www.catastro.hacienda.gob.es/INSPIRE/buildings/ES.SDGC.BU.atom.xml","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE. Territorial office. can type string, function perform search using base::grep().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"tibble information requested. catr_atom_get_buildings_db_all() includes following fields: territorial_office: Territorial office, corresponding province Spain expect Basque Country Navarre. url: ATOM url corresponding territorial office. munic: Name municipality. date: Reference date data. Note information service updated twice year. catr_atom_get_buildings_db_to() includes following fields: munic: Name municipality. url: url downloading information corresponding municipality. date: Reference date data. Note information service updated twice year.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_buildings_db.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Reference database for ATOM buildings — catr_atom_get_buildings_db_all","text":"","code":"# \\donttest{ catr_atom_get_buildings_db_all() #> # A tibble: 7,611 × 4 #> territorial_office url munic date #> #> 1 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 2 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 3 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 4 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 5 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 6 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 7 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 8 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 9 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> 10 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> # ℹ 7,601 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"Get spatial data cadastral parcels belonging single municipality using INSPIRE ATOM service.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"","code":"catr_atom_get_parcels( munic, to = NULL, what = \"parcel\", cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"munic Municipality extract, can part string cadastral code. See catr_atom_search_munic() getting cadastral codes. Optional parameter defining Territorial Office munic belongs. parameter helper narrowing search. Information load. \"parcel\" cadastral parcels \"zoning\" cadastral zoning. cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Download all the cadastral parcels of a municipality — catr_atom_get_parcels","text":"","code":"# \\donttest{ s <- catr_atom_get_parcels(\"Melque\", to = \"Segovia\", what = \"parcel\" ) library(ggplot2) ggplot(s) + geom_sf() + labs( title = \"Cadastral Zoning\", subtitle = \"Melque de Cercos, Segovia\" ) # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"Create database containing urls provided INSPIRE ATOM service Spanish Cadastre extracting cadastral parcels. catr_atom_get_parcels_db_all() provides top-level table including information territorial offices (except Basque Country Navarre) listing municipalities included office. catr_atom_get_parcels_db_to() provides table specified territorial office including information municipalities office.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"","code":"catr_atom_get_parcels_db_all( cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE ) catr_atom_get_parcels_db_to( to, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"https://www.catastro.hacienda.gob.es/INSPIRE/CadastralParcels/ES.SDGC.CP.atom.xml","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE. Territorial office. can type string, function perform search using base::grep().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"tibble information requested. catr_atom_get_parcels_db_all() includes following fields: territorial_office: Territorial office, corresponding province Spain expect Basque Country Navarre. url: ATOM url corresponding territorial office. munic: Name municipality. date: Reference date data. Note information service updated twice year. catr_atom_get_parcels_db_to() includes following fields: munic: Name municipality. url: url downloading information corresponding municipality. date: Reference date data. Note information service updated twice year.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_get_parcels_db.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Reference database for ATOM cadastral parcels — catr_atom_get_parcels_db_all","text":"","code":"# \\donttest{ catr_atom_get_parcels_db_all() #> # A tibble: 7,611 × 4 #> territorial_office url munic date #> #> 1 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 2 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 3 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 4 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 5 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 6 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 7 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 8 Territorial office 02 Albacete http://www.catastro… 0200… 2024-09-20 00:00:00 #> 9 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> 10 Territorial office 02 Albacete http://www.catastro… 0201… 2024-09-20 00:00:00 #> # ℹ 7,601 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":null,"dir":"Reference","previous_headings":"","what":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"Search municipality (string, part string code) get corresponding coding per Cadastre.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"","code":"catr_atom_search_munic( munic, to = NULL, cache = TRUE, update_cache = FALSE, cache_dir = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"munic Municipality extract, can part string cadastral code. Optional parameter defining Territorial Office munic belongs. parameter helper narrowing search. cache logical whether caching. Default TRUE. See caching section catr_set_cache_dir(). update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"tibble.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_atom_search_munic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ATOM INSPIRE: Search for municipality codes — catr_atom_search_munic","text":"","code":"# \\donttest{ catr_atom_search_munic(\"Mad\") #> # A tibble: 40 × 3 #> territorial_office munic catrcode #> #> 1 Territorial office 02 Albacete 02045-MADRIGUERAS 02045 #> 2 Territorial office 02 Albacete 02058-PATERNA DEL MADERA 02058 #> 3 Territorial office 05 Avila 05114-MADRIGAL DE LAS ALTAS TORRES 05114 #> 4 Territorial office 09 Burgos 09178-HUMADA 09178 #> 5 Territorial office 09 Burgos 09187-JARAMILLO QUEMADO 09187 #> 6 Territorial office 09 Burgos 09200-MADRIGAL DEL MONTE 09200 #> 7 Territorial office 09 Burgos 09201-MADRIGALEJO DEL MONTE 09201 #> 8 Territorial office 09 Burgos 09287-QUEMADA 09287 #> 9 Territorial office 10 Cáceres 10114-MADRIGAL DE LA VERA 10114 #> 10 Territorial office 10 Cáceres 10115-MADRIGALEJO 10115 #> # ℹ 30 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":null,"dir":"Reference","previous_headings":"","what":"Clear your CatastRo cache dir — catr_clear_cache","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"Use function caution. function clear cached data configuration, specifically: Deletes CatastRo config directory (rappdirs::user_config_dir(\"CatastRo\", \"R\")). Deletes cache_dir directory. Deletes values stored Sys.getenv(\"CATASTROESP_CACHE_DIR\").","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"","code":"catr_clear_cache(config = FALSE, cached_data = TRUE, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"config TRUE, delete configuration folder CatastRo. cached_data set TRUE, delete cache_dir content. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"Invisible. function called side effects.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"overkill function intended reset status never installed /used CatastRo.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_clear_cache.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Clear your CatastRo cache dir — catr_clear_cache","text":"","code":"# Don't run this! It would modify your current state # \\dontrun{ catr_clear_cache(verbose = TRUE) #> CatastRo cached data deleted: C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps9KRQD/CatastRo # } Sys.getenv(\"CATASTROESP_CACHE_DIR\") #> [1] \"\""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":null,"dir":"Reference","previous_headings":"","what":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"function takes input pair coordinates sf object returns corresponding municipality code coordinates. See also mapSpain::esp_get_munic_siane() catr_ovc_get_cod_munic().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"","code":"catr_get_code_from_coords(x, srs, verbose = FALSE, cache_dir = NULL, ...)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"x : pair coordinates c(x,y). sf object. See Details. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. verbose Logical, displays information. Useful debugging, default FALSE. cache_dir path cache directory. NULL value (default) function store cached files tempdir. ... Arguments passed mapSpain::esp_get_munic_siane year Release year. See Details years available.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"tibble format described catr_ovc_get_cod_munic().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"x numeric vector, make sure srs matches coordinate values. x sf object, first value used. function extract coordinates using sf::st_centroid(x, of_largest_polygon = TRUE).","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_get_code_from_coords.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get the cadastral municipality code from coordinates — catr_get_code_from_coords","text":"","code":"# \\donttest{ # Use with coords catr_get_code_from_coords(c(-16.25462, 28.46824), srs = 4326) #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 SANTA… 38 900 38900 38 038 38038 SANT… 38 900 38 #> # ℹ 1 more variable: cm # Use with sf prov <- mapSpain::esp_get_prov(\"Caceres\") catr_get_code_from_coords(prov) #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 MONROY 10 128 10128 10 125 10125 MONR… 10 128 10 #> # ℹ 1 more variable: cm # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"Implementation OVCCallejero service ConsultaMunicipioCodigos. Return names codes municipality. Returns codes per Cadastre per INE (National Statistics Institute).","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"","code":"catr_ovc_get_cod_munic(cpro, cmun = NULL, cmun_ine = NULL, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"cpro code province, provided catr_ovc_get_cod_provinces(). cmun Code municipality, recorded Spanish Cadastre. cmun_ine Code municipality, recorded National Statistics Institute. See INE: List municipalities verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"tibble. See Details","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"Parameter cpro mandatory. Either cmun cmun_ine provided. successful query, function returns tibble one row including following columns: munic: Name municipality per Cadastre. catr_to: Cadastral territorial office code. catr_munic: Municipality code recorded Cadastre. catrcode: Full Cadastral code municipality. cpro: Province code per INE. catr_munic: Municipality code per INE. catrcode: Full INE code municipality. Rest fields: Check API Docs.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"ConsultaMunicipioCodigos.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_munic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCallejero: Extract the code of a municipality — catr_ovc_get_cod_munic","text":"","code":"# \\donttest{ # Get municipality by cadastal code ab <- catr_ovc_get_cod_munic(2, 900) ab #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 ALBAC… 02 900 02900 02 003 02003 ALBA… 2 900 2 #> # ℹ 1 more variable: cm # Same query using the INE code ab2 <- catr_ovc_get_cod_munic(2, cmun_ine = 3) ab2 #> # A tibble: 1 × 12 #> munic catr_to catr_munic catrcode cpro cmun inecode nm cd cmc cp #> #> 1 ALBAC… 02 900 02900 02 003 02003 ALBA… 2 900 2 #> # ℹ 1 more variable: cm # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"Implementation OVCCallejero service ConsultaProvincia. Return list provinces included Spanish Cadastre.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"","code":"catr_ovc_get_cod_provinces(verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"tibble.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"ConsultaProvincia.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cod_provinces.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCallejero: Extract a list of provinces with their codes — catr_ovc_get_cod_provinces","text":"","code":"# \\donttest{ catr_ovc_get_cod_provinces() #> # A tibble: 48 × 2 #> cpine np #> #> 1 15 A CORUÑA #> 2 03 ALACANT #> 3 02 ALBACETE #> 4 04 ALMERIA #> 5 33 ASTURIAS #> 6 05 AVILA #> 7 06 BADAJOZ #> 8 08 BARCELONA #> 9 09 BURGOS #> 10 10 CACERES #> # ℹ 38 more rows # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"Implementation OVCCoordenadas service Consulta CPMRC. Return coordinates specific cadastral reference.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"","code":"catr_ovc_get_cpmrc( rc, srs = 4326, province = NULL, municipality = NULL, verbose = FALSE )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"rc cadastral reference geocoded. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically ovc_service column. province, municipality Optional, used narrowing search. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"tibble. See Details","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"API provide result, function returns tibble input parameters . successful query, function returns tibble one row cadastral reference, including following columns: xcoord, ycoord: X Y coordinates specified SRS. refcat: Cadastral Reference. address: Address recorded Cadastre. Rest fields: Check API Docs.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"Consulta CPMRC.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_cpmrc.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCoordenadas: Geocode a cadastral reference — catr_ovc_get_cpmrc","text":"","code":"# \\donttest{ # using all the arguments catr_ovc_get_cpmrc(\"13077A01800039\", 4230, province = \"CIUDAD REAL\", municipality = \"SANTA CRUZ DE MUDELA\" ) #> # A tibble: 1 × 10 #> xcoord ycoord refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 -3.46 38.6 13077A018… DS DIS… 13077… 18000… -3.4562… 38.6196… EPSG:4… DS D… # only the cadastral reference catr_ovc_get_cpmrc(\"9872023VH5797S\") #> # A tibble: 1 × 10 #> xcoord ycoord refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 -3.46 38.6 9872023VH… CL GLO… 98720… VH579… -3.4632… 38.6401… EPSG:4… CL G… # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"Implementation OVCCoordenadas service Consulta RCCOOR. Return cadastral reference found set specific coordinates.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"","code":"catr_ovc_get_rccoor(lat, lon, srs = 4326, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"lat Latitude use query. specified CRS/SRS specified srs. lon Longitude use query. specified CRS/SRS specified srs. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically ovc_service column. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"tibble. See Details","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"API provide result, function returns tibble input parameters . successful query, function returns tibble one row cadastral reference, including following columns: geo.xcen, geo.ycen, geo.srs: Input parameters query. refcat: Cadastral Reference. address: Address recorded Cadastre. Rest fields: Check API Docs.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"Consulta RCCOOR.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCoordenadas: Reverse geocode a cadastral reference — catr_ovc_get_rccoor","text":"","code":"# \\donttest{ catr_ovc_get_rccoor( lat = 38.6196566583596, lon = -3.45624183836806, srs = 4326 ) #> # A tibble: 1 × 8 #> refcat address pc.pc1 pc.pc2 geo.xcen geo.ycen geo.srs ldt #> #> 1 13077A01800011 DS DISEMINADO P… 13077… 18000… -3.46 38.6 EPSG:4… DS D… # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":null,"dir":"Reference","previous_headings":"","what":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"Implementation OVCCoordenadas service Consulta RCCOOR Distancia. Return cadastral reference found set coordinates. cadastral references found, API returns list cadastral references found area 50 square meters around requested coordinates.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"","code":"catr_ovc_get_rccoor_distancia(lat, lon, srs = 4326, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"lat Latitude use query. specified CRS/SRS specified srs. lon Longitude use query. specified CRS/SRS specified srs. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically ovc_service column. verbose Logical, displays information. Useful debugging, default FALSE.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"tibble. See Details","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"API provide result, function returns tibble input parameters . successful query, function returns tibble one row cadastral reference, including following columns: geo.xcen, geo.ycen, geo.srs: Input parameters query. refcat: Cadastral reference. address: Address recorded Cadastre. cmun_ine: Municipality code registered INE (National Statistics Institute). Rest fields: Check API Docs.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"Consulta RCCOOR Distancia.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_ovc_get_rccoor_distancia.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"OVCCoordenadas: Reverse geocode cadastral references on a region — catr_ovc_get_rccoor_distancia","text":"","code":"# \\donttest{ catr_ovc_get_rccoor_distancia( lat = 40.963200, lon = -5.671420, srs = 4326 ) #> # A tibble: 7 × 14 #> geo.xcen geo.ycen geo.srs refcat address cmun_ine pc.pc1 pc.pc2 dt.loine.cp #> #> 1 -5.67 41.0 EPSG:4326 528380… CL SAN… 37274 52838… TL735… 37 #> 2 -5.67 41.0 EPSG:4326 528383… CT SAN… 37274 52838… TL735… 37 #> 3 -5.67 41.0 EPSG:4326 528341… CL SAN… 37274 52834… TL735… 37 #> 4 -5.67 41.0 EPSG:4326 538380… CT SAN… 37274 53838… TL735… 37 #> 5 -5.67 41.0 EPSG:4326 538480… CL GAR… 37274 53848… TL735… 37 #> 6 -5.67 41.0 EPSG:4326 538380… CL ENC… 37274 53838… TL735… 37 #> 7 -5.67 41.0 EPSG:4326 528383… CL SAN… 37274 52838… TL735… 37 #> # ℹ 5 more variables: dt.loine.cm , dt.lourb.dir.cv , #> # dt.lourb.dir.pnp , ldt , dis # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":null,"dir":"Reference","previous_headings":"","what":"Set your CatastRo cache dir — catr_set_cache_dir","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"catr_set_cache_dir() store cache_dir path local machine load future sessions. Alternatively, can store cache_dir manually following options: Run Sys.setenv(CATASTROESP_CACHE_DIR = \"cache_dir\"). need run command session (Similar install = FALSE). Write line .Renviron file: CATASTROESP_CACHE_DIR = \"value_for_cache_dir\" (behavior install = TRUE). store cache_dir permanently. catr_detect_cache_dir() detects returns path current cache_dir.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"","code":"catr_set_cache_dir( cache_dir = NULL, overwrite = FALSE, install = FALSE, verbose = TRUE ) catr_detect_cache_dir(...)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"cache_dir path cache directory. NULL value (default) function store cached files tempdir. overwrite set TRUE, overwrite existing CATASTROESP_CACHE_DIR already local machine. install TRUE, install key local machine use future sessions. Defaults FALSE. cache_dir FALSE parameter set FALSE automatically. verbose Logical, displays information. Useful debugging, default FALSE. ... Ignored","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"catr_set_cache_dir() called side effects, returns (invisible) character path cache_dir. catr_detect_cache_dir() returns path cache_dir used session","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"about-caching","dir":"Reference","previous_headings":"","what":"About caching","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"Sometimes cached files may corrupt. case, try re-downloading data setting update_cache = TRUE. experience problem download, try download corresponding file method save cache_dir. Use option verbose = TRUE debugging API query.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_set_cache_dir.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Set your CatastRo cache dir — catr_set_cache_dir","text":"","code":"# Don't run this! It would modify your current state # \\dontrun{ catr_set_cache_dir(verbose = TRUE) #> Using a temporary cache dir. Set 'cache_dir' to a value for store permanently #> CatastRo cache dir is: C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps9KRQD/CatastRo # } catr_detect_cache_dir() #> [1] \"C:\\\\Users\\\\RUNNER~1\\\\AppData\\\\Local\\\\Temp\\\\Rtmps9KRQD/CatastRo\""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":null,"dir":"Reference","previous_headings":"","what":"Reference SRS codes for CatastRo APIs — catr_srs_values","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"tibble including valid SRS (also known CRS) values may used API service. values provided EPSG codes.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"tibble 16 rows columns: SRS Spatial Reference System (CRS) value, identified corresponding EPSG code. Description Description SRS/EPSG code. ovc_service Logical. code valid OVC services? wfs_service Logical. code valid INSPIRE WFS services?","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"Table: Content catr_srs_values","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"OVCCoordenadas. INSPIRE WFS Service.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_srs_values.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Reference SRS codes for CatastRo APIs — catr_srs_values","text":"","code":"data(\"catr_srs_values\") # OVC valid codes library(dplyr) #> #> Attaching package: 'dplyr' #> The following objects are masked from 'package:stats': #> #> filter, lag #> The following objects are masked from 'package:base': #> #> intersect, setdiff, setequal, union catr_srs_values %>% filter(ovc_service == TRUE) #> # A tibble: 14 × 4 #> SRS Description ovc_service wfs_service #> #> 1 4230 Geográficas en ED 50 TRUE FALSE #> 2 4258 Geográficas en ETRS89 TRUE TRUE #> 3 4326 Geográficas en WGS 80 TRUE TRUE #> 4 23029 UTM huso 29N en ED50 TRUE FALSE #> 5 23030 UTM huso 30N en ED50 TRUE FALSE #> 6 23031 UTM huso 31N en ED50 TRUE FALSE #> 7 25829 UTM huso 29N en ETRS89 TRUE TRUE #> 8 25830 UTM huso 30N en ETRS89 TRUE TRUE #> 9 25831 UTM huso 31N en ETRS89 TRUE TRUE #> 10 32627 UTM huso 27N en WGS 84 TRUE FALSE #> 11 32628 UTM huso 28N en WGS 84 TRUE FALSE #> 12 32629 UTM huso 29N en WGS 84 TRUE FALSE #> 13 32630 UTM huso 30N en WGS 84 TRUE FALSE #> 14 32631 UTM huso 31N en WGS 84 TRUE FALSE # WFS valid codes catr_srs_values %>% filter(wfs_service == TRUE) #> # A tibble: 7 × 4 #> SRS Description ovc_service wfs_service #> #> 1 3785 Web Mercator FALSE TRUE #> 2 3857 Web Mercator FALSE TRUE #> 3 4258 Geográficas en ETRS89 TRUE TRUE #> 4 4326 Geográficas en WGS 80 TRUE TRUE #> 5 25829 UTM huso 29N en ETRS89 TRUE TRUE #> 6 25830 UTM huso 30N en ETRS89 TRUE TRUE #> 7 25831 UTM huso 31N en ETRS89 TRUE TRUE # Use with sf::st_crs() catr_srs_values %>% filter(wfs_service == TRUE & ovc_service == TRUE) %>% print() %>% # First value slice_head(n = 1) %>% pull(SRS) %>% # As crs sf::st_crs(.) #> # A tibble: 5 × 4 #> SRS Description ovc_service wfs_service #> #> 1 4258 Geográficas en ETRS89 TRUE TRUE #> 2 4326 Geográficas en WGS 80 TRUE TRUE #> 3 25829 UTM huso 29N en ETRS89 TRUE TRUE #> 4 25830 UTM huso 30N en ETRS89 TRUE TRUE #> 5 25831 UTM huso 31N en ETRS89 TRUE TRUE #> Coordinate Reference System: #> User input: EPSG:4258 #> wkt: #> GEOGCRS[\"ETRS89\", #> ENSEMBLE[\"European Terrestrial Reference System 1989 ensemble\", #> MEMBER[\"European Terrestrial Reference Frame 1989\"], #> MEMBER[\"European Terrestrial Reference Frame 1990\"], #> MEMBER[\"European Terrestrial Reference Frame 1991\"], #> MEMBER[\"European Terrestrial Reference Frame 1992\"], #> MEMBER[\"European Terrestrial Reference Frame 1993\"], #> MEMBER[\"European Terrestrial Reference Frame 1994\"], #> MEMBER[\"European Terrestrial Reference Frame 1996\"], #> MEMBER[\"European Terrestrial Reference Frame 1997\"], #> MEMBER[\"European Terrestrial Reference Frame 2000\"], #> MEMBER[\"European Terrestrial Reference Frame 2005\"], #> MEMBER[\"European Terrestrial Reference Frame 2014\"], #> ELLIPSOID[\"GRS 1980\",6378137,298.257222101, #> LENGTHUNIT[\"metre\",1]], #> ENSEMBLEACCURACY[0.1]], #> PRIMEM[\"Greenwich\",0, #> ANGLEUNIT[\"degree\",0.0174532925199433]], #> CS[ellipsoidal,2], #> AXIS[\"geodetic latitude (Lat)\",north, #> ORDER[1], #> ANGLEUNIT[\"degree\",0.0174532925199433]], #> AXIS[\"geodetic longitude (Lon)\",east, #> ORDER[2], #> ANGLEUNIT[\"degree\",0.0174532925199433]], #> USAGE[ #> SCOPE[\"Spatial referencing.\"], #> AREA[\"Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Cyprus; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Moldova; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain; Sweden; Switzerland; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State.\"], #> BBOX[32.88,-16.1,84.73,40.18]], #> ID[\"EPSG\",4258]]"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":null,"dir":"Reference","previous_headings":"","what":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"Get spatial data addresses WFS Service allows perform several types queries: bounding box: Implemented catr_wfs_get_address_bbox(). Extract objects included bounding box provided. See Details. street code: Implemented catr_wfs_get_address_codvia(). Extract objects specific addresses. cadastral reference: Implemented catr_wfs_get_address_rc(). Extract objects specific cadastral references postal codes: Implemented catr_wfs_get_address_postalcode(). Extract objects specific cadastral references","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"","code":"catr_wfs_get_address_bbox(x, srs, verbose = FALSE) catr_wfs_get_address_codvia(codvia, del, mun, srs = NULL, verbose = FALSE) catr_wfs_get_address_rc(rc, srs = NULL, verbose = FALSE) catr_wfs_get_address_postalcode(postalcode, srs = NULL, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"x See Details. : numeric vector length 4 coordinates defines bounding box: c(xmin, ymin, xmax, ymax) sf/sfc object, provided sf package. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. verbose Logical, displays information. Useful debugging, default FALSE. codvia Cadastral street code. del Cadastral office code. mun Cadastral municipality code. rc cadastral reference extracted. postalcode Postal code.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"x numeric vector, make sure srs matches coordinate values. Additionally, srs correspond geographic reference system (4326, 4258), function queries bounding box EPSG:3857 - Web Mercator, overcome potential bug API side. x sf object, value srs ignored. case, bounding box sf object used query (see sf::st_bbox()). query performed using EPSG:3857 (Web Mercator). result provided always SRS sf object provided input.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"api-limits","dir":"Reference","previous_headings":"","what":"API Limits","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"API service limited bounding box 4km2 maximum 5.000 elements.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_address.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WFS INSPIRE: Download addresses — catr_wfs_get_address_bbox","text":"","code":"# \\donttest{ ad <- catr_wfs_get_address_bbox( c( 233673, 4015968, 233761, 4016008 ), srs = 25830 ) library(ggplot2) ggplot(ad) + geom_sf() # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":null,"dir":"Reference","previous_headings":"","what":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"Get spatial data buildings. WFS Service allows perform two types queries: bounding box: Implemented catr_wfs_get_buildings_bbox(). Extract objects included bounding box provided. See Details. cadastral reference: Implemented catr_wfs_get_buildings_rc(). Extract objects specific cadastral references.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"","code":"catr_wfs_get_buildings_bbox(x, what = \"building\", srs, verbose = FALSE) catr_wfs_get_buildings_rc(rc, what = \"building\", srs = NULL, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"x See Details. : numeric vector length 4 coordinates defines bounding box: c(xmin, ymin, xmax, ymax) sf/sfc object, provided sf package. Information load. : \"building\" buildings. \"buildingpart\" parts building. \"\" others elements, swimming pools, etc. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. verbose Logical, displays information. Useful debugging, default FALSE. rc cadastral reference extracted.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"x numeric vector, make sure srs matches coordinate values. Additionally, srs correspond geographic reference system (4326, 4258), function queries bounding box EPSG:3857 - Web Mercator, overcome potential bug API side. result provided always SRS provided srs. x sf object, value srs ignored. query performed using EPSG:3857 (Web Mercator) spatial object projected back SRS initial object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"api-limits","dir":"Reference","previous_headings":"","what":"API Limits","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"API service limited bounding box 4km2 maximum 5.000 elements.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_buildings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WFS INSPIRE: Download buildings — catr_wfs_get_buildings_bbox","text":"","code":"# \\donttest{ # Using bbox building <- catr_wfs_get_buildings_bbox( c( 376550, 4545424, 376600, 4545474 ), srs = 25830 ) library(ggplot2) ggplot(building) + geom_sf() + labs(title = \"Search using bbox\") # Using rc rc <- catr_wfs_get_buildings_rc(\"6656601UL7465N\") library(ggplot2) ggplot(rc) + geom_sf() + labs(title = \"Search using rc\") # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":null,"dir":"Reference","previous_headings":"","what":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"Get spatial data cadastral parcels zones. WFS Service allows perform several types queries: bounding box: Implemented catr_wfs_get_parcels_bbox(). Extract objects included bounding box provided. See Details. zoning: Implemented catr_wfs_get_parcels_zoning(). Extract objects specific cadastral zone. cadastral parcel: Implemented catr_wfs_get_parcels_parcel(). Extract cadastral parcels specific cadastral reference. Neighbor cadastral parcels: Implemented catr_wfs_get_parcels_neigh_parcel(). Extract neighbor cadastral parcels specific cadastral reference. Cadastral parcels zoning: Implemented catr_wfs_get_parcels_parcel_zoning(). Extract cadastral parcels specific cadastral zone.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"","code":"catr_wfs_get_parcels_bbox(x, what = \"parcel\", srs, verbose = FALSE) catr_wfs_get_parcels_zoning(cod_zona, srs = NULL, verbose = FALSE) catr_wfs_get_parcels_parcel(rc, srs = NULL, verbose = FALSE) catr_wfs_get_parcels_neigh_parcel(rc, srs = NULL, verbose = FALSE) catr_wfs_get_parcels_parcel_zoning(cod_zona, srs = NULL, verbose = FALSE)"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"x See Details. : numeric vector length 4 coordinates defines bounding box: c(xmin, ymin, xmax, ymax) sf/sfc object, provided sf package. Information load. \"parcel\" cadastral parcels \"zoning\" cadastral zoning. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. verbose Logical, displays information. Useful debugging, default FALSE. cod_zona Cadastral zone code. rc cadastral reference extracted.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"sf object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"x numeric vector, make sure srs matches coordinate values. Additionally, srs correspond geographic reference system (4326, 4258), function queries bounding box EPSG:3857 - Web Mercator, overcome potential bug API side. result provided always SRS provided srs. x sf object, value srs ignored. query performed using EPSG:3857 (Web Mercator) spatial object projected back SRS initial object.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"api-limits","dir":"Reference","previous_headings":"","what":"API Limits","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"API service limited following constrains: \"parcel: Bounding box 1km2 maximum 500. elements. \"zoning\": Bounding box 25km2 maximum 500 elements.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wfs_get_parcels.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WFS INSPIRE: Download cadastral parcels — catr_wfs_get_parcels_bbox","text":"","code":"# \\donttest{ cp <- catr_wfs_get_parcels_bbox( c( 233673, 4015968, 233761, 4016008 ), srs = 25830 ) #> Warning: incomplete final line found on 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps9KRQD/file4903f334805.gml' library(ggplot2) ggplot(cp) + geom_sf() # }"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":null,"dir":"Reference","previous_headings":"","what":"WMS INSPIRE: Download map images — catr_wms_get_layer","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"Get geotagged images Spanish Cadastre. function wrapper mapSpain::esp_getTiles().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"","code":"catr_wms_get_layer( x, srs, what = c(\"building\", \"buildingpart\", \"parcel\", \"zoning\", \"address\", \"admboundary\", \"admunit\"), styles = \"default\", update_cache = FALSE, cache_dir = NULL, verbose = FALSE, crop = FALSE, options = NULL, ... )"},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"x See Details. : numeric vector length 4 coordinates defines bounding box: c(xmin, ymin, xmax, ymax) sf/sfc object, provided sf package. srs SRS/CRS use query. check admitted values check catr_srs_values, specifically wfs_service column. See Details. Layer extracted, see Details. styles Style WMS layer. See Details. update_cache logical whether update cache. Default FALSE. set TRUE force fresh download source file. cache_dir path cache directory. NULL value (default) function store cached files tempdir. verbose Logical, displays information. Useful debugging, default FALSE. crop TRUE results cropped specified x extent, FALSE otherwise. x sf object one POINT, crop set FALSE. options named list containing additional options pass query. ... Arguments passed mapSpain::esp_getTiles res Resolution (pixels) final tile. valid WMS. bbox_expand numeric value indicates expansion percentage bounding box x. transparent Logical. Provides transparent background, supported. Depends selected provider type. mask TRUE result masked x.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"SpatRaster returned, 3 (RGB) 4 (RGBA) layers, see terra::RGB().","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"x numeric vector, make sure srs matches coordinate values. x sf object, value srs ignored. query performed using EPSG:3857 (Web Mercator) tile projected back SRS x. case tile looks deformed, try either providing x specify SRS requested tile via srs parameter, ideally need match SRS x. See Examples.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"layers","dir":"Reference","previous_headings":"","what":"Layers","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"parameter defines layer extracted. equivalence API Docs equivalence : \"parcel\": CP.CadastralParcel \"zoning\": CP.CadastralZoning \"building\": BU.Building \"buildingpart\": BU.BuildingPart \"address\": AD.Address \"admboundary\": AU.AdministrativeBoundary \"admunit\": AU.AdministrativeUnit","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"styles","dir":"Reference","previous_headings":"","what":"Styles","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"WMS service provide different styles layer (parameter). styles available : \"parcel\": styles : \"BoundariesOnly\", \"ReferencePointOnly\", \"ELFCadastre\". \"zoning\": styles : \"BoundariesOnly\", \"ELFCadastre\". \"building\", \"buildingpart\": \"ELFCadastre\" \"address\": \"Number.ELFCadastre\" \"admboundary\", \"admunit\": \"ELFCadastre\" Check API Docs information.","code":""},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"API Documentation. INSPIRE Services Cadastral Cartography.","code":""},{"path":[]},{"path":"https://ropenspain.github.io/CatastRo/reference/catr_wms_get_layer.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WMS INSPIRE: Download map images — catr_wms_get_layer","text":"","code":"# \\donttest{ # With a bbox pict <- catr_wms_get_layer( c(222500, 4019500, 223700, 4020700), srs = 25830, what = \"parcel\" ) library(mapSpain) library(ggplot2) library(tidyterra) #> #> Attaching package: 'tidyterra' #> The following object is masked from 'package:stats': #> #> filter ggplot() + geom_spatraster_rgb(data = pict) # With a spatial object parcels <- catr_wfs_get_parcels_neigh_parcel(\"3662303TF3136B\", srs = 25830) #> Warning: incomplete final line found on 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmps9KRQD/file490784f2a3a.gml' # Use styles parcels_img <- catr_wms_get_layer(parcels, what = \"buildingpart\", srs = 25830, # As parcels object bbox_expand = 0.3, styles = \"ELFCadastre\" ) ggplot() + geom_sf(data = parcels, fill = \"blue\", alpha = 0.5) + geom_spatraster_rgb(data = parcels_img) # }"},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-040","dir":"Changelog","previous_headings":"","what":"CatastRo 0.4.0","title":"CatastRo 0.4.0","text":"CRAN release: 2024-06-02 Update entry points (#53).","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-031","dir":"Changelog","previous_headings":"","what":"CatastRo 0.3.1","title":"CatastRo 0.3.1","text":"CRAN release: 2024-04-12 Migrate httr httr2 (#44), visible change users. Improve documentation.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-030","dir":"Changelog","previous_headings":"","what":"CatastRo 0.3.0","title":"CatastRo 0.3.0","text":"CRAN release: 2024-01-18 catr_atom_get_address() returns also names streets (layer \"ThoroughfareName\" *.gml file). new fields named prefix tfname_*. Add helper function easy detecting cache_dir: catr_detect_cache_dir(). Update documentation tests.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-023","dir":"Changelog","previous_headings":"","what":"CatastRo 0.2.3","title":"CatastRo 0.2.3","text":"CRAN release: 2023-01-08 Housekeeping update documentation. Adapt catr_wms_get_layer() mapSpain (>= 0.7.0).","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-022","dir":"Changelog","previous_headings":"","what":"CatastRo 0.2.2","title":"CatastRo 0.2.2","text":"CRAN release: 2022-05-27 Add tidyterra ‘Suggests’. Now catr_get_code_from_coords() handle sfc objects (#26). catr_clear_cache() now config = FALSE ad default parameter.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-021","dir":"Changelog","previous_headings":"","what":"CatastRo 0.2.1","title":"CatastRo 0.2.1","text":"CRAN release: 2022-03-08 Fix CRAN tests.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-020","dir":"Changelog","previous_headings":"","what":"CatastRo 0.2.0","title":"CatastRo 0.2.0","text":"CRAN release: 2022-02-28 Overall revamp package. Major changes API. Addresses: catr_atom_get_address(), catr_atom_get_address_db_all(). Cadastral Parcels: catr_atom_get_parcels(), catr_atom_get_parcels_db_all(). Buildings: catr_atom_get_buildings(), catr_atom_get_buildings_db_all(). Addresses: catr_wfs_get_address_bbox(), catr_wfs_get_address_codvia(), catr_wfs_get_address_postalcode(), catr_wfs_get_address_rc(). Cadastral Parcels: catr_wfs_get_parcels_neigh_parcel(), catr_wfs_get_parcels_parcel(), catr_wfs_get_parcels_parcel_zoning(), catr_wfs_get_parcels_zoning(). Buildings: catr_wfs_get_buildings_bbox(),catr_wfs_get_buildings_rc(). Add WMS INSPIRE capabilities: catr_wms_get_layer(). New SRS database catr_srs_values, replaces coordinates. catr_ovc_get_rccoor_distancia() replaces near_rc(). catr_ovc_get_rccoor() replaces get_rc(). catr_ovc_get_cpmrc() replaces get_coor(). Add pre-computed vignettes.","code":""},{"path":"https://ropenspain.github.io/CatastRo/news/index.html","id":"catastro-010","dir":"Changelog","previous_headings":"","what":"CatastRo 0.1.0","title":"CatastRo 0.1.0","text":"Initial release.","code":""}]