[gdal-dev] Spatial Resolution from img file

user gdal userofgdal at gmail.com
Thu Jul 30 04:03:36 PDT 2015


Dear friends,
I have a geo ref. ERDAS img file. How to obtain its spatial resolution
programmatically (C++)?

One suggestion I received was to refer to gdalinfo.c However I couldn't get
the required information in gdalinfo.c. I also felt it to be unclear. What
I have seen in gdalinfo is how to get columns, rows etc. (for which we
needn't visit the gdalinfo program).

I expected something like GetXResolution(..) and GetYResolution(...) kind
of situation. But...

Any help, please!

With
thanks,


Yours sincerely,

B. Ramesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150730/cdc1ad23/attachment.html>


More information about the gdal-dev mailing list