<div dir="ltr">I already tried the v-flag. This creates a attribute table with in this case 4 lines (corresponding to the 4 distinct FCODE values).<div>However there are more segments than just 4. There are e.g. multiple "segments" with the value 33400 in the entire region</div>
<div>which are maybe then joint into one category? When I try then to query the map with the query-tool nothing happens (no selection in yellow, no information). So the desired result should contain probably more than 100 segments of which some have the same value in an attribute column called FCODE. I don't really know how the -v flag can help here? </div>
<div><br></div><div>/Johannes</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 1:48 PM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 03/02/14 11:48, Johannes Radinger wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Moritz,<br>
hi all,<br>
<br>
sorry for my late response. I can now provide an example using the NC<br>
dataset.<br>
First I needed to generate data (rasterized line/river) similar to the<br>
data input I am using.<br>
So I transformed the streams vector into a raster using the attribute<br>
column FCODE as<br>
value for the raster (v.to.rast input=streams@PERMANENT output=r_streams<br>
column=FCODE)<br>
Thereafter I thinned the raster (r.thin input=r_streams@PERMANENT<br>
output=r_streams_thin). The<br>
output corresponds to a map similar to my original map I am using.<br>
<br>
Now I wanted to (back-)transform the raster map back to lines where the<br>
resulting line segments should<br>
correspond to the segments visible in the raster map<br>
(r.to.vect input=r_streams_thin@PERMANENT output=v_r_streams_thin<br>
feature=line). However, lines<br>
are broken only where different lines join.<br>
<br>
I attached a screenshot that illustrates my task. You can see the raster<br>
map with three<br>
different segments (two different values) for that single tribuatry<br>
(indicated by blue-yellow-blow).<br>
However when the raster gets transformed into a line this information<br>
gets lost, as lines<br>
are not broken where a new raster value starts. Any suggestions how to<br>
solve such<br>
a task?<br>
</blockquote>
<br></div></div>
Same response as last time: try the -v flag of r.to.vect.<span class="HOEnZb"><font color="#888888"><br>
<br>
Moritz<br>
<br>
</font></span></blockquote></div><br></div>