d.where(1)
β¨ d.where β GRASS GIS User's Manual β¨
hiii bestie π so this page is d.where(1) and it's literally the "where am i" of your GRASS GIS life. no cap.
πΈ NAME πΈ
d.where β it figures out the geographic coordinates that go with point locations you give it in display coordinates. it's giving translator energy β¨
π·οΈ KEYWORDS π·οΈ
display, sampling, position, querying
π¦ SYNOPSIS π¦
d.where
d.where --help
d.where [-dlwf] [at=x,y[,x,y,...]] [input=name] [--help]
[--verbose] [--quiet] [--ui]
π© Flags
-dβ outputs lat/long in decimal degree instead of the whole DD:MM:SS situation-lβ outputs lat/long referenced to the current ellipsoid-wβ outputs lat/long referenced to the WGS84 ellipsoid, using the datum transformation parameters defined in your current location (if those even exist, so like, if available)-fβ outputs the frame coordinates of the current display monitor, as a percentage--helpβ print usage summary, the classic--verboseβ verbose module output, she's chatty--quietβ quiet module output, she's not--uiβ force launching the GUI dialog π₯οΈ
π Parameters
at=x,y[,x,y,...]β display coordinates to convertinput=nameβ file from which to read coordinates ("-"means read from stdin, iconic)
π DESCRIPTION π
okay so d.where is an interactive program that lets you, with the pointing device (yes, the mouse π), identify the geographic coordinates associated with point locations within the current geographic region in the active display frame on the graphics monitor. periodt.
every single mouse click outputs the easting and northing of the point currently chillin' right under your mouse pointer. a mouse-button menu pops up so you know which buttons do what β so thoughtful of her honestly. the output is always printed to the terminal screen; and if you redirect that output into a file, it gets written to the file too. best of both worlds, no cap. π«Ά
Mouse buttons:
Left: where am i
Middle: draw to/from here
Right: quit this
the left mouse button prints the coordinates at the point you selected, the middle mouse button lets you query two points (and they get connected by a line for convenience, cute), and the right mouse button is your exit. bye bestie π
π NOTES π
this program uses the current geographic region setting and the active frame. it's not necessary to have displayed a map in the current frame before running d.where β though it is useful, so like, you do you.
the -d flag lets you optionally output latitude/longitude coordinate pair(s) in decimal degree rather than DD:MM:SS format. the -w flag is only valid if a datum is defined for the current project's coordinate reference system (iykyk).
π¨ and if you give the-fflag, thex,yframe coordinates of the active display monitor get returned as a percentage, where0,0is the bottom left. don't forget that part, it's lowkey important.
π EXAMPLE π
query position in map (North Carolina sample dataset):
d.rast elevation
d.where
π SEE ALSO π
d.what.rast, d.what.vect, g.region, v.what.rast, v.what.vect
π AUTHORS π
James Westervelt, Michael Shapiro, U.S. Army Construction Engineering Research Laboratory
π SOURCE CODE π
available at: d.where source code (history)
accessed: Saturday Jan 17 05:40:37 2026
main index | display index | topics index | keywords index | graphical index | full index
and that's the whole page bestie, you ate that πβ¨ this was brought to you by the Β© 2003-2025 GRASS Development Team and the GRASS GIS 8.4.2 Reference Manual β accessed Saturday Jan 17 05:40:37 2026, GRASS 8.4.2, d.where(1). slay, go query some points π
π¦
π¦ 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