ST_YSize — Returns the Y size of a 2D or 3D bounding box or a geometry.
float ST_YSize(box3d aGeomorBox2DorBox3D);
Returns the Y size of a 2D or 3D bounding box or a geometry, computed as ST_YMax(aGeomorBox2DorBox3D) - ST_YMin(aGeomorBox2DorBox3D).
|
|
|
Although this function is only defined for box3d, it also works for box2d and geometry values due to automatic casting. However it will not accept a geometry or box2d text representation, since those do not auto-cast. |
This function supports 3d and will not drop the z-index.
This method supports Circular Strings and Curves.
Availability: 3.7.0
SELECT ST_YSize('BOX3D(1 2 3, 4 5 6)');
st_ysize
--------
3
SELECT ST_YSize(ST_GeomFromText('LINESTRING(1 3, 5 6)'));
st_ysize
--------
3