[GRASS-SVN] r44633 - grass/branches/develbranch_6/scripts/v.colors
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 19 16:55:44 EST 2010
Author: hamish
Date: 2010-12-19 13:55:44 -0800 (Sun, 19 Dec 2010)
New Revision: 44633
Modified:
grass/branches/develbranch_6/scripts/v.colors/v.colors
Log:
MS Windows doesn't like fs=semicolons for some reason, so change it to something else. layer= is ignored by v.db.connect so drop that
Modified: grass/branches/develbranch_6/scripts/v.colors/v.colors
===================================================================
--- grass/branches/develbranch_6/scripts/v.colors/v.colors 2010-12-19 20:27:04 UTC (rev 44632)
+++ grass/branches/develbranch_6/scripts/v.colors/v.colors 2010-12-19 21:55:44 UTC (rev 44633)
@@ -206,7 +206,7 @@
#g.message "column <$GIS_OPT_COLUMN> is type [$NCOLUMN_TYPE]"
# check if GRASSRGB column exists, make it if it doesn't
-TABLE=`v.db.connect -g map="$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" fs=";" | grep "^$GIS_OPT_LAYER;" | cut -f2 -d';'`
+TABLE=`v.db.connect -g map="$GIS_OPT_MAP" fs="|" | grep "^$GIS_OPT_LAYER|" | cut -f2 -d'|'`
COLUMN_TYPE=`v.info -c map="$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" --quiet | grep -i "|$GIS_OPT_RGB_COLUMN$" | cut -f1 -d'|'`
if [ -z "$COLUMN_TYPE" ] ; then
# RGB Column not found, create it
More information about the grass-commit
mailing list