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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 4 11:26:10 EDT 2009


Author: martinl
Date: 2009-07-04 11:26:10 -0400 (Sat, 04 Jul 2009)
New Revision: 38205

Modified:
   grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
m.proj uses current location as input if proj_input is not given


Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py	2009-07-04 15:24:24 UTC (rev 38204)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py	2009-07-04 15:26:10 UTC (rev 38205)
@@ -489,16 +489,11 @@
 
     @return reprojected coordinates (returned as tuple)
     """
-    if not projIn:
-        projIn = gcmd.RunCommand('g.proj',
-                                 flags = 'jf',
-                                 read = True).rstrip('\n')
-    
     coors = gcmd.RunCommand('m.proj',
                             flags = flags,
                             input = '-',
-                            proj_in = projIn,
-                            proj_out = projOut,
+                            proj_input = projIn,
+                            proj_output = projOut,
                             fs = ';',
                             stdin = '%f;%f' % (coord[0], coord[1]),
                             read = True)



More information about the grass-commit mailing list