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 convert
  • input=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 -f flag, the x,y frame coordinates of the active display monitor get returned as a percentage, where 0,0 is 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