ST_ZSize — Returns the Z size of a 2D or 3D bounding box or a geometry.
float ST_ZSize(box3d aGeomorBox2DorBox3D);
Returns the Z size of a 2D or 3D bounding box or a geometry, computed as ST_ZMax(aGeomorBox2DorBox3D) - ST_ZMin(aGeomorBox2DorBox3D).
|
|
|
Obwohl diese Funktion nur für box3d definiert ist, funktioniert sie aufgrund des automatischen Castings auch für box2d- und Geometriewerte. Sie akzeptiert jedoch keine Geometrie- oder box2d-Textdarstellung, da diese nicht automatisch gecastet werden. |
Diese Funktion unterstützt 3d und lässt den Z-Index nicht fallen.
Diese Methode unterstützt kreisförmige Strings und Kurven.
Availability: 3.7.0
SELECT ST_ZSize('BOX3D(1 2 3, 4 5 6)');
st_zsize
--------
3
SELECT ST_ZSize(ST_GeomFromEWKT('LINESTRING(1 3 4, 5 6 7)'));
st_zsize
--------
3