[Qgis-user] get length of "custom" geometry in expression
Raymond Nijssen
r.nijssen at terglobo.nl
Sun Jul 5 10:49:15 PDT 2015
Im' trying to do this in my label expression:
length($geometry)
but it always returns 0. Is there a way I can do that? I tried
getlength() and getLength() as well, without luck.
I know there is the $length which works on the geometry right away, but
i am performing a transformation first:
length( transform($geometry, 'EPSG:3857', 'EPSG:3006') )
Hoping anyone can help!
Raymond
More information about the Qgis-user
mailing list