mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
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:
parent
2dfdc52353
commit
7b4a962012
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user