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

Version 0.1.2: workaround for read_GRTS***() functions #61

Closed florisvdh closed 4 years ago

florisvdh commented 4 years ago

In a specific installation, an error occurred as described here, and appears to be related to the deprecated use of "+init=epsg:xxxx". This affects the functions read_GRTSmh(), read_GRTSmh_base4frac() and read_GRTSmh_diffres().

Not using gdalUtils::gdalsrsinfo() (and dropping gdalUtils dependency) currently works around the problem: the raster method crs<- also accepts proj4strings instead of a CRS object.

Further problems with this are to be expected in the future, given related challenges in other packages, e.g. in sf.

Also cherry-picked some management-related commits of branch rc0.2 (future release candidate).