use GDAL_FIX_ESRI_WKT in QgsOgrProvider::crs (fixes #5066 with GDAL 1.9)

This commit is contained in:
Juergen E. Fischer 2012-03-09 17:28:06 +01:00
parent 5e2f96cd3a
commit 2f135c1d63

View File

@ -2100,6 +2100,8 @@ QgsCoordinateReferenceSystem QgsOgrProvider::crs()
}
}
CPLSetConfigOption( "GDAL_FIX_ESRI_WKT", "TOWGS84" ); // add towgs84 parameter
OGRSpatialReferenceH mySpatialRefSys = OGR_L_GetSpatialRef( ogrLayer );
if ( mySpatialRefSys )
{