Skip to content

Commit fe533ca

Browse files
author
timlinux
committed
Changed poorly named EPSGID constant to GEOEPSG_ID
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9005 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2d714e4 commit fe533ca

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

python/core/qgis.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public:
9999
/** Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id */
100100
const long GEOSRS_ID;
101101
/** Magic number for a geographic coord sys in EPSG ID format */
102-
const long EPSGID;
102+
const long GEOEPSG_ID;
103103
/** The length of teh string "+proj=" */
104104
const int PROJ_PREFIX_LEN;
105105
/** The length of teh string "+ellps=" */

src/core/qgis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class CORE_EXPORT QGis
122122
/** Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id */
123123
const long GEOSRS_ID = 2585;
124124
/** Magic number for a geographic coord sys in EPSG ID format */
125-
const long EPSGID = 4326;
125+
const long GEOEPSG_ID = 4326;
126126
/** The length of teh string "+proj=" */
127127
const int PROJ_PREFIX_LEN = 6;
128128
/** The length of teh string "+ellps=" */

src/core/qgsdistancearea.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ QgsDistanceArea::QgsDistanceArea()
4343
// init with default settings
4444
mProjectionsEnabled = FALSE;
4545
mCoordTransform = new QgsCoordinateTransform;
46-
setSourceEPSG(EPSGID); // WGS 84
46+
setSourceEPSG(GEOEPSG_ID); // WGS 84
4747
setEllipsoid("WGS84");
4848
}
4949

src/core/qgsmaprenderer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ QgsMapRenderer::QgsMapRenderer()
4848
mSize = QSize(0,0);
4949

5050
mProjectionsEnabled = FALSE;
51-
mDestSRS = new QgsSpatialRefSys(EPSGID, QgsSpatialRefSys::EPSG); //WGS 84
51+
mDestSRS = new QgsSpatialRefSys(GEOEPSG_ID, QgsSpatialRefSys::EPSG); //WGS 84
5252
}
5353

5454
QgsMapRenderer::~QgsMapRenderer()

src/core/qgsspatialrefsys.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ bool QgsSpatialRefSys::readXML( QDomNode & theNode )
953953
else
954954
{
955955
// Return default SRS if none was found in the XML.
956-
createFromEpsg(EPSGID);
956+
createFromEpsg(GEOEPSG_ID);
957957
}
958958
return true;
959959
}

0 commit comments

Comments
 (0)