Obtain Latitude and Longitude from a GeoTIFF File

Posted by Mikee on Stack Overflow See other posts from Stack Overflow or by Mikee
Published on 2010-05-27T15:36:49Z Indexed on 2010/05/28 1:21 UTC
Read the original article Hit count: 265

Filed under:
|
|
|
|

Using GDAL in Python, how do you get the latitude and longitude of a GeoTIFF file?

GeoTIFF's do not appear to store any coordinate information. Instead, they store the XY Origin coordinates. However, the XY coordinates do not provide the latitude and longitude of the top left corner and bottom left corner.

It appears I will need to do some math to solve this problem, but I don't have a clue on where to start.

What procedure is required to have this performed?

I know that the GetGeoTransform() method is important for this, however, I don't know what to do with it from there.

© Stack Overflow or respective owner

Related posts about python

Related posts about math