[GRASS-user] v.clean line snapping

Hamish hamish_nospam at yahoo.com
Thu Jun 22 21:37:13 EDT 2006


...
> 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




More information about the grass-user mailing list