[GRASS-SVN] r63165 - grass/trunk/vector/v.external.out

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 13:38:15 PST 2014


Author: neteler
Date: 2014-11-26 13:38:15 -0800 (Wed, 26 Nov 2014)
New Revision: 63165

Modified:
   grass/trunk/vector/v.external.out/args.c
   grass/trunk/vector/v.external.out/v.external.out.html
Log:
v.external.out: use standardized options (#2409); update manual

Modified: grass/trunk/vector/v.external.out/args.c
===================================================================
--- grass/trunk/vector/v.external.out/args.c	2014-11-26 18:52:16 UTC (rev 63164)
+++ grass/trunk/vector/v.external.out/args.c	2014-11-26 21:38:15 UTC (rev 63165)
@@ -9,7 +9,7 @@
 		struct _options *options, struct _flags *flags)
 {
     options->dsn = G_define_option();
-    options->dsn->key = "directory";
+    options->dsn->key = "output";
     options->dsn->type = TYPE_STRING;
     options->dsn->label = _("Name of output directory or OGR or PostGIS data source");
     options->dsn->description = _("Examples:\n"

Modified: grass/trunk/vector/v.external.out/v.external.out.html
===================================================================
--- grass/trunk/vector/v.external.out/v.external.out.html	2014-11-26 18:52:16 UTC (rev 63164)
+++ grass/trunk/vector/v.external.out/v.external.out.html	2014-11-26 21:38:15 UTC (rev 63165)
@@ -141,7 +141,7 @@
 
 <h3>GRASS native format</h3>
 
-To restore original settings, ie. use GRASS native format, type:
+To restore original settings, ie. use the GRASS native format, type:
 
 <div class="code"><pre>
 v.external.out -r
@@ -152,10 +152,12 @@
 Current settings can be stored to file by specifying <b>output</b> option.
 
 <div class="code"><pre>
-# define output PostGIS database for GRASS calculation results stored as topological elements:
-v.external.out output=PG:dbname=gisdb format=PostgreSQL options=topology=YES output=gisdb_topo.txt
+# define output PostGIS database for GRASS calculation with
+# results stored as topological elements:
+v.external.out output=PG:dbname=gisdb format=PostgreSQL \
+  options=topology=YES savesettings=gisdb_topo.txt
 
-# do some processing in PostGIS Topology
+# ... and do some processing in PostGIS Topology
 </pre></div>
 
 Back to native format:
@@ -166,12 +168,13 @@
 # do some processing in native format
 </pre></div>
 
-Restore previous settings from "gisdb_topo.txt" file by specifying <b>input</b> option.
+Restore previous settings from "gisdb_topo.txt" file by 
+specifying <b>loadsettings</b> option.
 
 <div class="code"><pre>
-v.external.out output=gisdb_topo.txt
+v.external.out loadsettings=gisdb_topo.txt
 
-# do some processing in PostGIS Topology
+# ... and do some processing in PostGIS Topology
 </pre></div>
 
 <h2>REFERENCES</h2>



More information about the grass-commit mailing list