<p dir="ltr">Interesting and alarming observation.</p>
<p dir="ltr">And how do those results compare with output from the $length variable?</p>
<p dir="ltr">Cheers . . . . . Springfield<br>
Samsung Tab 4</p>
<div class="gmail_quote">On May 17, 2018 5:26 AM, "Michel Stuyts" <<a href="mailto:michel.stuyts@edegem.be">michel.stuyts@edegem.be</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="NL-BE" link="#0563C1" vlink="#954F72">
<div class="m_-5882756560869112971WordSection1">
<p class="MsoNormal"><span lang="EN-US">In the length() function QGIS uses the CRS unit of the layer to calculate the result. When I use for example a layer in a local CRS like EPSG:31370 or EPSG:5439 and a layer in EPSG:3857 (that all use meters as unit) the
results are very different (+40% difference). Changing the project CRS makes no difference. When I check the length using the Measure Tool the results are very similar to the local CRS.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">How can I measure the length of a line and use it as a label independent from the layer CRS and get results similar to the results of the Measure Tool?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Michel<u></u><u></u></span></p>
</div>
</div>
<br>______________________________<wbr>_________________<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="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br></blockquote></div>