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

read_watersurfaces(): support version watersurfaces_v1.2 and optionally fix geometries #168

Closed florisvdh closed 11 months ago

florisvdh commented 12 months ago

Apart from updated data, for version watersurfaces_v1.2 an extra variable water_level_management is returned. See https://github.com/inbo/n2khab-preprocessing/pull/64 for an exploration of this data source version.

read_watersurfaces() now optionally fixes invalid or corrupt geometries (logical argument fix_geom; default is FALSE), implementing https://github.com/inbo/n2khab-preprocessing/issues/60#issuecomment-1803487252. This applies to all versions, and should be used when generating derived data sources.

@ToonHub, @cecileherr or others, feel free to review.