Re: [gdal-dev] lib to get from GDAL/geotiff to PROJ4

2013-04-17 Thread wsvries
Thanks. I took the code you mentioned, installed the gdal libdev and run G++ on it and voila! Etienne Tourigny schreef op 2013-04-17 13:48: You can have a look at the code used by the gdalsrsinfo , which basically opens a GDAL/OGR datasource and outputs the proj4 (or wkt) string. Assuming yo

Re: [gdal-dev] lib to get from GDAL/geotiff to PROJ4

2013-04-17 Thread Etienne Tourigny
You can have a look at the code used by the gdalsrsinfo , which basically opens a GDAL/OGR datasource and outputs the proj4 (or wkt) string. Assuming you use c/c++ of course... http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdalsrsinfo.cpp Here is the relevant code (some declarations missing

[gdal-dev] lib to get from GDAL/geotiff to PROJ4

2013-04-17 Thread wsvries
Hi, I am working on an application (adding terrain info to maps for 3D rendering) that does some heavy projection calculations using the proj4 libs. Input for now is geotiff. I have Googled a lot, but I was not able to find any libs that can output proj4 strings based on geotiff input. I have