[GRASS-SVN] r47410 - grass/branches/releasebranch_6_4/scripts/db.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 4 03:24:38 EDT 2011


Author: hamish
Date: 2011-08-04 00:24:38 -0700 (Thu, 04 Aug 2011)
New Revision: 47410

Modified:
   grass/branches/releasebranch_6_4/scripts/db.out.ogr/db.out.ogr
Log:
don't fail if not a CSV file (thanks Maris)

Modified: grass/branches/releasebranch_6_4/scripts/db.out.ogr/db.out.ogr
===================================================================
--- grass/branches/releasebranch_6_4/scripts/db.out.ogr/db.out.ogr	2011-08-04 06:55:24 UTC (rev 47409)
+++ grass/branches/releasebranch_6_4/scripts/db.out.ogr/db.out.ogr	2011-08-04 07:24:38 UTC (rev 47410)
@@ -98,8 +98,15 @@
       exit 1
    fi
 fi
-  
-v.out.ogr --q "$GIS_OPT_INPUT" dsn="$GIS_OPT_DSN" "$OLAYER" format="$GIS_OPT_FORMAT" type=point
+
+if [ -n "$OLAYER" ] ; then
+   v.out.ogr input="$GIS_OPT_INPUT" dsn="$GIS_OPT_DSN" \
+      "$OLAYER" format="$GIS_OPT_FORMAT" type=point --quiet
+else
+   v.out.ogr input="$GIS_OPT_INPUT" dsn="$GIS_OPT_DSN" \
+      format="$GIS_OPT_FORMAT" type=point --quiet
+fi
+
 if [ $? -ne 0 ] ;  then
    exit 1
 fi



More information about the grass-commit mailing list