t.vect.export.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <h2>DESCRIPTION</h2>
  2. <em>t.vect.export</em> exports a space time vector dataset (stvds)
  3. to a tar archive as either GML (using <em><a href="v.out.ogr.html">v.out.ogr</a></em>)
  4. or GRASS pack files. In addition to the pack or GML files, several
  5. metadata files are also created in the archive that describe the
  6. temporal layout. All time stamps are stored in the file "list.txt",
  7. for each map one row. The name of the map, the start time and the
  8. end time are written. In case of a time instance, the start time is
  9. equal to the end time. The "init.txt" file stores the temporal type,
  10. the number of maps, the chosen export format and some other
  11. metadata. The "proj.txt" file stores the projection information as a
  12. proj4 string of the location the space time vector dataset was
  13. exported from. The file "readme.txt" describes the file format. The
  14. output of <em>v.info</em> for each vector map in the space time dataset is
  15. stored in "metadata.txt".
  16. <p>
  17. The tar archive can be compressed using the <b>compress</b> option. Gzip
  18. and bzip2 (default) are available. A <b>where</b> option can be specified,
  19. to export only a subset of the space time dataset. Archives exported
  20. with <em>t.vect.export</em> can be imported with
  21. <em><a href="t.vect.import.html">t.vect.import</a></em>.
  22. <h2>NOTES</h2>
  23. The name of output file has to carry the suffix of the archive type, the
  24. following suffix can be used:
  25. <ul>
  26. <li><b>.tar</b> in the case of <b>compress=no</b></li>
  27. <li><b>.tar.bzip2</b> in the case of <b>compress=bzip2</b></li>
  28. <li><b>.tar.gzip</b> in the case of <b>compress=gzip</b></li>
  29. </ul>
  30. <h2>EXAMPLE</h2>
  31. In this example, five vector maps are created and
  32. registered in a single space time vector dataset named <em>random_locations</em>.
  33. Each vector map represents random locations
  34. within the boundary of the state taken at 1 month intervals.
  35. <div class="code"><pre>
  36. t.vect.export input=shoreline output=shoreline_nc.tar.bzip2
  37. tar xvfj shoreline_nc.tar.bzip2
  38. shoreline_1849_1873.xml
  39. shoreline_1849_1873.xsd
  40. shoreline_1925_1946.xml
  41. shoreline_1925_1946.xsd
  42. shoreline_1970_1988.xml
  43. shoreline_1970_1988.xsd
  44. shoreline_1997.xml
  45. shoreline_1997.xsd
  46. shoreline_1998.xml
  47. shoreline_1998.xsd
  48. shoreline_2003.xml
  49. shoreline_2003.xsd
  50. shoreline_2004.xml
  51. shoreline_2004.xsd
  52. shoreline_2009.xml
  53. shoreline_2009.xsd
  54. list.txt
  55. proj.txt
  56. init.txt
  57. readme.txt
  58. metadata.txt
  59. cat init.txt
  60. stds_type=stvds
  61. format=GML
  62. temporal_type=relative
  63. semantic_type=mean
  64. relative_time_unit=years
  65. number_of_maps=8
  66. north=1039175.31479
  67. south=9403.301982
  68. east=3052352.00337
  69. west=651481.84739
  70. cat proj.txt
  71. +proj=lcc
  72. +lat_1=36.16666666666666
  73. +lat_2=34.33333333333334
  74. +lat_0=33.75
  75. +lon_0=-79
  76. +x_0=609601.22
  77. +y_0=0
  78. +no_defs
  79. +a=6378137
  80. +rf=298.257222101
  81. +towgs84=0.000,0.000,0.000
  82. +to_meter=1
  83. cat list.txt
  84. shoreline_1849_1873|1849|1873
  85. shoreline_1925_1946|1925|1946
  86. shoreline_1970_1988|1970|1988
  87. shoreline_1997|1997|1997
  88. shoreline_1998|1998|1998
  89. shoreline_2003|2003|2003
  90. shoreline_2004|2004|2004
  91. shoreline_2009|2009|2009
  92. cat readme.txt
  93. This space time vector dataset was exported with t.vect.export of GRASS GIS 7
  94. Files:
  95. *.xml -- Vector GML files
  96. proj.txt -- Projection information in PROJ.4 format
  97. init.txt -- GRASS GIS space time vector dataset information
  98. list.txt -- Time series file, lists all maps by name with interval
  99. time stamps in ISO-Format. Field separator is |
  100. metadata.txt -- The output of t.info
  101. readme.txt -- This file
  102. </pre></div>
  103. <h2>SEE ALSO</h2>
  104. <em>
  105. <a href="t.vect.import.html">t.vect.import</a>,
  106. <a href="t.create.html">t.create</a>,
  107. <a href="t.info.html">t.info</a>,
  108. <a href="v.out.ogr.html">v.out.ogr</a>,
  109. <a href="v.unpack.html">v.unpack</a>,
  110. <a href="t.rast.export.html">t.rast.export</a>
  111. </em>
  112. <h2>AUTHOR</h2>
  113. S&ouml;ren Gebbert, Th&uuml;nen Institute of Climate-Smart Agriculture
  114. <p><i>Last changed: $Date$</i>