<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Reginald,</p>
<p>What QGIS version are you working on? If you have version 2.10 or higher, this is very simple to solve with the "Statistics panel".</p>
<p>Got to menu "View" --> "Panels" --> "Statistics panel".</p>
<p>In the panel select the layer --> press the "Expression button" (Epsilon) and type "$length". Then you should see als sort of statistics parameters on $length, including the sum.</p>
<p>---------------------</p>
<p>Starting from QGIS 2.16, the aggregate functions are also available in the expressions - so you could have a dynamic sum of $length in your print composer.</p>
<p>Hope this helps,</p>
<p>Andreas</p>
<p>On 2016-06-22 11:13, Reginald Carlier wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored -->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family: 'Tahoma','sans-serif';">Hello,<!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-family: 'Tahoma','sans-serif';"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-family: 'Tahoma','sans-serif';">I’m want to sum up the length of all the streets in my community.<!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-family: 'Tahoma','sans-serif';">I have a vector file with the streetmiddlelines.<!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-family: 'Tahoma','sans-serif';">Under Vector there are the analysis tools and one of them is called “Lijnlengtes sommeren”. It seems that this would be the right tool. When I open up the dialog and fill in the output file and select the streetmiddlelines, the tool complains that I haven’t selected a vectorlayer as output. There is another dropbox where you can select a polygon vector layer (Why would you do that if you want to sum up lines?). If I select a polygon layer then the tool keeps running indefinitely. Seems that this is a useless tool, or am I doing something wrong?<!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-family: 'Tahoma','sans-serif';"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-family: 'Tahoma','sans-serif';">Reginald<!-- o ignored --></span></p>
</div>
<p style="font-family: Arial;"><span style="font-size: 10pt; font-family: Tahoma; color: #5c676d;">Reginald Carlier<br /></span><span style="font-size: 9pt; font-family: Tahoma; color: #5c676d;">Deskundige GIS</span></p>
<p style="font-family: Arial;"><img src="/apps/assets/program/resources/blocked.gif" alt="logo Ingelmunster" width="140" height="65" /></p>
<p style="font-family: Arial;"><span style="font-size: 9pt; font-family: Tahoma; color: #5c676d;"><br />Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster <br />T +32 51 33 74 39 <a title="website Ingelmunster" href="http://www.ingelmunster.be">www.ingelmunster.be</a></span></p>
<p style="font-family: Arial;"><a title="Facebook Ingelmunster" href="https://www.facebook.com/Ingelmunster/"><img src="/apps/assets/program/resources/blocked.gif" alt="" width="20" height="20" /></a> <a title="Google+ Ingelmunster" href="https://plus.google.com/+ingelmunster"><img src="/apps/assets/program/resources/blocked.gif" alt="" width="19" height="19" /></a> <a title="Instagram Ingelmunster" href="https://www.instagram.com/ingelmunster/"><img src="/apps/assets/program/resources/blocked.gif" alt="" width="19" height="19" /></a> <a title="Pinterest Ingelmunster" href="https://www.pinterest.com/ingelmunster/"><img src="/apps/assets/program/resources/blocked.gif" alt="" width="19" height="19" /></a> <a title="Twitter Ingelmunster" href="https://twitter.com/ingelmunster"><img src="/apps/assets/program/resources/blocked.gif" alt="" width="19" height="19" /></a> </p>
<!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>