<div dir="ltr">Hi all,<br><div>FYI: I just issued a new ticket in github (<a href="https://github.com/OSGeo/grass/issues/415">https://github.com/OSGeo/grass/issues/415</a>) reporting that issue and accompanied with some more information.</div><div>/Johannes</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 13, 2020 at 11:53 AM Johannes Radinger <<a href="mailto:johannesradinger@gmail.com">johannesradinger@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi GRASS users,<br><div><br></div><div>maybe someone of you can explain me following problem (of understanding) I am facing:</div><div>I want to break a single line into several. More specifically, I am using v.edit with the option break and two coordinate pairs to break a single line. I'd expect that breaking a single line at two points would result in three lines; However this results in 4 categories?!</div><div><br></div><div>Here a small example using the NC dataset:</div><div>#################################</div><div># Extract single line for testing<br>v.extract --o input=streams@PERMANENT cats=92551 output=selected_stream<br><br># Break line at two point locations and clean (recommended after v.edit break)<br>v.edit map=selected_stream tool=break threshold=30 coords='635861,224469,635793,224553'<br>v.clean --o input=selected_stream output=selected_stream2 tool=rmdupl<br><br># Add categories to layer 2 to check<br>v.category --o input=selected_stream2 layer=2 output=selected_stream3 option=add<br>v.db.addtable map=selected_stream3 layer=2<br>d.vect -c map=selected_stream3@test4 layer=2 label_layer=2 attribute_column=cat<br></div><div>####################################</div><div><br></div><div>So the display shows three colors which makes sense as these would be the three lines that I'd expect from breaking a single line at two points. But there are four categories (that are also listed in the attribute table). </div><div>Can anyone explain that to me, what I am doing wrong; or even better, what would you recommend to do if I want to break a line at two coordinates into three lines?</div><div><br></div><div>Thank you for your help!</div><div>Johannes</div></div>
</blockquote></div>