瀏覽代碼

v.external.out: use standardized options (https://trac.osgeo.org/grass/ticket/2409); update manual

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63166 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 年之前
父節點
當前提交
b5891eb8a1
共有 2 個文件被更改,包括 11 次插入8 次删除
  1. 1 1
      vector/v.external.out/args.c
  2. 10 7
      vector/v.external.out/v.external.out.html

+ 1 - 1
vector/v.external.out/args.c

@@ -9,7 +9,7 @@ void parse_args(int argc, char **argv,
 		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"

+ 10 - 7
vector/v.external.out/v.external.out.html

@@ -141,7 +141,7 @@ built-in <em>GRASS-PostGIS data provider</em>.
 
 <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 @@ v.external.out -r
 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 @@ v.external.out -r
 # do some processing in native format
 </pre></div>
 
-Restore previous settings from &quot;gisdb_topo.txt&quot; file by specifying <b>input</b> option.
+Restore previous settings from &quot;gisdb_topo.txt&quot; 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>