[gdal-dev] Re: Help with setting GCPs in a GeoTiff

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Sun Oct 9 05:13:35 EDT 2011


matt.feemster <matt.feemster <at> ga-asi.com> writes:


> 
> And shouldn't the far pixel count be the extent minus one since it's zero
> indexed?

Yes, but remember that the anchor point is in the top-left corner or the pixel
and therefore extent minus one might give you a different result than you
believe. The right side gcp will not be located at the right side extent of the
whole visible image but one pixel width to the left and the same thing happens
at the bottom of the image. It may be OK in your use case but think about it.

-Jukka Rahkonen-



More information about the gdal-dev mailing list