Skip to content
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

getTile() sp subset or raster::crop issues with PROJ 6.1 and GDAL 3.0 #71

Closed
rsbivand opened this issue May 29, 2019 · 1 comment
Closed

Comments

@rsbivand
Copy link

During revdep checks for rgdal, I see that the getTile() example faila with identicalCRS(x, y) is not TRUE. This is my debug() output:

Browse[2]> class(x)
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
Browse[2]> class(sr)
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
Browse[2]> proj4string(x)
[1] "+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs"
Browse[2]> proj4string(sr)
[1] "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
Browse[2]> 
debug: sr[x, ]
Browse[2]> 
Error in .local(x, y, returnList, fn, ...) : 
  identicalCRS(x, y) is not TRUE

I think that this is similar to riatelab/cartography#54 and USGS-R/inlmisc#106, where the inlmisc issue is for a topology error in raster::crop() which you use in the other if() branch in not used here (here you use "[").

@fdetsch
Copy link
Owner

fdetsch commented Nov 14, 2019

For future reference: https://stat.ethz.ch/pipermail/r-sig-geo/2019-November/027801.html.

@rsbivand, I'll implement required changes asap, thanks for notifying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants