-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vulnerability to PROJ6/GDAL3 #303 #160
Labels
bug
Something isn't working
Comments
@Nowosad Can you tackle this? |
@mhesselbarth I will take a look at this problem during the next weekend. |
To reproduce it:
|
The issue is with the CRS of the built-in dataset library(landscapemetrics)
library(raster)
#> Loading required package: sp
data("podlasie_ccilc")
podlasie_ccilc
#> class : RasterLayer
#> dimensions : 371, 457, 169547 (nrow, ncol, ncell)
#> resolution : 0.002777778, 0.002777778 (x, y)
#> extent : 22.23056, 23.5, 52.8, 53.83056 (xmin, xmax, ymin, ymax)
#> crs : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
#> source : memory
#> names : ESACCI.LC.L4.LCCS.Map.300m.P1Y.1992_2015.v2.0.7
#> values : 10, 210 (min, max)
plot(podlasie_ccilc)
#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum WGS_1984 in CRS definition,
#> but +towgs84= values preserved
#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum Unknown_based_on_WGS84_ellipsoid in CRS definition,
#> but +towgs84= values preserved
#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum WGS_1984 in CRS definition,
#> but +towgs84= values preserved @rsbivand could you advice us on what is the recommend action to fix this issue? |
Thanks for the fix @Nowosad. Does this mean we can close this issue? |
I hope so;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running revdeps from sp (sp (my github fork) with development rgdal from R-Forge):
See:
http://rgdal.r-forge.r-project.org/articles/PROJ6_GDAL3.html
r-spatial/sf#1231
r-spatial/sf#1187
r-spatial/sf#1146
r-spatial/discuss#28
for background. See:
r-spatial/discuss#28 (comment)
for a way of testing fixes in a docker container contributed by Jakub Nowosad.
The text was updated successfully, but these errors were encountered: