[GRASS-SVN] r34506 - in grass/branches/develbranch_6/scripts: v.db.update v.dissolve

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 15:52:54 EST 2008


Author: neteler
Date: 2008-11-26 15:52:54 -0500 (Wed, 26 Nov 2008)
New Revision: 34506

Modified:
   grass/branches/develbranch_6/scripts/v.db.update/v.db.update
   grass/branches/develbranch_6/scripts/v.dissolve/v.dissolve
Log:
added missing GIS_OPT_LAYER for layer > 1

Modified: grass/branches/develbranch_6/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.update/v.db.update	2008-11-26 19:30:58 UTC (rev 34505)
+++ grass/branches/develbranch_6/scripts/v.db.update/v.db.update	2008-11-26 20:52:54 UTC (rev 34506)
@@ -106,7 +106,7 @@
 driver=`v.db.connect map="$GIS_OPT_MAP" -g fs=";" | grep -w "$GIS_OPT_LAYER" | awk -F ";" '{print $5}'`
 
 # checking column types
-coltype=`v.info -c map="$GIS_OPT_MAP" --quiet | grep -w "$GIS_OPT_COLUMN" | cut -d'|' -f1`
+coltype=`v.info -c map="$GIS_OPT_MAP" layer=$GIS_OPT_LAYER --quiet | grep -w "$GIS_OPT_COLUMN" | cut -d'|' -f1`
 
 if [ -n "$GIS_OPT_QCOLUMN" ] ; then
    if [ -n "$GIS_OPT_VALUE" ] ; then

Modified: grass/branches/develbranch_6/scripts/v.dissolve/v.dissolve
===================================================================
--- grass/branches/develbranch_6/scripts/v.dissolve/v.dissolve	2008-11-26 19:30:58 UTC (rev 34505)
+++ grass/branches/develbranch_6/scripts/v.dissolve/v.dissolve	2008-11-26 20:52:54 UTC (rev 34506)
@@ -96,7 +96,7 @@
              layer="$GIS_OPT_LAYER"
 else
 
-    COLTYPE=`v.info -c "$GIS_OPT_INPUT" --quiet | grep ".*|$GIS_OPT_COLUMN$" | cut -f1 -d'|'`
+    COLTYPE=`v.info -c "$GIS_OPT_INPUT" layer=$GIS_OPT_LAYER --quiet | grep ".*|$GIS_OPT_COLUMN$" | cut -f1 -d'|'`
     if [ "$COLTYPE" != "INTEGER" ] && [ "$COLTYPE" != "CHARACTER" ] ; then
        g.message -e "Key column must be of type integer or string"
        exit 1
@@ -118,4 +118,5 @@
 # write cmd history:
 v.support ${GIS_OPT_OUTPUT} cmdhist="${CMDLINE}"
 
-exit
+exit 0
+



More information about the grass-commit mailing list