1

I received an excellent answer to my question of how to get the lat/lon coordinates of the corners of a geotiff file. I used gdalinfo. The lat/lon info comes out into a file. Similarly I turned the geotiff file into a bmp file using gdal_translate thanks to work colleague in another city who is hard to get hold of. It would be much better for me if I could get the bmp file directly into memory, and the lat/lon coordinates directly into C++ variables. Can anyone give me advice on how to do that?

1

you can check the source code of gdalinfo. try GDALGetGeoTransform

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.