[GRASS-dev] v.clean tool=break fails

Martin Landa landa.martin at gmail.com
Sat Nov 30 09:02:36 PST 2013


Hi Markus,

2013/11/30 Markus Metz <markus.metz.giswork at gmail.com>:

[...]

>> Tool: Break lines at intersections
>> 0..ERROR: Nodes not available for line 11725
>>
>> Defining `type` explicitly helps
>>
>> $ v.clean in=x3 out=x4 tool=break --o type=boundary
>
> Fixed in r58340, please test.

thanks for super-quick fix! It seems to be OK, I found similar problem
in `merge_lines.c` (see the attached patch).

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
-------------- next part --------------
Index: lib/vector/Vlib/merge_lines.c
===================================================================
--- lib/vector/Vlib/merge_lines.c	(revision 58340)
+++ lib/vector/Vlib/merge_lines.c	(working copy)
@@ -111,7 +111,7 @@
 	Line = Plus->Line[line];
 	ltype = Line->type;
 
-	if (!(ltype & type))
+	if (ltype & GV_POINTS || !(ltype & type))
 	    continue;
 	    
 	Vect_read_line(Map, NULL, MCats, line);


More information about the grass-dev mailing list