[GRASS-user] center point along a line

Hamish hamish_nospam at yahoo.com
Thu Jun 22 06:19:59 EDT 2006


> This is a pretty simple (and classic) problem. However I am not sure
> about  how to go about it.
> 
> How should I find the mid point (coordinates) along a line segment?


check the mailing list archives, it is in there,

from memory it was like

v.to.db option=length

then use sql statement with length/2 to get half length and v.segment
(???) to travel down line to the 1/2 distance. There are a few modules
which do the v.segment thing, have a look at v.net.*, v.lrs.* too.


Hamish




More information about the grass-user mailing list