ST_ZMin — Returns the minimum Z of the geometry bounding box.
double ST_ZMin(
bytea
Geometry)
;
Returns the minimum Z of the geometry bounding box.
2D | 3D | M |
---|---|---|
OGC SFS for SQL. 1.1 (1999) | OGC SFS for SQL. 1.1.0 (2005) | OGC SFS for SQL. 1.2.0 (2006) | SQL-MM Part 3 |
---|---|---|---|
- | - | - | - |
SELECT ST_AsText(Box3D(ST_GeomFromText('LINESTRING (1 1 -5, 2 3 10, 3 2 5, 4 4 0)'))); --Result POLYGON ((1 1 -5, 1 4 10, 4 4 10, 4 1 -5, 1 1 -5)) SELECT ST_ZMin(Box3D(ST_GeomFromText('LINESTRING (1 1 -5, 2 3 10, 3 2 5, 4 4 0)'))); --Result -5.0 SELECT ST_ZMin(ST_GeomFromText('LINESTRING (1 1 -5, 2 3 10, 3 2 5, 4 4 0)')); --Result -5.0