Added code to morph the projection WKT when loading a shapefile.

git-svn-id: http://svn.osgeo.org/qgis/trunk@2636 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2005-01-16 00:10:20 +00:00
parent 2dfdc52353
commit 7b4a962012

View File

@ -156,6 +156,19 @@ QString QgsOgrProvider::getProjectionWKT()
}
else
{
// if appropriate, morph the projection from ESRI form
QString fileName = ogrDataSource->GetName();
#ifdef QGISDEBUG
std::cerr << "Data source file name is : " << fileName << std::endl;
#endif
if(fileName.contains(".shp"))
{
#ifdef QGISDEBUG
std::cerr << "Morphing " << fileName << " WKT from ESRI" << std::endl;
#endif
// morph it
mySpatialRefSys->morphFromESRI();
}
char *pszWKT = NULL;
mySpatialRefSys->exportToWkt( &pszWKT );
QString myWKTString = QString(pszWKT);