t.vect.db.select(1grass)
π t.vect.db.select β okay so here's the tea
bestie. if you've got a space time vector dataset (yes, the fancy temporal kind) and you just wanna see the attributes of the vector maps living inside it, this is the little icon you've been looking for. no cap.
Manual name (iykyk): t.vect.db.select(1grass) β she's a GRASS User's Manual girlie.
β¨ KEYWORDS β¨
temporal, attribute table, vector, database, select, time
πΈ SYNOPSIS πΈ
t.vect.db.select
t.vect.db.select --help
t.vect.db.select input=name [columns=name[,name,...]]
[separator=character] [layer=string] [where=sql_query]
[t_where=sql_query] [--help] [--verbose] [--quiet] [--ui]
π Flags
--helpβ prints the usage summary so you're not out here guessing π--verboseβ verbose module output, aka she tells you everything π£οΈ--quietβ quiet module output, aka she says nothing, main character silence π«Ά--uiβ force launches the GUI dialog, for the visual learners β¨
π¦ Parameters
input=name[required, bestie, you must feed her this] β name of the input space time vector datasetcolumns=name[,name,...]β the name of the attribute column(s) you wantseparator=characterβ the field separator character that sits between your output columns. Special characters you can use:pipe,comma,space,tab,newline. Default:pipelayer=stringβ layer number or name. Vector features can have category values in different layers, and this number decides which layer gets used. When it's used with direct OGR access, this is the layer name. Default:1where=sql_queryβ WHERE conditions of an SQL statement, without the'where'keyword. Example:income < 1000 and population >= 10000t_where=sql_queryβ WHERE conditions of an SQL statement, without the'where'keyword, but this one is used in the temporal GIS framework. Example:start_time > '2001-01-01 12:30:00'
π DESCRIPTION π
So literally, the module t.vect.db.select prints attributes of vector maps registered in a space time vector dataset. that's it. that's the whole vibe. she looks inside the temporal dataset and hands you the attribute table. periodt. π
π EXAMPLE π
okay so the example here is querying the shoreline space time dataset. watch this:
t.vect.db.select input=shoreline
start_time|end_time|cat|DESCR|SOURCE|DATE
1849|1873|1|T-736|NOAA/USGS|01/01/1858
1849|1873|2|T-657|NOAA/USGS|01/01/1857
1849|1873|3|T-381(2)|NOAA/USGS|01/01/1852
1849|1873|4|T-381(1)|NOAA/USGS|01/01/1852
1849|1873|5|T-381(1)|NOAA/USGS|01/01/1852
...
2009||44|2009 USDA NAIP|2009-07-11|VA, SAND, Wet / Dry
2009||45|2009 USDA NAIP|2009-07-11|Carolina Beach, SAND, Wet / Dry
2009||46|2009 USDA NAIP|2009-07-11|Carolina Beach, REVETMENT-ROCK, Hard Structure
2009||47|2009 USDA NAIP|2009-07-11|Fort Fisher, REVETMENT-ROCK, Hard Structure
ate. π
and then, in the following example, she prints only the DATE and SOURCE columns, for data before 1900-01-01. narrowing it down, we love a filtered queen:
t.vect.db.select input=shoreline column=DATE,SOURCE t_where="start_time < 1900"
start_time|end_time|DATE|SOURCE
1849|1873|01/01/1858|NOAA/USGS
1849|1873|01/01/1857|NOAA/USGS
1849|1873|01/01/1852|NOAA/USGS
1849|1873|01/01/1852|NOAA/USGS
...
1849|1873|01/01/1860|NOAA/USGS
1849|1873|01/01/1860|NOAA/USGS
1849|1873|01/01/1873|Coastal Carolina University
1849|1873|01/01/1873|Coastal Carolina University
1849|1873|01/01/1873|Coastal Carolina University
π SEE ALSO π
t.create, t.info
π AUTHOR π
SΓΆren Gebbert, ThΓΌnen Institute of Climate-Smart Agriculture
πΎ SOURCE CODE πΎ
Available at: t.vect.db.select source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit: a82a39f673b97fafcfce1604dc3e6015cb96487a
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 π go forth and select your attributes, you absolute legend. this wasGRASS 8.5.0,t.vect.db.select(1grass)β slay, no cap, bye π§β¨
π¦ 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