Skip to content

Commit d6ec8ce

Browse files
author
mhugent
committedJun 23, 2008
Replaced some occurences of default srs id with epgs id
git-svn-id: http://svn.osgeo.org/qgis/trunk@8673 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 24e80f1 commit d6ec8ce

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed
 

‎src/core/qgsdistancearea.cpp

Lines changed: 3 additions & 3 deletions
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-
setSourceSRS(GEOSRS_ID); // WGS 84
46+
setSourceSRS(EPSGID); // WGS 84
4747
setEllipsoid("WGS84");
4848
}
4949

@@ -60,10 +60,10 @@ void QgsDistanceArea::setProjectionsEnabled(bool flag)
6060
}
6161

6262

63-
void QgsDistanceArea::setSourceSRS(long srsid)
63+
void QgsDistanceArea::setSourceSRS(long epsgId)
6464
{
6565
QgsSpatialRefSys srcSRS;
66-
srcSRS.createFromSrsId(srsid);
66+
srcSRS.createFromEpsg(epsgId);
6767
mCoordTransform->setSourceSRS(srcSRS);
6868
}
6969

‎src/core/qgsdistancearea.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CORE_EXPORT QgsDistanceArea
5050
bool projectionsEnabled() { return mProjectionsEnabled; }
5151

5252
//! sets source spatial reference system (by QGIS SRS)
53-
void setSourceSRS(long srsid);
53+
void setSourceSRS(long epsgId);
5454

5555
//! returns source spatial reference system
5656
long sourceSRS() { return mSourceRefSys; }

‎src/core/qgsmaprender.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ QgsMapRender::QgsMapRender()
4848
mSize = QSize(0,0);
4949

5050
mProjectionsEnabled = FALSE;
51-
mDestSRS = new QgsSpatialRefSys(GEOSRS_ID, QgsSpatialRefSys::QGIS_SRSID); // WGS 84
52-
51+
mDestSRS = new QgsSpatialRefSys(EPSGID, QgsSpatialRefSys::EPSG); //WGS 84
5352
}
5453

5554
QgsMapRender::~QgsMapRender()

‎src/core/qgsspatialrefsys.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ bool QgsSpatialRefSys::readXML( QDomNode & theNode )
954954
else
955955
{
956956
// Return default SRS if none was found in the XML.
957-
createFromSrsId(GEOSRS_ID);
957+
createFromEpsg(EPSGID);
958958
}
959959
return true;
960960
}

‎src/gui/qgsprojectionselector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class GUI_EXPORT QgsProjectionSelector: public QWidget, private Ui::QgsProjectio
7575

7676
void setSelectedSRSID(long theSRSID);
7777

78+
//void setSelectedEPSG(long epsg);
79+
7880
QString getCurrentProj4String();
7981

8082
//! Gets the current PostGIS-style projection identifier

0 commit comments

Comments
 (0)