[GRASS-SVN] r47409 - grass/branches/develbranch_6/scripts/db.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 4 02:55:25 EDT 2011


Author: hamish
Date: 2011-08-03 23:55:24 -0700 (Wed, 03 Aug 2011)
New Revision: 47409

Modified:
   grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr
Log:
minor cleanup of v.out.ogr run cmd

Modified: grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr
===================================================================
--- grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr	2011-08-03 20:28:58 UTC (rev 47408)
+++ grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr	2011-08-04 06:55:24 UTC (rev 47409)
@@ -99,11 +99,12 @@
    fi
 fi
 
-# Hack around empty parameter not supported by g.parser
-if [ ! -z "$OLAYER" ] ; then
-    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 --q "$GIS_OPT_INPUT" dsn="$GIS_OPT_DSN" format="$GIS_OPT_FORMAT" type=point
+   v.out.ogr input="$GIS_OPT_INPUT" dsn="$GIS_OPT_DSN" \
+      format="$GIS_OPT_FORMAT" type=point --quiet
 fi
 
 if [ $? -ne 0 ] ;  then



More information about the grass-commit mailing list