t.vect.extract(1grass)
β¨ t.vect.extract π
okay bestie, gather round, because this is the t.vect.extract page from the GRASS User's Manual (that's the 1grass manual, section 1, we been knew) and it's literally about scooping a lil subset out of a space time vector dataset and dropping it into a whole new space time vector dataset. it's giving "cut a slice, serve it on a new plate". π°
πΈ NAME πΈ
t.vect.extract β extracts a subset of a space time vector dataset.
π KEYWORDS π
temporal, extract, vector, time
π SYNOPSIS π
t.vect.extract
t.vect.extract --help
t.vect.extract [-n] input=name [where=sql_query]
[expression=sql_query] output=name [layer=string]
[type=string[,string,...]] [basename=string] [suffix=name]
[nprocs=integer] [--overwrite] [--help] [--verbose] [--quiet]
[--ui]
π© Flags π©
-nβ register empty maps (yes, even the empty ones get an invite to the party π)--overwriteβ allow output files to overwrite existing files (no cap, it will just bulldoze them π)--helpβ print usage summary--verboseβ verbose module output (chatty era π£οΈ)--quietβ quiet module output (silent era π€«)--uiβ force launching GUI dialog
π Parameters π
input=name[required] β name of the input space time vector datasetwhere=sql_queryβ WHERE conditions of SQL statement without 'where' keyword used in the temporal GIS framework- Example:
start_time > '2001-01-01 12:30:00'
- Example:
expression=sql_queryβ WHERE conditions of SQL statement without 'where' keyword- Example:
income < 1000 and population >= 10000
- Example:
output=name[required] β name of the output space time vector datasetlayer=stringβ layer number or name- vector features can have category values in different layers, so this number decides which layer to use. when you're rolling with direct OGR access, this here is the layer name. ποΈ
- Default:
1
type=string[,string,...]β input feature type- Options:
point,line,boundary,centroid,area - Default:
point,line,boundary,centroid,area
- Options:
basename=stringβ basename of the new generated output maps- a numerical suffix separated by an underscore will be attached to create a unique identifier
suffix=nameβ suffix to add at basename: set'gran'for granularity,'time'for the full time format,'num'for numerical suffix with a specific number of digits (default%%05)- Default:
gran
- Default:
nprocs=integerβ the number ofv.extractprocesses to run in parallel. use only if database backend is used which supports concurrent writing- Default:
1
- Default:
π DESCRIPTION π
so the whole vibe of t.vect.extract is: extract a subset of a space time vector dataset, and store that subset in a different space time vector dataset. that's it, that's the mission. iconic behavior honestly. β¨
π EXAMPLE π
in the following example a new space time vector dataset will be created with all the data later than the year 2000:
t.vect.extract input=shoreline where="start_time > 2000" \
output=shoreline_later_2000 basename=new_shoreline
t.info shoreline_later_2000@shoreline type=stvds
+-------------------- Space Time Vector Dataset -----------------------------+
| |
+-------------------- Basic information -------------------------------------+
| Id: ........................ shoreline_later_2000@shoreline
| Name: ...................... shoreline_later_2000
| Mapset: .................... shoreline
| Creator: ................... lucadelu
| Temporal type: ............. relative
| Creation time: ............. 2014-11-29 08:43:50.043219
| Modification time:.......... 2014-11-29 08:43:50.085407
| Semantic type:.............. mean
+-------------------- Relative time -----------------------------------------+
| Start time:................. 2003
| End time:................... 2009
| Relative time unit:......... years
| Granularity:................ 1
| Temporal type of maps:...... point
+-------------------- Spatial extent ----------------------------------------+
| North:...................... 1039175.31479
| South:...................... 34705.216018
| East:.. .................... 3052322.44671
| West:....................... 2130004.16779
| Top:........................ 0.0
| Bottom:..................... 0.0
+-------------------- Metadata information ----------------------------------+
| Vector register table:...... vector_map_register_8395740fc8de42149fef74a3d25bbb05
| Number of points ........... 0
| Number of lines ............ 407
| Number of boundaries ....... 0
| Number of centroids ........ 0
| Number of faces ............ 0
| Number of kernels .......... 0
| Number of primitives ....... 407
| Number of nodes ............ 767
| Number of areas ............ 0
| Number of islands .......... 0
| Number of holes ............ 0
| Number of volumes .......... 0
| Number of registered maps:.. 3
|
| Title:
| North Carolina shoreline
| Description:
| North Caroline shoreline from 2000 to 2009
| Command history:
| # 2014-11-29 08:43:50
| t.vect.extract input="shoreline"
| where="start_time > 2000" output="shoreline_later_2000"
| basename="new_shoreline"
| # 2014-11-29 08:44:14
| t.support type="stvds"
| input="shoreline_later_2000@shoreline"
| descr="North Caroline shoreline from 2000 to 2009"
+----------------------------------------------------------------------------+
t.vect.list shoreline_later_2000
name|layer|mapset|start_time|end_time
shoreline_2003|None|shoreline|2003|None
shoreline_2004|None|shoreline|2004|None
shoreline_2009|None|shoreline|2009|None
π SEE ALSO π
t.create, t.info
π«Ά AUTHOR π«Ά
SΓΆren Gebbert, ThΓΌnen Institute of Climate-Smart Agriculture
β SOURCE CODE β
available at: t.vect.extract source code (history)
latest change: Tuesday Jan 27 12:40:13 2026 in commit: 5e8b13d47dd4fc81efa5abefe90c34f7a8291fb9
main index | temporal index | topics index | keywords index | graphical index | full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
and that's the whole page bestie, you ate that π
β¨ β this was t.vect.extract(1grass) from the GRASS 8.5.0 manual, and that footer energy is all yours: GRASS 8.5.0, t.vect.extract(1grass). go extract something gorgeous. π¦π
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms