1.1 KiB
1.1 KiB
ST_YMAX
[esql-st_ymax]
Syntax
:::{image} ../../../../../images/st_ymax.svg :alt: Embedded :class: text-center :::
Parameters
point
- Expression of type
geo_point
,geo_shape
,cartesian_point
orcartesian_shape
. Ifnull
, the function returnsnull
.
Description
Extracts the maximum value of the y
coordinates from the supplied geometry. If the geometry is of type geo_point
or geo_shape
this is equivalent to extracting the maximum latitude
value.
Supported types
point | result |
---|---|
cartesian_point | double |
cartesian_shape | double |
geo_point | double |
geo_shape | double |
Example
FROM airport_city_boundaries
| WHERE abbrev == "CPH"
| EVAL envelope = ST_ENVELOPE(city_boundary)
| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope)
| KEEP abbrev, airport, xmin, xmax, ymin, ymax
abbrev:keyword | airport:text | xmin:double | xmax:double | ymin:double | ymax:double |
---|---|---|---|---|---|
CPH | Copenhagen | 12.453 | 12.6398 | 55.6318 | 55.7327 |