ST_YMax

更新时间:
复制 MD 格式

Returns the maximum Y-coordinate of the input Geometry object's bounding box.

Syntax

float  ST_YMax(box3d  aGeomorBox2DorBox3D);

Parameters

Parameter Name

Description

aGeomorBox2DorBox3D

A Box2D, Box3D, or geometry object.

Description

  • The function parameter is of the box3d type. Automatic casting allows the function to process Box2D and geometry objects. The function does not support automatic casting for Box2D or geometry objects that are represented as strings.

  • The function supports 3D objects and preserves the z-coordinate.

  • The function supports circular strings and curves.

Examples

Default call:

SELECT ST_YMax('LINESTRING(0 1,2 3)'::geometry);
 st_ymax
---------
       3
(1 row)