[GRASS-SVN] r38782 - grass/branches/develbranch_6/scripts/db.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 18 18:20:18 EDT 2009
Author: neteler
Date: 2009-08-18 18:20:17 -0400 (Tue, 18 Aug 2009)
New Revision: 38782
Modified:
grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr
Log:
don't panik when importing into SQLite
Modified: grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr
===================================================================
--- grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr 2009-08-18 11:32:07 UTC (rev 38781)
+++ grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr 2009-08-18 22:20:17 UTC (rev 38782)
@@ -111,9 +111,10 @@
# check ERRORs and cat and cat_ issues (maybe problem with translated messages)
# we import faking a map which generates only the attribute table:
WARNING="`v.in.ogr --q dsn=\"$GIS_OPT_DSN\" $LAYER out=$GIS_OPT_OUTPUT -o --o 2>&1 | grep -i 'ERROR\|cat' | grep -v 'truncated'`"
+STATUSOGR=$?
if [ ! -z "$WARNING" ] ; then
echo "$WARNING"
- if [ ! -z "$GIS_OPT_DB_TABLE" ] ; then
+ if [ ! -z "$GIS_OPT_DB_TABLE" -a $STATUSOGR -ne 0 ] ; then
g.message -e "Input DSN <$INPUT> not found or not readable"
else
g.message -e "Input table <$INPUT> not found or not readable"
More information about the grass-commit
mailing list