Skip to content

Fixed geotiff reading for tie point and PixelIsPoint - #2061

Merged
echeipesh merged 1 commit into
locationtech:masterfrom
lossyrob:fix/geotiff-tie-points
Mar 14, 2017
Merged

echeipesh merged 1 commit into
locationtech:masterfrom
lossyrob:fix/geotiff-tie-points

Conversation

@lossyrob

Copy link
Copy Markdown
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