habitatmap
as an sf
multipolygon layerR/read_habitatdata.R
read_habitatmap.Rd
Returns the raw data source habitatmap
(De Saeger et al., 2023)
as a standardized sf
multipolygon layer
(tidyverse-styled, internationalized) in the Belgian Lambert 72 CRS
(EPSG-code 31370).
Given the size of the data source, this function
takes a bit longer than usual to run.
read_habitatmap( file = file.path(locate_n2khab_data(), "10_raw/habitatmap"), filter_hab = FALSE, fix_geom = FALSE, version = c("habitatmap_2023", "habitatmap_2020", "habitatmap_2018") )
file | The absolute or relative file path of the data source.
The default follows the data management advice in the
vignette on data storage (run |
---|---|
filter_hab | If |
fix_geom | Logical.
Should invalid or corrupt geometries be fixed in the resulting |
version | Version ID of the data source. Defaults to the latest available version defined by the package. |
A Simple feature collection of
type MULTIPOLYGON
.
De Saeger S., Dhaluin P., Erens R., Guelinckx G., Hennebel D., Jacobs I., Kumpen M., Van Oost F., Spanhove T., Leyssen A., Oosterlynck P., Van Dam G., Van Hove M., Wils C. (red.) (2023). Biologische Waarderingskaart en Natura 2000 Habitatkaart, uitgave 2023. (Rapporten van het Instituut voor Natuur- en Bosonderzoek; Nr. 31). Instituut voor Natuur- en Bosonderzoek (INBO). doi:10.21436/inbor.96375305 .
De Saeger, S., Oosterlynck, P. & Paelinckx, D. (2017). The Biological Valuation Map (BVM): a field-driven survey of land cover and vegetation in the Flemish Region of Belgium. Documents phytosociologiques - Actes du colloque de Saint-Mandé 2012 - Prodrome et cartographie des végétations de France - 2017. Vol. 6: 372-382.
Other functions involved in processing the 'habitatmap' data source:
read_habitatmap_stdized()
,
read_habitatmap_terr()
,
read_watersurfaces_hab()
if (FALSE) { # This example supposes that your working directory or a directory up to 10 # levels above has the 'n2khab_data' folder AND that the latest version of # the 'habitatmap' # data source is present in the default subdirectory. # In all other cases, this example won't work but at least you can # consider what to do. hm <- read_habitatmap() hm hm_valid <- read_habitatmap(fix_geom = TRUE) hm_valid all(sf::st_is_valid(hm)) all(sf::st_is_valid(hm_valid)) }