[GRASS-SVN] r42137 - grass/trunk/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 5 19:40:55 EDT 2010
Author: martinl
Date: 2010-05-05 19:40:55 -0400 (Wed, 05 May 2010)
New Revision: 42137
Modified:
grass/trunk/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats cosmetics
Modified: grass/trunk/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2010-05-05 23:37:03 UTC (rev 42136)
+++ grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2010-05-05 23:40:55 UTC (rev 42137)
@@ -6,7 +6,7 @@
# 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-2009 by the GRASS Development Team
+# COPYRIGHT: (C) 2005-2010 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
@@ -15,7 +15,7 @@
#############################################################################
#%Module
-#% description: Calculates univariate statistics from a raster map based on vector polygons and uploads statistics to new attribute columns.
+#% description: Calculates univariate statistics from a GRASS raster map based on vector polygons and uploads statistics to new attribute columns.
#% keywords: vector
#% keywords: raster
#% keywords: statistics
@@ -208,12 +208,12 @@
addcols.append(currcolumn + ' ' + coltype)
if addcols:
- grass.verbose("Adding columns <%s>" % addcols)
+ grass.verbose(_("Adding columns '%s'") % addcols)
if grass.run_command('v.db.addcolumn', map = vector, columns = addcols) != 0:
- grass.fatal(_("Cannot continue (problem adding columns)."))
+ grass.fatal(_("Adding columns failed. Exiting."))
#loop over cats and calculate statistics:
- grass.verbose("Processing data ...")
+ grass.message(_("Processing data (%d categories)...") % number)
# get rid of any earlier attempts
grass.try_remove(sqltmp)
More information about the grass-commit
mailing list