t.vect.export1grass
Exports a space time vector dataset as grass gis specific archive file.
Usage
t.vect.export
t.vect.export --help
t.vect.export input=name
output=name
[directory=name]
[compression=string]
[format=string]
[where=sql_query]
[--overwrite]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
temporal, export, vector, time
Overview
t.vect.export exports a space time vector dataset (stvds) to a tar archive as either GML (using v.out.ogr) or GRASS pack files. In addition to the pack or GML files, several metadata files are also created in the archive that describe the temporal layout. All time stamps are stored in the file "list.txt", for each map one row. The name of the map, the start time and the end time are written. In case of a time instance, the start time is equal to the end time. The "init.txt" file stores the temporal type, the number of maps, the chosen export format and some other metadata. The "proj.txt" file stores the coordinate reference system information as a proj4 string of the project the space time vector dataset was exported from. The file "readme.txt" describes the file format. The output of v.info for each vector map in the space time dataset is stored in "metadata.txt".
The tar archive can be compressed using the compress option. Gzip and bzip2 (default) are available. A where option can be specified, to export only a subset of the space time dataset. Archives exported with t.vect.export can be imported with t.vect.import.
Notes
The name of output file has to carry the suffix of the archive type, the following suffix can be used:
•
|
|
|---|---|
•
|
|
•
|
|
Examples
In this example, five vector maps are created and registered in a single space time vector dataset named random_locations. Each vector map represents random locations within the boundary of the state taken at 1 month intervals.
t.vect.export input=shoreline output=shoreline_nc.tar.bzip2tar xvfj shoreline_nc.tar.bzip2shoreline_1849_1873.xmlshoreline_1849_1873.xsdshoreline_1925_1946.xmlshoreline_1925_1946.xsdshoreline_1970_1988.xmlshoreline_1970_1988.xsdshoreline_1997.xmlshoreline_1997.xsdshoreline_1998.xmlshoreline_1998.xsdshoreline_2003.xmlshoreline_2003.xsdshoreline_2004.xmlshoreline_2004.xsdshoreline_2009.xmlshoreline_2009.xsdlist.txtproj.txtinit.txtreadme.txtmetadata.txtcat init.txtstds_type=stvdsformat=GMLtemporal_type=relativesemantic_type=meanrelative_time_unit=yearsnumber_of_maps=8north=1039175.31479south=9403.301982east=3052352.00337west=651481.84739cat proj.txt+proj=lcc+lat_1=36.16666666666666+lat_2=34.33333333333334+lat_0=33.75+lon_0=-79+x_0=609601.22+y_0=0+no_defs+a=6378137+rf=298.257222101+towgs84=0.000,0.000,0.000+to_meter=1cat list.txtshoreline_1849_1873|1849|1873shoreline_1925_1946|1925|1946shoreline_1970_1988|1970|1988shoreline_1997|1997|1997shoreline_1998|1998|1998shoreline_2003|2003|2003shoreline_2004|2004|2004shoreline_2009|2009|2009cat readme.txtThis space time vector dataset was exported with t.vect.export of GRASS GIS 7Files:*.xml -- Vector GML filesproj.txt -- Projection information in PROJ formatinit.txt -- GRASS GIS space time vector dataset informationlist.txt -- Time series file, lists all maps by name with intervaltime stamps in ISO-Format. Field separator is |metadata.txt -- The output of t.inforeadme.txt -- This file
Source code
Available at: t.vect.export source code (history)
Accessed: Monday Feb 24 17:51:47 2025
Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.