[GRASS-SVN] r38152 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 2 04:05:40 EDT 2009
Author: martinl
Date: 2009-07-02 04:05:39 -0400 (Thu, 02 Jul 2009)
New Revision: 38152
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: fix latlong proj in statusbar
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py 2009-07-01 20:21:56 UTC (rev 38151)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py 2009-07-02 08:05:39 UTC (rev 38152)
@@ -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