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
_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to