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

Fixed geotiff reading for tie point and PixelIsPoint #2061

Merged
merged 1 commit into from
Mar 14, 2017

Conversation

lossyrob
Copy link
Member

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 merged commit f148592 into locationtech:master Mar 14, 2017
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