You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that above code already was a (temporary) workaround in order to prevent a warning, see #61.
More ideally, the above crs<- statements can be skipped: the CRS is in the files. However, because the returned proj4string did not exactly match the one of st_crs(31370), it was overwritten to prevent warnings in later processing steps.
In the long run, this will not suffice as it can be expected that raster will undergo changes as well. Also its successor terra is a package to keep an eye on.
The text was updated successfully, but these errors were encountered:
Further follow-up to #67.
By using sp::CRS(SRS_string = "EPSG:31370"), compatibility is
offered:
- both for raster from CRAN and raster from GitHub
- both for PROJ4/GDAL2 and PROJ6+/GDAL3
To be revisited once raster from CRAN accepts simple EPSG-code
as input for crs<- (as on GitHub), i.e. with raster>=3.3-16
This will affect all three
read_GRTSmh***()
functions, and is directly connected to rspatial/raster#78.Due to changes in PROJ, the usage of
+init=epsg:XXXX
should be avoided, as listed here.Planning to make a fix in below lines, probably similar to Nowosad/raceland@423758c - i.e. code which exports the full proj4string.
Note that above code already was a (temporary) workaround in order to prevent a warning, see #61.
More ideally, the above
crs<-
statements can be skipped: the CRS is in the files. However, because the returned proj4string did not exactly match the one ofst_crs(31370)
, it was overwritten to prevent warnings in later processing steps.In the long run, this will not suffice as it can be expected that raster will undergo changes as well. Also its successor terra is a package to keep an eye on.
The text was updated successfully, but these errors were encountered: