[GRASS-SVN] r55991 - grass/trunk/scripts/db.out.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 25 02:16:02 PDT 2013
Author: mmetz
Date: 2013-04-25 02:16:02 -0700 (Thu, 25 Apr 2013)
New Revision: 55991
Modified:
grass/trunk/scripts/db.out.ogr/db.out.ogr.py
Log:
fix db.out.ogr
Modified: grass/trunk/scripts/db.out.ogr/db.out.ogr.py
===================================================================
--- grass/trunk/scripts/db.out.ogr/db.out.ogr.py 2013-04-25 09:15:33 UTC (rev 55990)
+++ grass/trunk/scripts/db.out.ogr/db.out.ogr.py 2013-04-25 09:16:02 UTC (rev 55991)
@@ -20,7 +20,7 @@
#% keywords: attribute table
#%end
-#%option G_OPT_DB_TABLE
+#%option G_OPT_V_INPUT
#% key: input
#% required: yes
#%end
@@ -77,12 +77,12 @@
grass.fatal(_("File <%s> already exists") % dbffile)
if olayer:
- if grass.run_command('v.out.ogr', flags = 'c', quiet = True, input = input, layer = layer,
+ if grass.run_command('v.out.ogr', quiet = True, input = input, layer = layer,
dsn = dsn,
format = format, type = 'point,line,area', olayer = olayer) != 0:
sys.exit(1)
else:
- if grass.run_command('v.out.ogr', flags = 'c', quiet = True, input = input, layer = layer,
+ if grass.run_command('v.out.ogr', quiet = True, input = input, layer = layer,
dsn = dsn, format = format, type = 'point,line,area') != 0:
sys.exit(1)
More information about the grass-commit
mailing list