[GRASS-SVN] r38153 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 2 04:08:55 EDT 2009


Author: martinl
Date: 2009-07-02 04:08:55 -0400 (Thu, 02 Jul 2009)
New Revision: 38153

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: fix latlong proj in statusbar
       (merge from devbr6, r38152)


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2009-07-02 08:05:39 UTC (rev 38152)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2009-07-02 08:08:55 UTC (rev 38153)
@@ -882,12 +882,12 @@
                                            key='projection',
                                            subkey='proj4')
                 proj, coord1 = utils.ReprojectCoordinates(coord = (region["w"], region["s"]),
-                                                          projOut = projOut)
+                                                          projOut = projOut, flags = 'd')
                 proj, coord2 = utils.ReprojectCoordinates(coord = (region["e"], region["n"]),
-                                                          projOut = projOut)
+                                                          projOut = projOut, flags = 'd')
                 if sel == 2:
                     proj, coord3 = utils.ReprojectCoordinates(coord = (region["ewres"], region["nsres"]),
-                                                              projOut = projOut)
+                                                              projOut = projOut, flags = 'd')
                 
                 if coord1 and coord2:
                     if proj in ('ll', 'latlong', 'longlat'):
@@ -1016,11 +1016,12 @@
                                                                    region['center_northing']),
                                                           projOut = UserSettings.Get(group='display',
                                                                                      key='projection',
-                                                                                     subkey='proj4'))
+                                                                                     subkey='proj4'),
+                                                          flags = 'd')
                 if coord:
                     if proj in ('ll', 'latlong', 'longlat'):
-                        self.statusbarWin['goto'].SetValue("%s; %s" % (coord[0],
-                                                                           coord[1]))
+                        self.statusbarWin['goto'].SetValue("%s" % utils.Deg2DMS(coord[0],
+                                                                                coord[1]))
                     else:
                         self.statusbarWin['goto'].SetValue("%.2f; %.2f" % (coord[0],
                                                                            coord[1]))



More information about the grass-commit mailing list