Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rOpenSpain/CatastRoNav

Repository files navigation

CatastRoNav CatastRoNav website

rOS-badge CatastRoNav status badge R-CMD-check codecov DOI Project-Status:Active

CatastRoNav provides access to services from the Cadastre of Navarre. With CatastRoNav, you can retrieve addresses, buildings and cadastral parcels through its INSPIRE ATOM, WFS and WMS services.

Installation

You can install the development version of CatastRoNav from r-universe:

# Install CatastRoNav from r-universe.
install.packages(
  "CatastRoNav",
  repos = c(
    "https://ropenspain.r-universe.dev",
    "https://cloud.r-project.org"
  )
)

Alternatively, install the development version from GitHub with the pak package:

pak::pak("rOpenSpain/CatastRoNav")

Package API

Functions in CatastRoNav are organized by source service. Function names follow the catrnav_*service*_*description* convention.

INSPIRE services

CatastRoNav retrieves cadastral data from the Cadastre of Navarre through three INSPIRE services:

ATOM service

The ATOM service downloads complete municipal datasets for addresses, buildings and cadastral parcels. Download functions return sf objects from the sf package. Index and search functions return tibbles.

These functions use the catrnav_atom_get_*() prefix.

WFS service

The WFS service retrieves cadastral features within a supplied bounding box. Results are returned as sf objects from the sf package. For full municipal downloads, prefer the ATOM service.

These functions use the catrnav_wfs_get_*() prefix.

WMS service

The WMS service downloads georeferenced map images for addresses, buildings and cadastral parcels. catrnav_wms_get_layer() returns a SpatRaster object from the terra package.

Terms and conditions of use

Data are provided by the Government of Navarre under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. The service is provided “as is” without warranties of any kind, either express or implied.

Data source: SITNA – Government of Navarre.

Examples

Retrieve features with the WFS service

library(CatastRoNav)
library(ggplot2)

wfs_get_buildings <- catrnav_wfs_get_buildings_bbox(
  c(-1.652563, 42.478016, -1.646919, 42.483333),
  srs = 4326
)
# Plot the buildings.
ggplot(wfs_get_buildings) +
  geom_sf() +
  ggtitle("Olite, Navarra")

Buildings retrieved with CatastRoNav in Olite

Cache management

Downloaded files are cached locally. Use catrnav_detect_cache_dir() to inspect the active cache, catrnav_set_cache_dir() to configure it and catrnav_clear_cache() to remove cached data.

Citation

Hernangómez D (2026). CatastRoNav: Interface to the INSPIRE Services of the Cadastre of Navarre. doi:10.5281/zenodo.6366407. https://ropenspain.github.io/CatastRoNav/.

A BibTeX entry for LaTeX users is:

@Manual{R-catastronav,
  title = {{CatastRoNav}: Interface to the INSPIRE Services of the Cadastre of Navarre},
  year = {2026},
  version = {1.0.0},
  author = {Diego Hernangómez},
  doi = {10.5281/zenodo.6366407},
  url = {https://ropenspain.github.io/CatastRoNav/},
  abstract = {Provides access to public spatial data from the Cadastre of Navarre through its INSPIRE ATOM, WFS and WMS services. Supports complete municipal dataset downloads, bounding box feature queries and georeferenced map image downloads for addresses, buildings and cadastral parcels.},
}

Contributing

See the source code and issue tracker on GitHub.

See also

The CatastRo package provides similar functionality for the rest of Spain, excluding the Basque Country and Navarre.

About

R package to query Catastro de Navarra (Spain)

Topics

Resources

License

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors