[GRASS-SVN] r42136 -
grass/branches/develbranch_6/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 5 19:37:04 EDT 2010
Author: martinl
Date: 2010-05-05 19:37:03 -0400 (Wed, 05 May 2010)
New Revision: 42136
Modified:
grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats
Log:
v.rast.stats cosmetics
Modified: grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats
===================================================================
--- grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats 2010-05-05 23:33:37 UTC (rev 42135)
+++ grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats 2010-05-05 23:37:03 UTC (rev 42136)
@@ -16,7 +16,7 @@
#############################################################################
#%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, raster, statistics
#%End
#%flag
@@ -38,7 +38,8 @@
#%option
#% key: layer
#% type: integer
-#% description: Layer to which the table to be changed is connected
+#% label: Layer number
+#% description: A single vector map can be connected to multiple database tables. This number determines which table to use
#% answer: 1
#% required : no
#%end
@@ -275,7 +276,7 @@
fi
done
-g.message -v "Adding columns <$ADDCOLS>"
+g.message -v "Adding columns '$ADDCOLS'"
v.db.addcol map="$VECTOR" columns="$ADDCOLS"
if [ $? -ne 0 ] ; then
g.message -e "Cannot continue (problem adding columns)."
@@ -285,7 +286,7 @@
#loop over cats and calculate statistics:
-g.message -v "Processing data ..."
+g.message "Processing data ($NUMBER categories)..."
CURRNUM=1
# get rid of any earlier attempts
rm -f "$SQLTMP"
@@ -330,7 +331,7 @@
done
-g.message -v "Updating the database ..."
+g.message "Updating the database ..."
db.execute input="$SQLTMP" database="${DB_DATABASE}" driver="$DB_SQLDRIVER"
EXITCODE=$?
More information about the grass-commit
mailing list