[GRASS-user] v.clean line snapping

suppose this scenario. you have a bunch of points. you have a bunch of lines. you need to connect the points to the line, and you use v.distance.

then you use v.patch to put the points, lines, and “connecting” lines into one file.

then you run v.clean.

when you use the snap and break tool… does the line connecting to another line snap and break it at the point where the line touches the other one? or does it have to reach to find a vertex to do this. if it is the latter, it seems like one has to increase the threshold to make it hit a verticie. i hope it can break the line, insert a node and make the topological connection, rather than having to find a verticie to snap to…

...

then you run v.clean.

when you use the snap and break tool... does the line connecting to another
line snap and break it at the point where the line touches the other one? or
does it have to reach to find a vertex to do this. if it is the latter, it
seems like one has to increase the threshold to make it hit a verticie. i
hope it can break the line, insert a node and make the topological
connection, rather than having to find a verticie to snap to...

v.clean will break the lines where they cross, creating new node if needed.

example:

v.in.ascii -n out=crossed_lines format=standard << EOF
L 2
0 5
10 5
L 2
5 0
5 10
EOF

v.clean in=crossed_lines out=crossed_lines_brk error=intersection tool=break

Hamish