[GRASS-SVN] r52248 - in grass/trunk/gui/wxpython: mapdisp wxplot

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 28 02:21:40 PDT 2012


Author: annakrat
Date: 2012-06-28 02:21:39 -0700 (Thu, 28 Jun 2012)
New Revision: 52248

Modified:
   grass/trunk/gui/wxpython/mapdisp/frame.py
   grass/trunk/gui/wxpython/wxplot/profile.py
Log:
wxGUI: change in r.what parameter name affects query and profile tool

Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2012-06-28 08:56:46 UTC (rev 52247)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2012-06-28 09:21:39 UTC (rev 52248)
@@ -685,7 +685,7 @@
         if rast:
             rcmd.append('-f')
             rcmd.append('-n')
-            rcmd.append('input=%s' % ','.join(rast))
+            rcmd.append('map=%s' % ','.join(rast))
             rcmd.append('coordinates=%f,%f' % (float(east), float(north)))
         
         if vect:

Modified: grass/trunk/gui/wxpython/wxplot/profile.py
===================================================================
--- grass/trunk/gui/wxpython/wxplot/profile.py	2012-06-28 08:56:46 UTC (rev 52247)
+++ grass/trunk/gui/wxpython/wxplot/profile.py	2012-06-28 09:21:39 UTC (rev 52248)
@@ -162,7 +162,7 @@
                 ret = RunCommand('r.what',
                                  parent = self,
                                  read = True,
-                                 input = self.rasterList[0],
+                                 map = self.rasterList[0],
                                  coordinates = '%d,%d' % (point[0],point[1]))
                 
                 val = ret.splitlines()[0].split('|')[3]



More information about the grass-commit mailing list