knitr::opts_chunk$set(
  collapse = TRUE,
  message = FALSE,
  warning = FALSE,
  dev = "ragg_png",
  dpi = 300,
  tidy = "styler",
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
library(CatastRoNav)

CatastRoNav

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

CatastRoNav is a package that provide access to different API services of the Cadastre of Navarre. With CatastRoNav it is possible to download spatial objects as buildings or cadastral parcels.

Installation

You can install the developing version of CatastRoNav using the r-universe:

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

Alternatively, you can install the developing version of CatastRoNav with:

remotes::install_github("rOpenSpain/CatastRoNav", dependencies = TRUE)

Usage

The WFS service allows to download vector objects of specific cadastral elements. The result is provided as sf objects (See sf package).

library(CatastRoNav)
library(ggplot2)

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

Citation

print(citation("CatastRoNav"), style = "html")

A BibTeX entry for LaTeX users is:

toBibtex(citation("CatastRoNav"))

See also

The package CatastRo provides similar functionalities for Spain excluding the Basque Country and Navarre.

Terms and conditions of use

Data provided by the Government of Navarre under Creative Commons Attribution (CC BY 4.0). The service is provided "as is", and without guarantee of any kind, implicit or explicit.

Data source: SITNA -- Government of Navarre

Contributors

All contributions to this project are gratefully acknowledged using the allcontributors package following the allcontributors specification. Contributions of any kind are welcome!


dieghernan

fgoerlich


rOpenSpain/CatastRoNav documentation built on April 17, 2025, 3:13 a.m.