[QGIS Commit] r12240 - trunk/qgis/src/plugins/coordinate_capture

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Nov 24 12:43:02 EST 2009


Author: timlinux
Date: 2009-11-24 12:43:00 -0500 (Tue, 24 Nov 2009)
New Revision: 12240

Modified:
   trunk/qgis/src/plugins/coordinate_capture/coordinatecapture.cpp
Log:
Update suggested by marisn on irc to set degree units to have a higher precision than cartesian

Modified: trunk/qgis/src/plugins/coordinate_capture/coordinatecapture.cpp
===================================================================
--- trunk/qgis/src/plugins/coordinate_capture/coordinatecapture.cpp	2009-11-24 13:14:44 UTC (rev 12239)
+++ trunk/qgis/src/plugins/coordinate_capture/coordinatecapture.cpp	2009-11-24 17:43:00 UTC (rev 12240)
@@ -181,14 +181,14 @@
   {
     mCrs.createFromSrsId( mySelector.selectedCrsId() );
     mTransform.setDestCRS( mCrs );
-    mUserCrsDisplayPrecision = ( mCrs.mapUnits() == QGis::Degrees ) ? 3 : 5; //precision depends on CRS units
+    mUserCrsDisplayPrecision = ( mCrs.mapUnits() == QGis::Degrees ) ? 5 : 3; //precision depends on CRS units
   }
 }
 
 void CoordinateCapture::setSourceCrs()
 {
   mTransform.setSourceCrs( mQGisIface->mapCanvas()->mapRenderer()->destinationSrs() );
-  mCanvasDisplayPrecision = ( mQGisIface->mapCanvas()->mapRenderer()->destinationSrs().mapUnits() == QGis::Degrees ) ? 3 : 5; // for the map canvas coordinate display
+  mCanvasDisplayPrecision = ( mQGisIface->mapCanvas()->mapRenderer()->destinationSrs().mapUnits() == QGis::Degrees ) ? 5 : 3; // for the map canvas coordinate display
 }
 
 void CoordinateCapture::mouseClicked( QgsPoint thePoint )



More information about the QGIS-commit mailing list