-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
49 lines (38 loc) · 1.68 KB
/
README.Rmd
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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# icgc.osm <a href="https://osm-catalan.github.io/icgc.osm"><img src='man/figures/logo.svg' align="right" height=110 alt="Web del projecte"/></a>
<!-- badges: start -->
[![pre-commit](https://github.com/OSM-Catalan/icgc.osm/actions/workflows/pre-commit.yaml/badge.svg)](https://github.com/OSM-Catalan/icgc.osm/actions/workflows/pre-commit.yaml)
[![R-CMD-check](https://github.com/OSM-Catalan/icgc.osm/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/OSM-Catalan/icgc.osm/actions/workflows/R-CMD-check.yaml)
[![test-coverage](https://github.com/OSM-Catalan/icgc.osm/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/OSM-Catalan/icgc.osm/actions/workflows/test-coverage.yaml)
<!-- badges: end -->
`icgc.osm` és un repositori que serveix per coordinar la col·laboració entre
l'Institut Cartogràfic i Geològic de Catalunya (ICGC) i OpenStreetMap (OSM) un
cop [autoritzada la reutilització de les dades de l'ICGC](https://wiki.openstreetmap.org/wiki/File:20230109_CartaObertaICGC-OSM_SIGNADA.pdf).
## Instal·lació del paquet d'R
```r
devtools::install_github("OSM-Catalan/icgc.osm")
```
## Exemples
Mostra tots els caps de la base de dades de l'ICGC
```r
library(icgc.osm)
caps <- icgc_NGCat[grepl("^Cap ", icgc_NGCat$Toponim) & icgc_NGCat$Concepte == "lit.", ]
caps <- sf::st_as_sf(
caps,
coords=c("UTMX_ETRS89", "UTMY_ETRS89"),
crs=sf::st_crs("EPSG:25831")
)
mapview::mapview(caps)
```
![](man/figures/caps.png)