Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

ST_HasZ

Introduction: Checks for the presence of Z coordinate values representing measures or linear references. Returns true if the input geometry includes an Z coordinate, false otherwise.

Format: ST_HasZ(geom: Geometry)

Since: v1.6.1

SQL Example

SELECT ST_HasZ(
        ST_GeomFromWKT('LINESTRING Z (30 10 5, 40 40 10, 20 40 15, 10 20 20)')
)

Output:

True