v.what(1grass)
β¨ NAME β¨
okay bestie, welcome to v.what from the GRASS User's Manual β she's the module that queries a vector map at given locations π―
π·οΈ KEYWORDS π·οΈ
vector, querying, position β iykyk π
π SYNOPSIS π
v.what
v.what --help
v.what [-aidgjm] map=name[,name,...] [layer=string[,string,...]]
[type=string[,string,...]] coordinates=east,north [distance=float]
[columns=name[,name,...]] [format=name] [--help] [--verbose]
[--quiet] [--ui]
π© Flags π©
-aβ print attribute information β¨-iβ print attribute database connection information π-dβ print topological information (debugging). Like, it prints internal information for topology debugging π§-gβ print the stats in shell script style, but babeβ¦ [deprecated] π This flag is deprecated and will be removed in a future release. Useformat=shellinstead, fr fr.-jβ print the stats in JSON, also [deprecated] π This flag is deprecated and will be removed in a future release. Useformat=jsoninstead.-mβ print multiple features for each map if they meet the criteria. For JSON, this places features under a"features"key π--helpβ print usage summary π«Ά--verboseβ verbose module output π’--quietβ quiet module output π€«--uiβ force launching GUI dialog π₯οΈ
ποΈ Parameters ποΈ
map=name[,name,...][required] β name of vector map(s) πΊοΈlayer=string[,string,...]β layer number or name ('-1'for all layers). A single vector map can be connected to multiple database tables, and this number determines which table to use. When used with direct OGR access, this is the layer name. Default:-1type=string[,string,...]β input feature type. Options:point,line,boundary,centroid,area,face,kernel. Default:point,line,area,facecoordinates=east,north[required] β coordinates for query. Use'-'for standard input β¨οΈdistance=floatβ query threshold distance. Default:0columns=name[,name,...]β name of attribute column(s). Default: all columnsformat=nameβ output format. Options:plain,shell,jsonplain: plain text outputshell: shell script style outputjson: JSON (JavaScript Object Notation)
π DESCRIPTION π
v.what outputs the category number value(s) associated with user-specified location(s) in user-specified vector map layer(s) π
This module was derived from the d.what.vect module by removing all interactive code and modification of the output for easy parsing. And using the -g flag generates script-style output which is easily parsable π§
π EXAMPLE π
North Carolina sample dataset example, bestie, let's go:
Query polygon at given position:
v.what zipcodes_wake coordinates=637502.25,221744.25
Find closest hospital to given position within given distance (search radius):
v.what hospitals coordinates=542690.4,204802.7 distance=2000000
π SEE ALSO π
d.what.rast, d.what.vect, v.rast.stats, v.vect.stats, v.what.rast, v.what.rast3, v.what.vect
π AUTHOR π
Trevor Wiens Edmonton, Alberta, Canada π¨π¦
π₯ SOURCE CODE π₯
Available at: v.what source code (history)
Latest change: Sunday Oct 19 06:41:19 2025 in commit: 3852c52a6ee5ed16ab7c0d2129951ff2d4badb8b
Main index | Vector 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, no cap π
this was v.what(1grass) out of the GRASS User's Manual, running under GRASS 8.5.0 β mwah, slay, periodt π«Άβ¨
π¦ 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