[GRASS-SVN] r31424 - grass-addons/vector/v.colors
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 19 07:03:40 EDT 2008
Author: hamish
Date: 2008-05-19 07:03:40 -0400 (Mon, 19 May 2008)
New Revision: 31424
Modified:
grass-addons/vector/v.colors/v.colors
Log:
add comment about another way to do -g,-e
Modified: grass-addons/vector/v.colors/v.colors
===================================================================
--- grass-addons/vector/v.colors/v.colors 2008-05-19 10:20:13 UTC (rev 31423)
+++ grass-addons/vector/v.colors/v.colors 2008-05-19 11:03:40 UTC (rev 31424)
@@ -94,6 +94,8 @@
## 'v.db.select column= | wc -l' to set region size (1xLength)
## then create r.in.ascii 1xLength matrix with data (WITHOUT uniq)
## and run r.colors on that raster map.
+## or
+## v.to.rast, r.colors -g, then parse colr/ file. But that's resolution dependent
if [ -z "$GISBASE" ] ; then
@@ -292,6 +294,7 @@
echo "UPDATE $TABLE SET $GIS_OPT_RGB_COLUMN = '$COLR' WHERE $GIS_OPT_COLUMN = $VALUE;" >> "${TMP}_vcol.sql"
done )
+
if [ ! -e "${TMP}_vcol.sql" ] ; then
echo "ERROR: No values found in color range"
cleanup
More information about the grass-commit
mailing list