d.geodesic(1)

πŸ’« d.geodesic(1) β€” GRASS GIS User's Manual πŸ’«

okay bestie, welcome to d.geodesic, a lil display module from the GRASS GIS fam that draws the actual shortest path between two points on a globe. like, the real shortest path, along a great circle. it's giving geography nerd main character energy and we're obsessed πŸ’–


✨ NAME ✨

d.geodesic β€” draws a geodesic line, tracing the shortest distance between two geographic points along a great circle, inside a longitude/latitude data set. periodt, that's the whole job πŸŽ€

πŸ”‘ KEYWORDS πŸ”‘

display, distance, great circle, shortest path


πŸ¦‹ SYNOPSIS πŸ¦‹

d.geodesic
d.geodesic --help
d.geodesic coordinates=lon1,lat1,lon2,lat2  [line_color=name]
[text_color=name]   [units=string]   [--help]  [--verbose]  [--quiet]
[--ui]

🚩 Flags 🚩

  • --help β€” prints the usage summary, so you get the whole vibe explained back at you
  • --verbose β€” verbose module output, it will literally narrate everything
  • --quiet β€” quiet module output, no yapping allowed
  • --ui β€” forces the GUI dialog to launch, for the girlies who like buttons

🎯 Parameters 🎯

  • coordinates=lon1,lat1,lon2,lat2 β€” required, no skipping this one. the starting and ending coordinates, that's the whole point bestie
  • line_color=name β€” the line color. either a standard color name or an R:G:B triplet. default: black
  • text_color=name β€” the text color. either a standard color name or an R:G:B triplet (yes it's a whole vibe, no default listed here πŸ’…)
  • units=string β€” Units. (yes, the original says "Units" twice, iconic.) Options: meters, kilometers, feet, miles. Default: meters

🌸 DESCRIPTION 🌸

d.geodesic displays a geodesic line in the active frame on the user's graphics monitor. that's also known as the great circle line, and it traces the shortest distance between two user-specified points on the curved surface of a longitude/latitude data set. so like, not a straight line on a flat map β€” a real curve on a real sphere, slay 🌈

the two coordinate locations you name must fall within the boundaries of your current geographic region. if they don't, that's a you problem, bestie 🫢


πŸ’… OPTIONS πŸ’…

by default, black line color and red text color will be used. cute, classic, no notes ✨

by indicating the starting and ending coordinates of the geodesic, the line and its length (by default in meters) are displayed to the graphical output. so you get the pretty line and the receipts πŸ”₯

if the text color is set to none, the great circle distance is not displayed. so like, if you want the line but not the number, that's your move. no cap.

⭐ EXAMPLE ⭐

a geodesic line is shown over the political map of the world (demolocation dataset):

g.region vector=country_boundaries -p
d.mon wx0
d.vect country_boundaries type=area
# show additionally a 20 degree grid
d.grid 20
d.geodesic coordinates=55:58W,33:18S,26:43E,60:37N \
  line_color=yellow text_color=red units=kilometers

Geodesic line (great circle line)


🧚 NOTES 🧚

this program works only with longitude/latitude coordinate system. like, only. don't try it elsewhere, it's not built different πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

d.rhumbline, d.grid, m.measure


πŸ’œ AUTHOR πŸ’œ

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


πŸ’– SOURCE CODE πŸ’–

Available at: d.geodesic source code (history)

Accessed: Saturday Jan 17 05:40:34 2026

Main index | Display index | Topics index | Keywords index | Graphical index | Full index


and that's the whole page, bestie!! πŸŽ€ this was GRASS GIS 8.4.2, page d.geodesic(1), accessed on that Saturday Jan 17 05:40:34 2026 moment, Β© 2003-2025 GRASS Development Team, straight out of the GRASS GIS 8.4.2 Reference Manual. go draw some great circles, you ate πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from