[Qgis-user] Z($geometry), CRS and transforms: buggy?
Andrea Giudiceandrea
andreaerdna at libero.it
Mon Sep 2 01:20:33 PDT 2024
> Greg Troxel gdt at lexort.com
> Sun Sep 1 16:14:34 PDT 2024
> The TL:DR: is that I believe
>
> Z($geometry) returns the Z value from the geometry in the layer,
> without regard to the CRS. It *should* return the Z component after
> transforming from layer CRS to project CRS. (qgis 3.34.10)
Hi Greg,
the z(@geometry) function as well as both x(@geometry) and y(@geometry)
functions always return the actual geometry's x, y, z coordinate
regardless of the layer's CRS or the project's CRS.
I.e. @geometry (or the deprecated $geometry) returns only a geometry
object that doesn't contain any info about the CRS.
Best regards.
Andrea Giudiceandrea
More information about the QGIS-User
mailing list