[GRASS-SVN] r49210 - grass/trunk/scripts/v.what.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 14 02:48:21 EST 2011
Author: martinl
Date: 2011-11-13 23:48:21 -0800 (Sun, 13 Nov 2011)
New Revision: 49210
Modified:
grass/trunk/scripts/v.what.vect/v.what.vect.py
Log:
v.what.vect: fix map's label/desc
use run_command()
Modified: grass/trunk/scripts/v.what.vect/v.what.vect.py
===================================================================
--- grass/trunk/scripts/v.what.vect/v.what.vect.py 2011-11-14 07:43:37 UTC (rev 49209)
+++ grass/trunk/scripts/v.what.vect/v.what.vect.py 2011-11-14 07:48:21 UTC (rev 49210)
@@ -5,7 +5,7 @@
# MODULE: v.what.vect
# AUTHOR(S): Markus Neteler, converted to Python by Glynn Clements
# PURPOSE: Uploads attributes at the location of vector points to the table.
-# COPYRIGHT: (C) 2005, 2008 by the GRASS Development Team
+# COPYRIGHT: (C) 2005, 2008, 2011 by the GRASS Development Team
#
# This program is free software under the GNU General Public
# License (>=v2). Read the file COPYING that comes with GRASS
@@ -21,6 +21,7 @@
#%end
#%option G_OPT_V_MAP
+#% label: Name of vector points map for which to edit attributes
#%end
#%option G_OPT_V_FIELD
#%end
@@ -30,7 +31,7 @@
#%end
#%option G_OPT_V_MAP
#% key: qmap
-#% description: Name of vector map to be queried
+#% label: Name of vector map to be queried
#% required : yes
#%end
#%option G_OPT_V_FIELD
@@ -53,17 +54,16 @@
from grass.script import core as grass
def main():
- grass.exec_command(
- "v.distance",
- _from = options['map'],
- to = options['qmap'],
- column = options['column'],
- to_column = options['qcolumn'],
- upload = "to_attr",
- dmax = options['dmax'],
- from_layer = options['layer'],
- to_layer = options['qlayer'])
-
+ grass.run_command("v.distance",
+ _from = options['map'],
+ to = options['qmap'],
+ column = options['column'],
+ to_column = options['qcolumn'],
+ upload = "to_attr",
+ dmax = options['dmax'],
+ from_layer = options['layer'],
+ to_layer = options['qlayer'])
+
if __name__ == "__main__":
options, flags = grass.parser()
main()
More information about the grass-commit
mailing list