[GRASS-user] lines and interpolations
Moritz Lennert
mlennert at club.worldonline.be
Mon Jun 4 06:14:59 PDT 2012
On 03/06/12 13:28, ambrish dhaka wrote:
> Hi! all,
> just a random exercise!
>
> if I have a set of lines then can they be connected through their
> endpoints to the nearest end-point of nearest line, thus creating a
> single line.
brainstorming (in addition to Micha's response):
- v.to.db option=start,end to get the coordinates of line ends
- v.in.db to create point maps with line ends
- v.distance with output= to create lines between closest line ends
You would have to find a way to exclude original couples of start+end in
v.distance run.
>
> or
>
> Can we have a line generated through the centroids of the polygons in a
> single command.
Again brainstorming in addition to Micha's ideas:
If you mean one line that goes through all centroids, I don't think that
you can do this in a single command, but you could try a combination of
v.net.visibility + v.net.salesman...
Moritz
More information about the grass-user
mailing list