[GRASS-SVN] r37307 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 20 13:04:20 EDT 2009


Author: hamish
Date: 2009-05-20 13:04:20 -0400 (Wed, 20 May 2009)
New Revision: 37307

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
fix bearing angle (compass convention)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-05-20 11:20:43 UTC (rev 37306)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-05-20 17:04:20 UTC (rev 37307)
@@ -1427,7 +1427,7 @@
 
         if self.Map.projinfo['proj'] == 'xy' or 'degree' not in self.Map.projinfo['unit']:
             angle = int(math.degrees(math.atan2(north,east)) + 0.5)
-            angle = angle+90
+            angle = 180-angle;
             if angle < 0: angle = 360+angle
 
             mstring = 'segment = %s %s\ttotal distance = %s %s\tbearing = %d deg' \



More information about the grass-commit mailing list