d.geodesic(1grass)
β¨ d.geodesic β bestie, let's draw the shortest line on a globe π
okay so this is d.geodesic(1grass), straight out of the GRASS User's Manual, and it's literally the tool for tracing the shortest path between two points on a curved Earth. great circle girlies rise π
πΈ NAME πΈ
d.geodesic β bestie, this one displays a geodesic line, tracing the shortest distance between two geographic points along a great circle, in a longitude/latitude data set. no cap. π¦
π 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β print the usage summary, so you know what's up π--verboseβ verbose module output, she's chatty π¬--quietβ quiet module output, she's giving mysterious π€«--uiβ force launching GUI dialog, for the visual besties π₯οΈ
π Parameters:
coordinates=lon1,lat1,lon2,lat2[required] β the starting and ending coordinates, and yes she's required, you can't skip her πline_color=nameβ line color. either a standard color name or anR:G:Btriplet. default isblackπ€text_color=nameβ text color. either a standard color name or anR:G:Btriplet π¨units=stringβ units. units. (yes she said it twice π) options:meters,kilometers,feet,milesdefault:metersπ
π DESCRIPTION π
okay so d.geodesic displays a geodesic line in the active frame on the user's graphics monitor. this is also known as the great circle line, and she traces the shortest distance between two user-specified points on the curved surface of a longitude/latitude data set. iconic behavior honestly π
the two coordinate locations you name must fall within the boundaries of the user's current geographic region. like, she will not go outside the region, that's the vibe check π§
β¨ OPTIONS β¨
by default, black line color and red text color will be used. periodt. π€β€οΈ
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. if the text color is set to none, the great circle distance is not displayed. so like, no text, no distance, she goes silent π€
π¦ EXAMPLE π¦
a geodesic line if 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. that's it, that's the note. don't try her anywhere else, she will not slay π
π SEE ALSO π
d.rhumbline, d.grid, m.measure β go read those too bestie, they're the friend group π«Ά
π AUTHOR π
Michael Shapiro, U.S. Army Construction Engineering Research Laboratory π«‘
π§ SOURCE CODE π§
available at: d.geodesic source code (history)
latest change: Thursday May 08 14:17:52 2025 in commit: 3caa352f78f86a51ca463a6f1ba7ffe3db9771df
main index | display index | topics index | keywords index | graphical index | full index
and that's a wrap, bestie π this was GRASS 8.5.0 (the Reference Manual, Β© 2003-2026 GRASS Development Team), last touched Thursday May 08 14:17:52 2025, and the page signs off all cute as d.geodesic(1grass) under the GRASS 8.5.0 banner. slay, go draw some great circles πβ¨π
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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