Name

ST_YMax — Returns the maximum Y of the geometry bounding box.

Synopsis

double ST_YMax(bytea Geometry);

Alias

YMax

Description

Returns the maximum Y of the geometry bounding box.

Coordinate Dimensions
2D3DM
Spatial Standards Support
OGC SFS for SQL. 1.1 (1999)OGC SFS for SQL. 1.1.0 (2005)OGC SFS for SQL. 1.2.0 (2006)SQL-MM Part 3
----

Examples

SELECT ST_AsText(Box2D(ST_GeomFromText('LINESTRING (1 1, 2 3, 3 2, 4 6)')));
--Result
POLYGON ((1 1, 1 6, 4 6, 4 1, 1 1))

SELECT ST_YMax(Box2D(ST_GeomFromText('LINESTRING (1 1, 2 3, 3 2, 4 6)')));
--Result
6.0

SELECT ST_YMax(ST_GeomFromText('LINESTRING (1 1, 2 3, 3 2, 4 6)'));
--Result
6.0

Related functions

ST_XMax,ST_XMin,ST_YMin,ST_ZMax,ST_ZMin