[Qgis-user] results Measure Tool vs. length()
Michel Stuyts
michel.stuyts at edegem.be
Thu May 17 23:44:01 PDT 2018
$length gives the same result as length($geometry)
Michel
Van: Springfield Harrison [mailto:stellargps at gmail.com]
Verzonden: vrijdag 18 mei 2018 2:52
Aan: Michel Stuyts <michel.stuyts at edegem.be>
CC: qgis-user <qgis-user at lists.osgeo.org>
Onderwerp: Re: [Qgis-user] results Measure Tool vs. length()
Interesting and alarming observation.
And how do those results compare with output from the $length variable?
Cheers . . . . . Springfield
Samsung Tab 4
On May 17, 2018 5:26 AM, "Michel Stuyts" <michel.stuyts at edegem.be<mailto:michel.stuyts at edegem.be>> wrote:
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.
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?
Michel
_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180518/fe281d3e/attachment.html>
More information about the Qgis-user
mailing list