[Gdal-dev] Wrong offset or trade secret
John O Rountree
JohnRountree at msn.com
Sat Oct 1 12:39:21 EDT 2005
Hello looking for help. I must be stupid.
I wrote a geotiff parser just to know how! The test file uses little-endian "MM". The offsets points to correct information for tags with Field Types other than the two double (8 byte) values; tags 33550 & 33922. ModelPixelScaleX is suppose to = 60 and Y = 60. Raw directory Data = 33550, 12, 3, 262830; The 262830 offset points to (8bytes) 0,0,0,0,0,0,78,64 and Y = the same 78,64 value. There is no way using little or big-endian that this will ever = 60! Using little-endian actual value would be 4.6********+e18. A Huge # and the same results with ModelTiePointTagI-K = huge #'s!
The file is OK as other readers extract the correct values. IS THERE SOME MATH REQUIRED to convert 4.6*****+e18 # to 60?
Thanks for any insight; no one else seems to know.
John Rountree
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20051001/9f076f84/attachment.html
More information about the Gdal-dev
mailing list