[Qgis-developer] OGRSpatialReference problem in QGIS

Florian Hillen fhillen at uni-osnabrueck.de
Tue Aug 18 09:15:37 EDT 2009

Hi Frank,

everythings OK with the path and the wkt now:


But the file rasterfile hasn't got the correct settings after the warp, so
I have to check my code again.

Thanks again for the help.

Best regards,

> Florian Hillen wrote:
>> Hi Frank,
>> you're right. I use the OSGeo4W package under windows, so the files are
>> in
>> C:\OSGeo4W\share\gdal and no environment variable is set.
> Florian,
> On my system the qgis 1.0 icon runs the \osgeo4w\apps\gis\qgis.bat
> file which runs \osgeo4w\bin\gdal16.bat which sets the GDAL_DATA
> environment variable to \osgeo4w\apps\gdal-16\share\data which seems
> appropriate.
> If I run the command:
>    gdal_translate -a_srs "+proj=latlong +datum=potsdam" in.tif out.tif
> I get a file with an SRS like I expect instead of the unretreivable
> values you get.
> I cannot easily test from within qgis.
> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the Qgis-developer mailing list