[GRASS-SVN] r48127 - grass/trunk/scripts/db.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 5 03:03:13 EDT 2011
Author: mmetz
Date: 2011-09-05 00:03:13 -0700 (Mon, 05 Sep 2011)
New Revision: 48127
Modified:
grass/trunk/scripts/db.in.ogr/db.in.ogr.py
Log:
db.in.gr: fix remove vector part
Modified: grass/trunk/scripts/db.in.ogr/db.in.ogr.py
===================================================================
--- grass/trunk/scripts/db.in.ogr/db.in.ogr.py 2011-09-05 06:49:51 UTC (rev 48126)
+++ grass/trunk/scripts/db.in.ogr/db.in.ogr.py 2011-09-05 07:03:13 UTC (rev 48127)
@@ -110,7 +110,8 @@
grass.fatal(_("Something went wrong. Should not happen"))
else:
# remove the vector part
- grass.try_remove(vectfile)
+ grass.run_command('v.db.connect', quiet = True, map = output, layer = '1', flags = 'd')
+ grass.run_command('g.remove', quiet = True, vect = output)
# get rid of superfluous auto-added cat column (and cat_ if present)
grass.run_command('db.dropcolumn', quiet = True, flags = 'f', table = output,
More information about the grass-commit
mailing list