Returns the minimum y coordinate of the bounding box of a Box2D object, Box3D object, or geometry object.
Syntax
float ST_YMin(box3d aGeomorBox2DorBox3D);Parameters
| Parameter | Description |
|---|---|
| aGeomorBox2DorBox3D | The Box2D object, Box3D object, or geometry object. |
Description
Although the parameter type is defined as Box3D, ST_YMin supports auto-casting, so it also accepts Box2D objects and geometry objects. String representations of Box2D and geometry objects are not supported and cannot be auto-cast.
ST_YMin supports 3D objects and preserves z coordinates.
ST_YMin supports circular strings and curves.
Examples
Get the minimum y coordinate of a LineString object:
SELECT ST_YMin('LINESTRING(0 1,2 3)'::geometry);
st_ymin
---------
1
(1 row)该文章对您有帮助吗?