[GRASS-SVN] r51810 - grass/trunk/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 27 02:43:29 PDT 2012


Author: annakrat
Date: 2012-05-27 02:43:28 -0700 (Sun, 27 May 2012)
New Revision: 51810

Modified:
   grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: fix vector querying - v.what has new parameter name

Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2012-05-27 09:00:12 UTC (rev 51809)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2012-05-27 09:43:28 UTC (rev 51810)
@@ -690,7 +690,7 @@
         
         if vect:
             # check for vector maps open to be edited
-            digitToolbar = self.toolbars['vdigit']
+            digitToolbar = self.GetToolbar('vdigit')
             if digitToolbar:
                 lmap = digitToolbar.GetLayer().GetName()
                 for name in vect:
@@ -706,7 +706,7 @@
             vcmd.append('-a')
             vcmd.append('map=%s' % ','.join(vect))
             vcmd.append('layer=%s' % ','.join(['-1'] * len(vect)))
-            vcmd.append('east_north=%f,%f' % (float(east), float(north)))
+            vcmd.append('coordinates=%f,%f' % (float(east), float(north)))
             vcmd.append('distance=%f' % float(qdist))
         
         Debug.msg(1, "QueryMap(): raster=%s vector=%s" % (','.join(rast),



More information about the grass-commit mailing list