This question already has an answer here:
- How to understand GeoTIFF tags? 2 answers
I'm reading some GeoTIFF files into my app using
libgeotiff. After the model of the
listgeo program that comes with libgeotiff, I want to extract the extents (corners) of the GeoTIFF so I can position it.
I only really want to deal with coords in WGS84 and UTM (ultimately, I'll convert WGS84 to UTM). However, I don't know which bit of the GeoTIFF info tells me what I want to know about the 'corner' coords. Obviously, I can use the magnitude of the numbers to guess if the resulting coords are lats and longs, but surely there must be an official way?
Something like (pseudo-code):
If (geotifftag == UTM || geotifftag == WGS84) // Proceed Else Msg("Unrecognised data format") End If
Could anybody help me out with what the GeoTIFF tags actually tell me?