[GRASS-SVN] r34503 -
grass/branches/develbranch_6/scripts/v.db.dropcol
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 26 12:04:41 EST 2008
Author: neteler
Date: 2008-11-26 12:04:40 -0500 (Wed, 26 Nov 2008)
New Revision: 34503
Modified:
grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol
Log:
fix if layer > 1
Modified: grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol 2008-11-26 16:56:25 UTC (rev 34502)
+++ grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol 2008-11-26 17:04:40 UTC (rev 34503)
@@ -125,7 +125,7 @@
if [ "$driver" = "sqlite" ] ; then
#echo "Using special trick for SQLite"
# http://www.sqlite.org/faq.html#q13
- v.info --q -c map=$table | cut -d'|' -f1,2 | grep -v "|${col}$" > "$TMP.coldesc"
+ v.info --q -c map=$GIS_OPT_MAP layer=$GIS_OPT_LAYER | cut -d'|' -f1,2 | grep -v "|${col}$" > "$TMP.coldesc"
# need to revert order:
cat "$TMP.coldesc" | cut -d'|' -f1 > "$TMP.coltypes"
cat "$TMP.coldesc" | cut -d'|' -f2 > "$TMP.colnames"
More information about the grass-commit
mailing list