[GRASS-SVN] r43468 - in grass/trunk/gui/wxpython: . gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 15 16:38:56 EDT 2010
Author: martinl
Date: 2010-09-15 20:38:56 +0000 (Wed, 15 Sep 2010)
New Revision: 43468
Modified:
grass/trunk/gui/wxpython/README
grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: check if map exists, README updated (nviz pythonized)
Modified: grass/trunk/gui/wxpython/README
===================================================================
--- grass/trunk/gui/wxpython/README 2010-09-15 19:29:36 UTC (rev 43467)
+++ grass/trunk/gui/wxpython/README 2010-09-15 20:38:56 UTC (rev 43468)
@@ -1,5 +1,5 @@
-wxPython GRASS Graphical User Interface
-=======================================
+wxPython GRASS Graphical User Interface (wxGUI)
+===============================================
$Date$
@@ -138,9 +138,12 @@
$ export GRASS_WX_DEBUG=3
-6 - EXTENSIONS - VECTOR DIGITIZER AND 3D VIEWER
+6 - VECTOR DIGITIZER
-To enable digitizer you need to compile 'vdigit' or 'nviz'
-component. Note that you must configure GRASS with C++ (--with-cxx),
-Python (--with-python) and wxWidgets (--with-wxwidgets) support.
+To enable digitizer you need to compile 'vdigit' component. Note that
+you must configure GRASS with C++ (--with-cxx), Python (--with-python)
+and wxWidgets (--with-wxwidgets) support.
+$ cd gui/wxpython/vdigit
+$ make
+$ make install
Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py 2010-09-15 19:29:36 UTC (rev 43467)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py 2010-09-15 20:38:56 UTC (rev 43468)
@@ -268,10 +268,15 @@
if not vector:
return layers
+ fullname = grass.find_file(name = vector, element = 'vector')['fullname']
+ if not fullname:
+ Debug.msg(5, "utils.GetVectorNumberOfLayers(): vector map '%s' not found" % vector)
+ return layers
+
ret = gcmd.RunCommand('v.db.connect',
flags = 'g',
read = True,
- map = vector,
+ map = fullname,
fs = ';')
if not ret:
@@ -287,7 +292,7 @@
pass
Debug.msg(3, "utils.GetVectorNumberOfLayers(): vector=%s -> %s" % \
- (vector, ','.join(layers)))
+ (fullname, ','.join(layers)))
return layers
More information about the grass-commit
mailing list