[GRASS-SVN] r38721 -
grass/branches/develbranch_6/scripts/v.db.droprow
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 14 06:35:30 EDT 2009
Author: neteler
Date: 2009-08-14 06:35:29 -0400 (Fri, 14 Aug 2009)
New Revision: 38721
Modified:
grass/branches/develbranch_6/scripts/v.db.droprow/v.db.droprow
Log:
simplified
Modified: grass/branches/develbranch_6/scripts/v.db.droprow/v.db.droprow
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.droprow/v.db.droprow 2009-08-14 10:30:46 UTC (rev 38720)
+++ grass/branches/develbranch_6/scripts/v.db.droprow/v.db.droprow 2009-08-14 10:35:29 UTC (rev 38721)
@@ -82,19 +82,6 @@
eval `g.gisenv`
: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
-# does map exist in CURRENT mapset?
-eval `g.findfile element=vector file=$GIS_OPT_INPUT`
-if [ ! "$file" ] ; then
- g.message -e "Vector map <$GIS_OPT_INPUT> not found"
- exit 1
-fi
-
-table=`v.db.connect map=$GIS_OPT_INPUT -g fs=";" | grep -w $GIS_OPT_LAYER | cut -f2 -d";"`
-if [ -z "$table" ] ; then
- g.message -e 'There is no table connected to the input vector map! Cannot delete any column'
- exit 1
-fi
-
if [ -z "$GRASS_OVERWRITE" ] ; then
OVERFLAG="--o"
fi
More information about the grass-commit
mailing list