[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:

PROJCS["unnamed",GEOGCS["DHDN",DATUM["Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel
1841",6377397.155,299.1528128,AUTHORITY["EPSG","7004"]],TOWGS84[606,23,413,0,0,0,0],AUTHORITY["EPSG","6314"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4314"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",9],PARAMETER["scale_factor",1],PARAMETER["false_easting",3500000],PARAMETER["false_northing",0],UNIT["Meter",1]]

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


> 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