[GRASSLIST:10025] which is the best method to calculate the distance between two points?

Patricio Antonio Toledo Peña patricioantoniotoledo at gmail.com
Fri Jan 27 09:50:54 EST 2006


dear grass list,

i have two points, they do not belong to a vector map, i have found that i
can obtain the distance (in UTM and LAT/LONG locations) with this (ugly)
trick

grass$ r.profile map=rmap profile=x1,y1,x2,y2 2> temp_file
grass$ distance=$(awk '/length/{print $4}' < temp_file)

this method needs a query to a raster map, which is unnecessary, is
something like d.measure available in r.* commands?

Thanks in advance



--
Patricio Toledo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20060127/884bba46/attachment.html


More information about the grass-user mailing list