v.what(1)
π v.what β GRASS GIS User's Manual π
okay bestie, welcome to v.what, straight outta the GRASS GIS User's Manual β¨ this one is a little icon and it does exactly one thing and it does it well: you point at a spot on a vector map and it tells you what's there. no cap. π
β¨ NAME β¨
v.what β Queries a vector map at given locations. πΊοΈπ
πΈ KEYWORDS πΈ
vector, querying, position π¦
β¨ SYNOPSIS β¨
v.what
v.what --help
v.what [-dagjm] map=name[,name,...] [layer=string[,string,...]]
[type=string[,string,...]] coordinates=east,north [distance=float]
[columns=name[,name,...]] [--help] [--verbose] [--quiet] [--ui]
π Flags:
-dβ Print topological information (debugging) π-aβ Print attribute information π-gβ Print the stats in shell script style π-jβ Print the stats in JSON π§Ύ-mβ Print multiple features if overlapping features are found π―--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. 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,kernelDefault:point,line,area,facecoordinates=east,north[required] β Coordinates for query.β-βfor standard input πdistance=floatβ Query threshold distance. Default:0columns=name[,name,...]β Name of attribute column(s). Default: all columns
π DESCRIPTION π
v.what outputs the category number value(s) associated with user-specified location(s) in user-specified vector map layer(s). π«
fr fr, this module was derived from the d.what.vect module by removing all interactive code and modification of the output for easy parsing. and the way that it's built for parsing?? obsessed. π«Ά Using the -g flag generates script-style output which is easily parsable β literally the moment your shell script bestie has been waiting for. πβ¨
π EXAMPLE π
North Carolina sample dataset example:
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
not me dropping exact coordinates like it's a pin on the group chat π₯π periodt.
β 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)
Accessed: Saturday Jan 17 05:41:33 2026 π°οΈ
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page bestie!! π this was GRASS 8.4.2, footer date Saturday Jan 17 05:41:33 2026, Β© 2003-2025 GRASS Development Team, from the GRASS GIS 8.4.2 Reference Manual β mwah, slay, go query something iconic πβ¨π¦π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· 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