[GRASS-SVN] r30441 - grass/trunk/scripts/v.db.renamecol
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 3 06:53:21 EST 2008
Author: msieczka
Date: 2008-03-03 06:53:21 -0500 (Mon, 03 Mar 2008)
New Revision: 30441
Modified:
grass/trunk/scripts/v.db.renamecol/v.db.renamecol
Log:
Remove a whitespace. More standarization.
Modified: grass/trunk/scripts/v.db.renamecol/v.db.renamecol
===================================================================
--- grass/trunk/scripts/v.db.renamecol/v.db.renamecol 2008-03-03 11:52:55 UTC (rev 30440)
+++ grass/trunk/scripts/v.db.renamecol/v.db.renamecol 2008-03-03 11:53:21 UTC (rev 30441)
@@ -3,7 +3,7 @@
############################################################################
#
# MODULE: v.db.renamecol
-# AUTHOR(S): Markus Neteler
+# AUTHOR(S): Markus Neteler
# PURPOSE: interface to db.execute to drop a column from the
# attribute table connected to a given vector map
# - Based on v.db.dropcol
@@ -150,9 +150,9 @@
if [ "$driver" = "sqlite" -o "$driver" = "dbf" ] ; then
if [ "$oldcoltype" = "CHARACTER" ] ; then
- v.db.addcol "$GIS_OPT_MAP" layer=$GIS_OPT_LAYER col="$newcol varchar($oldcollength)" || error
+ v.db.addcol map="$GIS_OPT_MAP" layer=$GIS_OPT_LAYER col="$newcol varchar($oldcollength)" || error
else
- v.db.addcol "$GIS_OPT_MAP" layer=$GIS_OPT_LAYER col="$newcol $oldcoltype" || error
+ v.db.addcol map="$GIS_OPT_MAP" layer=$GIS_OPT_LAYER col="$newcol $oldcoltype" || error
fi
echo "UPDATE $table SET $newcol=$oldcol" | db.execute database=$database driver=$driver
v.db.dropcol map="$GIS_OPT_MAP" layer=$GIS_OPT_LAYER col=$oldcol
@@ -164,6 +164,6 @@
cleanup
# write cmd history:
-v.support "${GIS_OPT_MAP}" cmdhist="${CMDLINE}"
+v.support map="${GIS_OPT_MAP}" cmdhist="${CMDLINE}"
exit 0
More information about the grass-commit
mailing list