[GRASSLIST:7834] Re: distance between two points

Markus Neteler neteler at itc.it
Tue Aug 9 05:09:14 EDT 2005


On Mon, Aug 08, 2005 at 03:08:30PM -0400, Jason Horn wrote:
> Is there a grass function that will calculate the distance between  
> two points on a vector layer? 

Yes.

- direct distance: v.distance
- along a vector network: v.net.path/d.path

> How about between a point on a vector  
> layer and a cell on a raster layer?

- you may convert the cell center to a vector point (r.to.vect)
- then above functions

Markus




More information about the grass-user mailing list