ST_YMin

更新时间:
复制 MD 格式

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

ParameterDescription
aGeomorBox2DorBox3DThe 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)