Available in versions: Dev (3.21) | Latest (3.20)

ST_YMax

Applies to ❌ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

This function extracts the maximum Y coordinate of a geometry.

create.select(stYMax(stGeomFromText("POLYGON ((-1 0, 1 0, 1 2, -1 2, -1 0))"))).fetch();

The result being, for example

+---------+
| ST_YMAX |
+---------+
|       1 |
+---------+

Dialect support

This example using jOOQ:

stYMax(geometry)

Translates to the following dialect specific expressions:

Aurora MySQL, Aurora Postgres, CockroachDB, DuckDB, Postgres, Redshift, Snowflake

st_ymax(geometry)

Oracle

sdo_geom.sdo_max_mbr_ordinate(geometry, 2)

ASE, Access, BigQuery, ClickHouse, DB2, Databricks, Derby, Exasol, Firebird, H2, HSQLDB, Hana, Informix, MariaDB, MemSQL, MySQL, SQLDataWarehouse, SQLServer, SQLite, Sybase, Teradata, Trino, Vertica, YugabyteDB

/* UNSUPPORTED */
Generated with jOOQ 3.21. Translate your own SQL on our website

References to this page

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo