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

don't negate Y-res in default geotransform #1307

Merged
merged 1 commit into from
Mar 18, 2020
Merged

don't negate Y-res in default geotransform #1307

merged 1 commit into from
Mar 18, 2020

Conversation

mdsumner
Copy link
Member

@mdsumner mdsumner commented Mar 18, 2020

I think this should return as per the GDAL documentation - with Y-res = 1.

Cf #1306

This way, the gdal_read() function does as GDAL says, and other tools can apply the Y-flip and shift to put a non-geo raster into natural orientation, and with [0, nrow, 0, ncol].

I had more to follow up with stars but that's stalled for now

@edzer edzer merged commit 2eca69b into r-spatial:master Mar 18, 2020
@edzer
Copy link
Member

edzer commented Mar 18, 2020

I'm going to revert this back, because otherwise

r = read_stars("~/svn/rgdal/pkg/inst/pictures/Rlogo.jpg")

gives

x

edzer added a commit that referenced this pull request Mar 18, 2020
@mdsumner
Copy link
Member Author

Well, it should be changed in stars which is what I said above ...

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

Successfully merging this pull request may close these issues.

2 participants