inbo / n2khab

R package with preprocessing functions and standard reference data for Flemish Natura 2000 (N2K) habitat (HAB) analyses
https://inbo.github.io/n2khab
GNU General Public License v3.0
2 stars 1 forks source link

New function: read_habitatsprings() #45

Closed florisvdh closed 4 years ago

florisvdh commented 4 years ago

This function returns the raw data source habitatsprings as an sf point layer, in the Belgian Lambert 72 CRS.

It represents sites that correspond with presence or absence of the Natura 2000 habitat type 7220 (Petrifying springs with tufa formation (Cratoneurion)) in springs and streaming water segments in the Flemish Region, Belgium.

Run the following in R to install the n2khab package from this branch:

remotes::install_github("inbo/n2khab", ref = "habitatsprings", build_vignettes = TRUE)

Trying the new function requires the habitatsprings.geojson file (available at Zenodo) to be present in its standard location, i.e. inside a folder n2khab_data/10_raw/habitatsprings/. The n2khab_data/ folder should be in your working directory or in a directory up to 10 levels above.

Then you can do:

library(n2khab)
?read_habitatsprings
habitatsprings <- read_habitatsprings()
habitatsprings
mapview::mapview(habitatsprings)