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: -1
  • type=string[,string,...] β€” Input feature type. Options: point, line, boundary, centroid, area, face, kernel Default: point,line,area,face
  • coordinates=east,north [required] β€” Coordinates for query. ’-’ for standard input πŸ“
  • distance=float β€” Query threshold distance. Default: 0
  • columns=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