Skip to content

Commit

Permalink
Changed poorly named EPSGID constant to GEOEPSG_ID
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9005 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 6, 2008
1 parent 2d714e4 commit fe533ca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/core/qgis.sip
Expand Up @@ -99,7 +99,7 @@ public:
/** Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id */
const long GEOSRS_ID;
/** Magic number for a geographic coord sys in EPSG ID format */
const long EPSGID;
const long GEOEPSG_ID;
/** The length of teh string "+proj=" */
const int PROJ_PREFIX_LEN;
/** The length of teh string "+ellps=" */
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgis.h
Expand Up @@ -122,7 +122,7 @@ class CORE_EXPORT QGis
/** Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id */
const long GEOSRS_ID = 2585;
/** Magic number for a geographic coord sys in EPSG ID format */
const long EPSGID = 4326;
const long GEOEPSG_ID = 4326;
/** The length of teh string "+proj=" */
const int PROJ_PREFIX_LEN = 6;
/** The length of teh string "+ellps=" */
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsdistancearea.cpp
Expand Up @@ -43,7 +43,7 @@ QgsDistanceArea::QgsDistanceArea()
// init with default settings
mProjectionsEnabled = FALSE;
mCoordTransform = new QgsCoordinateTransform;
setSourceEPSG(EPSGID); // WGS 84
setSourceEPSG(GEOEPSG_ID); // WGS 84
setEllipsoid("WGS84");
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmaprenderer.cpp
Expand Up @@ -48,7 +48,7 @@ QgsMapRenderer::QgsMapRenderer()
mSize = QSize(0,0);

mProjectionsEnabled = FALSE;
mDestSRS = new QgsSpatialRefSys(EPSGID, QgsSpatialRefSys::EPSG); //WGS 84
mDestSRS = new QgsSpatialRefSys(GEOEPSG_ID, QgsSpatialRefSys::EPSG); //WGS 84
}

QgsMapRenderer::~QgsMapRenderer()
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsspatialrefsys.cpp
Expand Up @@ -953,7 +953,7 @@ bool QgsSpatialRefSys::readXML( QDomNode & theNode )
else
{
// Return default SRS if none was found in the XML.
createFromEpsg(EPSGID);
createFromEpsg(GEOEPSG_ID);
}
return true;
}
Expand Down

0 comments on commit fe533ca

Please sign in to comment.