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

Fixed geotiff reading for tie point and PixelIsPoint #2061

Merged
merged 1 commit into from Mar 14, 2017

Conversation

Projects
None yet
2 participants
@lossyrob
Member

lossyrob commented Mar 13, 2017

Fixes #1574

When dealing with GeoTiffs that use ModelTiepointTag and ModelPixelScaleTag to define their coordinate transform, one must take into account whether the raster is considered PixelIsPoint. If this is the case, the tie point references the center of the cell, and the extent needs to be adjusted.

This approach is taken by GDAL, see here: https://github.com/OSGeo/gdal/blob/7480b720aa74c87d63d1fbf563373dc7c24fa191/gdal/frmts/gtiff/gt_wkt_srs.cpp#L2722

@lossyrob lossyrob added this to the 1.1 milestone Mar 13, 2017

@echeipesh echeipesh removed the in progress label Mar 14, 2017

@echeipesh echeipesh merged commit f148592 into locationtech:master Mar 14, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment