t.vect.import1grass
Imports a space time vector dataset from a grass gis specific archive file.
Usage
t.vect.import
t.vect.import --help
t.vect.import [-eoc]
input=name
output=name
[basename=string]
directory=name
[title=string]
[description=string]
[project=string]
[--overwrite]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
temporal, import, vector, time, create project
Overview
t.vect.import imports a space time vector dataset archive that was exported with t.vect.export.
Notes
Optionally a base map name can be provided to avoid that existing vector maps are overwritten by the map names that are used in the STRDS archive.
The directory is used as work directory in case of import but can also be used as a data directory when using GML for the data exchange.
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. The space time dataset is then exported and re-imported.
db.connect -dfor i in `seq 1 5` ; dov.random output=map_$i n=500 restrict=boundary_state@PERMANENTecho map_$i >> map_list.txtdonet.create type=stvds temporaltype=absolute \output=random_locations \title="Random locations" \description="Vector test dataset with random locations"t.register -i type=vector input=random_locations \file=map_list.txt start="2012-01-01" increment="1 months"t.vect.list random_locationst.vect.export input=random_locations output=random_locations.tar.gz \compression=gzipt.vect.import input=random_locations.tar.gz output=new_random_locations \basename=new_map directory=/tmpt.vect.list new_random_locationsid|name|layer|mapset|start_time|end_timenew_map_1@user1|new_map_1|None|user1|2012-01-01 00:00:00|2012-02-01 00:00:00new_map_2@user1|new_map_2|None|user1|2012-02-01 00:00:00|2012-03-01 00:00:00new_map_3@user1|new_map_3|None|user1|2012-03-01 00:00:00|2012-04-01 00:00:00new_map_4@user1|new_map_4|None|user1|2012-04-01 00:00:00|2012-05-01 00:00:00new_map_5@user1|new_map_5|None|user1|2012-05-01 00:00:00|2012-06-01 00:00:00
Source code
Available at: t.vect.import 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.