<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Dear list members,</p>
    <p>has nobody any idea what's going on (see below)?</p>
    <p>When using forward and backward costs or only backward costs in
      v.net.iso the backward end (i.e. upstream) always gets too short /
      too few segments.</p>
    <p>Can anybody please point me into the right direction.</p>
    <p>All the best, Mira<br>
    </p>
    <p><br>
    </p>
    <blockquote
      cite="mid:mailman.88627.1496912341.18832.grass-user@lists.osgeo.org"
      type="cite">
      <pre wrap="">Subject:     wrong result in v.net.iso for backward direction
Date:   Thu, 8 Jun 2017 10:46:42 +0200
From:   Mira Kattwinkel <a class="moz-txt-link-rfc2396E" href="mailto:kattwinkel-mira@uni-landau.de"><kattwinkel-mira@uni-landau.de></a>
To:     grass-user <a class="moz-txt-link-rfc2396E" href="mailto:grass-user@lists.osgeo.org"><grass-user@lists.osgeo.org></a>

Dear list members

I am using v.net.iso to split a stream network at a certain distance
from sampling points.

First, I create a network from vector lines (streams) and vector points
(sampling sites) using v.net. 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:

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

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

Do I use the function in the wrong way or is this a bug?

Thanks a lot,
Mira</pre>
    </blockquote>
    URL: <a class="moz-txt-link-rfc2396E"
href="http://lists.osgeo.org/pipermail/grass-user/attachments/20170608/97469a58/attachment.png"><http://lists.osgeo.org/pipermail/grass-user/attachments/20170608/97469a58/attachment.png></a><br>
    <pre wrap="">URL: <a class="moz-txt-link-rfc2396E" href="http://lists.osgeo.org/pipermail/grass-user/attachments/20170608/97469a58/attachment-0001.png"><http://lists.osgeo.org/pipermail/grass-user/attachments/20170608/97469a58/attachment-0001.png></a>
</pre>
    PS <br>
    <pre wrap="">I just realized that it works correctly for length in both direction if 
the parameters arc_column and arc_backward_column are not given. 
However, for me this is inefficient because I only need the backward end.
</pre>
    <br>
  </body>
</html>