t.vect.export.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 v.info for each vector map in the space time dataset is
  15. stored in "metadata.txt".
  16. <p>Gzip or bzip2 (default) compression can be specified with the
  17. <strong>compress</strong> option. Archives exported with
  18. <em><a href="t.vect.export.html">t.vect.export</a></em> can be imported
  19. with <em><a href="t.vect.import.html">t.vect.import</a></em>.
  20. <h2>EXAMPLE</h2>
  21. In this example 5 vector maps are created and
  22. registered in a single space time vector dataset named <em>random_locations</em>.
  23. Each vector map represents random locations
  24. within the boundary of the state taken at 1 month intervals.
  25. <div class="code"><pre>
  26. db.connect -d
  27. for i in `seq 1 5` ; do
  28. v.random output=map_$i n=500 input=boundary_state@PERMANENT
  29. echo map_$i >> map_list.txt
  30. done
  31. t.create type=stvds temporaltype=absolute \
  32. output=random_locations \
  33. title="Random locations" \
  34. description="Vector test dataset with random locations"
  35. t.register -i type=vect input=random_locations \
  36. file=map_list.txt start="2012-01-01" increment="1 months"
  37. t.vect.export input=random_locations output=random_locations.tar
  38. tar xvf random_locations.tar
  39. map_1.xml
  40. map_1.xsd
  41. map_2.xml
  42. map_2.xsd
  43. map_3.xml
  44. map_3.xsd
  45. map_4.xml
  46. map_4.xsd
  47. map_5.xml
  48. map_5.xsd
  49. list.txt
  50. proj.txt
  51. init.txt
  52. readme.txt
  53. metadata.txt
  54. cat init.txt
  55. stds_type=stvds
  56. format=GML
  57. temporal_type=absolute
  58. semantic_type=mean
  59. number_of_maps=5
  60. north=258414.015442
  61. south=185016.401592
  62. east=678328.848292
  63. west=596711.453211
  64. cat proj.txt
  65. +proj=lcc
  66. +lat_1=36.16666666666666
  67. +lat_2=34.33333333333334
  68. +lat_0=33.75
  69. +lon_0=-79
  70. +x_0=609601.22
  71. +y_0=0
  72. +no_defs
  73. +a=6378137
  74. +rf=298.257222101
  75. +towgs84=0.000,0.000,0.000
  76. +to_meter=1
  77. cat list.txt
  78. map_1|2012-01-01 00:00:00|2012-02-01 00:00:00
  79. map_2|2012-02-01 00:00:00|2012-03-01 00:00:00
  80. map_3|2012-03-01 00:00:00|2012-04-01 00:00:00
  81. map_4|2012-04-01 00:00:00|2012-05-01 00:00:00
  82. map_5|2012-05-01 00:00:00|2012-06-01 00:00:00
  83. cat readme.txt
  84. This space time vector dataset was exported with t.vect.export of GRASS GIS 7
  85. Files:
  86. *.xml -- Vector GML files
  87. proj.txt -- Projection information in PROJ.4 format
  88. init.txt -- GRASS GIS space time vector dataset information
  89. list.txt -- Time series file, lists all maps by name with interval
  90. time stamps in ISO-Format. Field separator is |
  91. metadata.txt -- The output of t.info
  92. readme.txt -- This file
  93. </pre></div>
  94. <h2>SEE ALSO</h2>
  95. <em>
  96. <a href="t.vect.import.html">t.vect.import</a>,
  97. <a href="t.create.html">t.create</a>,
  98. <a href="t.info.html">t.info</a>
  99. </em>
  100. <h2>AUTHOR</h2>
  101. S&ouml;ren Gebbert, Th&uuml;nen Institute of Climate-Smart Agriculture
  102. <p><i>Last changed: $Date$</i>