[QGIS Commit] r8647 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Jun 11 11:08:07 EDT 2008


Author: mhugent
Date: 2008-06-11 11:08:07 -0400 (Wed, 11 Jun 2008)
New Revision: 8647

Modified:
   trunk/qgis/src/core/qgsspatialrefsys.cpp
Log:
Accept EPSG and epsg when constructing srs

Modified: trunk/qgis/src/core/qgsspatialrefsys.cpp
===================================================================
--- trunk/qgis/src/core/qgsspatialrefsys.cpp	2008-06-11 06:22:32 UTC (rev 8646)
+++ trunk/qgis/src/core/qgsspatialrefsys.cpp	2008-06-11 15:08:07 UTC (rev 8647)
@@ -93,11 +93,11 @@
 {
   QStringList parts = theCrs.split(":");
 
-  if (parts.at(0) == "EPSG")
+  if(parts.at(0).compare("EPSG", Qt::CaseInsensitive) == 0)
   {
     createFromEpsg( parts.at(1).toLong() );
   }
-  else if (parts.at(0) == "CRS")
+  else if(parts.at(0).compare("CRS", Qt::CaseInsensitive) == 0)
   {
     if (parts.at(1) == "84")
     {



More information about the QGIS-commit mailing list