<div dir="ltr"><div><div><div><div><div>Ciao Luca,<br></div>if you mean cutting the stream and manually assigning a width to every arc, well, it's not the right procedure anyway, but if you deal with a network as a network you should allow waterflow grow for other reasons besides going downhill. Every node brings affluents so more water becomes a bigger stream. So classifying the rank of the network is the proper thing to do. You don't have to do it manually, it's a directed planar graph so there are tools to deal with it (plugings and processing).<br></div>If you look at old cartography, you may argue streams grow gradually and that is true, but there are tiny gutters and invisible kennels feeding them...<br></div>Yes you may desire to kill all hydrologists, but this is a graph and the easiest thing is assuming the size of the stream depends on the rank of the starting node.<br></div>You may also assume some "intelligence" in the tools you use may provide som help. It's more convenient to keep your streams in a network conscious database like spatialite instead of storing into shapefiles.<br></div>c<br><div><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, 14 Jul 2015 at 22:08:45, <<a href="mailto:luca.galuppini@gmail.com">luca.galuppini@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all<br>
i have this idea of rendering a river network so that each river starts as<br>
a very thin blue line, and the line width increases little by little as the<br>
river goes.<br>
i wouldn't like to modify the original file (eg cutting rivers in pieces<br>
and give a different width to each piece) but all rivers are digitized with<br>
the right direction so i was wondering if there is an expression to teach<br>
qgis what is the start end of a river, and assign a wider line for any<br>
given distance, for example:<br>
from start to 200m - line width 0.1<br>
from 200m to 400m - line width 0.2<br>
from 400m and over - line width 0.3<br>
i think this is an interesting problem because i cannot find a "from - to"<br>
command in qgis expression language, neither i know how to properly exploit<br>
the line direction with code, which would come useful in many other ways...<br>
any python expert out there can help?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20150714/53ba1c74/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/attachments/20150714/53ba1c74/attachment-0001.html</a>><br></blockquote><div> </div></div><div class="gmail_signature"><div dir="ltr"><div><br></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div>