[GRASS-SVN] r39910 - grass/trunk/scripts/v.rast.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 6 03:47:10 EST 2009


Author: martinl
Date: 2009-12-06 03:47:10 -0500 (Sun, 06 Dec 2009)
New Revision: 39910

Modified:
   grass/trunk/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats: OGR support (read access)


Modified: grass/trunk/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/trunk/scripts/v.rast.stats/v.rast.stats.py	2009-12-06 08:46:11 UTC (rev 39909)
+++ grass/trunk/scripts/v.rast.stats/v.rast.stats.py	2009-12-06 08:47:10 UTC (rev 39910)
@@ -6,17 +6,16 @@
 # AUTHOR(S):	Markus Neteler, converted to Python by Glynn Clements
 # PURPOSE:	Calculates univariate statistics from a GRASS raster map
 #		only for areas covered by vector objects on a per-category base
-# COPYRIGHT:	(C) 2005-2008 by the GRASS Development Team
+# COPYRIGHT:	(C) 2005-2009 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
 #		for details.
 #
-# TODO: do we need layer= management?
 #############################################################################
 
 #%Module
-#%  description: Calculates univariate statistics from a GRASS raster map based on vector polygons and uploads statistics to new attribute columns.
+#%  description: Calculates univariate statistics from a raster map based on vector polygons and uploads statistics to new attribute columns.
 #%  keywords: vector
 #%  keywords: raster
 #%  keywords: statistics
@@ -30,17 +29,20 @@
 #%  description: Calculate extended statistics
 #%END
 #%option
-#% key: vector
+#% key: input
 #% type: string
 #% key_desc: name
 #% gisprompt: old,vector,vector
-#% description: Name of vector polygon map
+#% label: Name of input vector polygon map
+#% description: Data source for OGR access
 #% required : yes
 #%End
 #%option
 #% key: layer
 #% type: integer
-#% description: Layer to which the table to be changed is connected
+#% label: Layer number or name
+#% description: A single vector map can be connected to multiple database tables. This number determines which table to use. Layer name for OGR access.
+#% gisprompt: old_layer,layer,layer
 #% answer: 1
 #% required : no
 #%end
@@ -49,7 +51,7 @@
 #% type: string
 #% key_desc: name
 #% gisprompt: old,cell,raster
-#% description: Name of raster map to calculate statistics from
+#% description: Name of input raster map to calculate statistics from
 #% required : yes
 #%END
 #%option



More information about the grass-commit mailing list