GRASS logo

Note: A new GRASS GIS stable version has been released: GRASS GIS 7. Go directly to the new manual page here


d.where - Identifies the geographic coordinates associated with point locations in the active frame on the graphics monitor.


display, position, querying


d.where help
d.where [-1dlwf] [--verbose] [--quiet]


One mouse click only
Output lat/long in decimal degree
Output lat/long referenced to current ellipsoid
Output lat/long referenced to WGS84 ellipsoid using datum transformation parameters defined in current location (if available)
Output frame coordinates of current display monitor (percentage)
Verbose module output
Quiet module output


d.where is an interactive program that allows the user, using the pointing device (mouse), to identify the geographic coordinates associated with point locations within the current geographic region in the active display frame on the graphics monitor.

Each mouse click will output the easting and northing of the point currently located beneath the mouse pointer. A mouse-button menu is presented so the user knows which mouse buttons to use. The output is always printed to the terminal screen; if the output is redirected into a file, it will be written to the file as well.

Mouse buttons:

     Left:   where am i
     Middle: draw to/from here
     Right:  quit this
The left mouse button prints the coordinates at the selected point, the middle mouse button allows you to query two points (they are connected by a line for convenience). Use the right mouse button to exit the module.


This program uses the current geographic region setting and active frame. It is not necessary, although useful, to have displayed a map in the current frame before running d.where. The -d flag allows the user to optionally output latitude/longitude coordinates 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 location. If the -f flag is given the x,y frame coordinates of the active display monitor will be returned (as a percentage, 0,0 is bottom left).




James Westervelt,
Michael Shapiro,
U.S. Army Construction Engineering Research Laboratory

Last changed: $Date: 2013-04-17 22:56:53 -0700 (Wed, 17 Apr 2013) $

Main index - display index - Full index

© 2003-2016 GRASS Development Team