<div dir="ltr">Dr. Kattwinkel:<div>Thank you for your answer. </div><div>When you say about the "db.execute" you mean to make a "join" SQL operation.</div><div>You are right.</div><div><br></div><div>But at the moment when I generate the polylines with v.build.polyline, I lose the ID of each segment current.</div><div>So I don't know how can I keep the current segment ID and the polyline of each Horton current to make the join command.</div><div><br></div><div>What do you think is the best way to do that?</div><div><br></div><div>Best wishes.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 11 dic 2020 a las 3:38, Mira Kattwinkel (<<a href="mailto:kattwinkel-mira@uni-landau.de">kattwinkel-mira@uni-landau.de</a>>) escribió:<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>
    <p>Dear Kenneth</p>
    <p>db.execute might be an option to fill a new column with what you
      want. I am not an SQL expert, but I suppose it is possible to
      concatenate the right strings if you do it for each order
      separately and count the number of currents first.</p>
    <p>Cheers, <br>
    </p>
    <p>Mira<br>
    </p>
    <div>On 10/12/2020 17.15, Kenneth Roy
      Cabrera Torres wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Dear GRASS users:<br>
        <br>
        Can you give any suggestions to solve this problem?<br>
        <br>
        I have an ordered dataset of segments of river currents output
        from r.stream.order command.<br>
        I will like to add a column to this dataset that identifies each
        current according to Horton ordering.<br>
        I mean it actually identifies the Horton number. But what I want
        to do is to separate each <br>
        Horton current from each order. For example, if I have, say 4
        Horton currents of order 5,<br>
        then I will like to have an additional column that identifies
        each Horton current (5-1, 5-2, ..., 5-4).<br>
        <br>
        I try with v.build.polyline and indeed it separates the
        individual currents of the same<br>
        Horton order. But I don't know how to incorporate that new cat
        ID to the current segments' dataset.<br>
        <br>
        Thank you for your help.<br>
        <div><br>
        </div>
        -- <br>
        <div dir="ltr">Kenneth Roy
          Cabrera Torres<br>
          Cel 315 504 9339</div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
grass-user mailing list
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Dr. Mira Kattwinkel
Quantitative Landscape Ecology
iES Landau, Institute for Environmental Sciences
University of Koblenz-Landau
Fortstraße 7
76829 Landau
Germany
Phone: + 49 6341 280-31553
Office: Building I, Room 2.02</pre>
  </div>

_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Kenneth Roy Cabrera Torres<br>Cel 315 504 9339</div>