Skip to content

Commit

Permalink
Replaced some occurences of default srs id with epgs id
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8673 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jun 23, 2008
1 parent 24e80f1 commit d6ec8ce
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsdistancearea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ QgsDistanceArea::QgsDistanceArea()
// init with default settings
mProjectionsEnabled = FALSE;
mCoordTransform = new QgsCoordinateTransform;
setSourceSRS(GEOSRS_ID); // WGS 84
setSourceSRS(EPSGID); // WGS 84
setEllipsoid("WGS84");
}

Expand All @@ -60,10 +60,10 @@ void QgsDistanceArea::setProjectionsEnabled(bool flag)
}


void QgsDistanceArea::setSourceSRS(long srsid)
void QgsDistanceArea::setSourceSRS(long epsgId)
{
QgsSpatialRefSys srcSRS;
srcSRS.createFromSrsId(srsid);
srcSRS.createFromEpsg(epsgId);
mCoordTransform->setSourceSRS(srcSRS);
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsdistancearea.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class CORE_EXPORT QgsDistanceArea
bool projectionsEnabled() { return mProjectionsEnabled; }

//! sets source spatial reference system (by QGIS SRS)
void setSourceSRS(long srsid);
void setSourceSRS(long epsgId);

//! returns source spatial reference system
long sourceSRS() { return mSourceRefSys; }
Expand Down
3 changes: 1 addition & 2 deletions src/core/qgsmaprender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ QgsMapRender::QgsMapRender()
mSize = QSize(0,0);

mProjectionsEnabled = FALSE;
mDestSRS = new QgsSpatialRefSys(GEOSRS_ID, QgsSpatialRefSys::QGIS_SRSID); // WGS 84

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

QgsMapRender::~QgsMapRender()
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsspatialrefsys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ bool QgsSpatialRefSys::readXML( QDomNode & theNode )
else
{
// Return default SRS if none was found in the XML.
createFromSrsId(GEOSRS_ID);
createFromEpsg(EPSGID);
}
return true;
}
Expand Down
2 changes: 2 additions & 0 deletions src/gui/qgsprojectionselector.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class GUI_EXPORT QgsProjectionSelector: public QWidget, private Ui::QgsProjectio

void setSelectedSRSID(long theSRSID);

//void setSelectedEPSG(long epsg);

QString getCurrentProj4String();

//! Gets the current PostGIS-style projection identifier
Expand Down

0 comments on commit d6ec8ce

Please sign in to comment.