Browse Source

wxGUI: fix latlong proj in statusbar
(merge from devbr6, https://trac.osgeo.org/grass/changeset/38152)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38153 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 years ago
parent
commit
1cd40ad7dd
1 changed files with 7 additions and 6 deletions
  1. 7 6
      gui/wxpython/gui_modules/mapdisp.py

+ 7 - 6
gui/wxpython/gui_modules/mapdisp.py

@@ -882,12 +882,12 @@ class MapFrame(wx.Frame):
                                            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 @@ class MapFrame(wx.Frame):
                                                                    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]))