<div dir="ltr"><div><br><br>On Thu, Jun 8, 2017 at 10:46 AM, Mira Kattwinkel <<a href="mailto:kattwinkel-mira@uni-landau.de">kattwinkel-mira@uni-landau.de</a>> wrote:<br>><br>> Dear list members<br>><br>> I am using v.net.iso to split a stream network at a certain distance from sampling points.<br>><br>> First, I create a network from vector lines (streams) and vector points (sampling sites) using <a href="http://v.net">v.net</a>. The lines feature have a 'cat' column, 'length', 'backward_cost' and 'forward_cost'. I would use -1 for forward costs because I am only interested in the upstream part, and length for backward costs in v.net.iso:<br>><br>> v.net.iso input=test_edges arc_layer=2 node_layer=3 output=test_edges_bw_2000  center_cats=55  arc_column=forw_cost arc_backward_column=backw_cost costs=2000<br>><br>> However, the backward part of the resulting lines with cat 1 is always too short. Likewise, if I give just 1 for the backward costs and set the costs to 5, it gets 4 segments with cat 1. Working in both directions at the same time gives correct values for the forward end, but too short for the backward end. I then realised that the numbers would be correct if the first part of the forward end was added to the backward part (see attached example). The forward part all the costs (lengths) sum up correctly to 2000 (1443.19 + 556.81). For the backward part it would be 45.72 + 511.09 = 556.81. However, if the first segment of the forward part is added, it gives the correct cost sum (45.72 + 511.09 + 1443.19 = 2000).<br><br></div>For the record in the ml, the problem was that several lines had the same category, thus uploaded lengths for each category were the sum of all lines with that category. The problem was solved by creating a new layer and adding unique categories for lines to that layer. This new layer was then used as arc_layer.<br><div><br></div><div>Markus M<br></div><div><br>><br>> Do I use the function in the wrong way or is this a bug?<br>><br>> Thanks a lot,<br>> Mira<br>><br>> --<br>> Dr. Mira Kattwinkel<br>> Quantitative Landscape Ecology<br>> Institute for Environmental Sciences<br>> University of Koblenz-Landau<br>> Fortstraße 7<br>> 76829 Landau<br>> Germany<br>> Phone: + 49 6341 280-31553<br>> Office: Building I, Room 2.02<br>><br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br></div></div>