-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.qmd
More file actions
118 lines (92 loc) · 3.33 KB
/
README.qmd
File metadata and controls
118 lines (92 loc) · 3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
format: gfm
default-image-extension: ''
knitr:
opts_chunk:
collapse: true
comment: "#>"
warning: false
message: false
dev: "ragg_png"
tidy: "styler"
fig.path: "man/figures/README-"
dpi: 300
out.width: "100%"
---
<!-- README.md is generated from README.qmd. Please edit that file -->
```{r}
#| include: false
library(CatastRoNav)
```
# CatastRoNav <a href="https://ropenspain.github.io/CatastroNav/"><img src="man/figures/logo.png" alt="CatastRoNav website" align="right" height="139"/></a>
<!-- badges: start -->
[](https://ropenspain.es/)
[](https://ropenspain.r-universe.dev/CatastRoNav)
[](https://github.com/rOpenSpain/CatastRoNav/actions/workflows/roscron-check-standard.yaml)
[](https://app.codecov.io/gh/rOpenSpain/CatastroNav)
[](https://doi.org/10.5281/zenodo.6366407)
[](https://www.repostatus.org/#active)
<!-- badges: end -->
**CatastRoNav** is a package that provides access to different API services of
the [Cadastre of Navarre](https://geoportal.navarra.es/es/idena). 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](https://ropenspain.r-universe.dev/CatastRoNav):
```{r}
#| eval: false
# 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:
```{r}
#| eval: false
remotes::install_github("rOpenSpain/CatastRoNav", dependencies = TRUE)
```
## Usage
The WFS service allows downloading vector objects of specific cadastral
elements. The result is provided as `sf` objects (See the [**sf**
package](https://r-spatial.github.io/sf/)).
```{r}
#| label: wfs
#| fig-cap: "Extraction of buildings with CatastroNav in Olite"
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
```{r}
#| echo: false
#| results: asis
print(citation("CatastRoNav"), style = "html")
```
A BibTeX entry for LaTeX users is:
```{r}
#| echo: false
#| comment: ''
toBibtex(citation("CatastRoNav"))
```
## See also
The package [CatastRo](https://CRAN.R-project.org/package=CatastRo) provides
similar functionalities for the rest of 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)](https://creativecommons.org/licenses/by/4.0/). The service is
provided "as is", and without guarantee of any kind, implicit or explicit.
Data source: [SITNA -- Government of
Navarre](https://geoportal.navarra.es/es/inspire)