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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 1 11:55:08 EDT 2009


Author: martinl
Date: 2009-07-01 11:55:08 -0400 (Wed, 01 Jul 2009)
New Revision: 38146

Modified:
   grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: fix m.proj


Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py	2009-07-01 14:54:19 UTC (rev 38145)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py	2009-07-01 15:55:08 UTC (rev 38146)
@@ -424,17 +424,20 @@
     if not projIn:
         projIn = gcmd.RunCommand('g.proj',
                                  flags = 'jf',
-                                 read = True)
+                                 read = True).rstrip('\n')
+    
     coors = gcmd.RunCommand('m.proj',
                             flags = flags,
+                            input = '-',
                             proj_in = projIn,
                             proj_out = projOut,
-                            stdin = '%f|%f' % (coord[0], coord[1]),
+                            fs = ';',
+                            stdin = '%f;%f' % (coord[0], coord[1]),
                             read = True)
     if coors:
-        coors = coors.split('\t')
+        coors = coors.split(';')
         e = coors[0]
-        n = coors[1].split(' ')[0].strip()
+        n = coors[1]
         try:
             proj = projOut.split(' ')[0].split('=')[1]
         except IndexError:



More information about the grass-commit mailing list