瀏覽代碼

t.*.export: improved documentation related to https://trac.osgeo.org/grass/ticket/2416

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67965 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 9 年之前
父節點
當前提交
237ae9b642
共有 2 個文件被更改,包括 23 次插入3 次删除
  1. 11 1
      temporal/t.rast.export/t.rast.export.html
  2. 12 2
      temporal/t.vect.export/t.vect.export.html

+ 11 - 1
temporal/t.rast.export/t.rast.export.html

@@ -15,12 +15,22 @@ the space time raster dataset was exported from. The file "readme.txt"
 describes the file format. The output of <em>r.info</em> is stored in
 "metadata.txt".
 <p>
+
 The tar archive can be compressed using the <b>compress</b> option. Gzip
 and bzip2 (default) are available. A <b>where</b> option can be specified,
 to export only a subset of the space time dataset. Archives exported
 with <em>t.rast.export</em> can be imported with
 <em><a href="t.vect.import.html">t.rast.import</a></em>.
 
+<h2>NOTES</h2>
+The name of output file has to specify the suffix of the archive, the
+following suffix has to be added:
+<ul>
+<li><b>.tar</b> in the case of <b>compress=no</b></li>
+<li><b>.tar.bzip2</b> in the case of <b>compress=bzip2</b></li>
+<li><b>.tar.gzip</b> in the case of <b>compress=gzip</b></li>
+</ul> 
+
 <h2>EXAMPLE</h2>
 
 In this example, all the maps of 2012 of "tempmean_monthly" will be exported:
@@ -29,7 +39,7 @@ In this example, all the maps of 2012 of "tempmean_monthly" will be exported:
 t.rast.export input=tempmean_monthly output=tempmean_monthly.tar.bzip2 \
               where="start_time &gt;= '2012-01-01' and start_time &lt; '2013-01-01'"
 
-tar xvf precipitation_daily.tar
+tar xvjf precipitation_daily.tar.bzip2
 
 2012_01_tempmean.tif
 2012_01_tempmean.color

+ 12 - 2
temporal/t.vect.export/t.vect.export.html

@@ -21,6 +21,16 @@ to export only a subset of the space time dataset. Archives exported
 with <em>t.vect.export</em> can be imported with
 <em><a href="t.vect.import.html">t.vect.import</a></em>.
 
+<h2>NOTES</h2>
+The name of output file has to specify the suffix of the archive, the
+following suffix has to be added:
+<ul>
+<li><b>.tar</b> in the case of <b>compress=no</b></li>
+<li><b>.tar.bzip2</b> in the case of <b>compress=bzip2</b></li>
+<li><b>.tar.gzip</b> in the case of <b>compress=gzip</b></li>
+</ul>
+
+
 <h2>EXAMPLE</h2>
 
 In this example, five vector maps are created and
@@ -29,9 +39,9 @@ Each vector map represents random locations
 within the boundary of the state taken at 1 month intervals.
 
 <div class="code"><pre>
-t.vect.export input=shoreline output=shoreline_nc
+t.vect.export input=shoreline output=shoreline_nc.tar.bzip2
 
-tar xvfj shoreline_nc
+tar xvfj shoreline_nc.tar.bzip2
 shoreline_1849_1873.xml
 shoreline_1849_1873.xsd
 shoreline_1925_1946.xml