[GRASS-dev] calculating bearing

Hamish hamish_nospam at yahoo.com
Wed May 16 22:18:32 EDT 2007

Michael Barton wrote:
> I'm doing a measure tool for wxgrass at the moment and realized that I
> have the xy endpoints of each segment being passed to the MeasureDist
> method. If there is an easy way to do so, it seems handy to add
> bearing to the output along with segment length. Do you think that it
> is enough of a problem with latlon regions that I shouldn't add it in?

just skip bearing output for lat/lon locations.

this seems like a great task for trying out the Python SWIG interface to
libgis rather than reimplement algorithms in the GUI code.

see lib/gis/distance.c


More information about the grass-dev mailing list