跳转至
🎉 SedonaDB 0.4.0 已正式发布!🗺️ 新增 Python DataFrame API、R dplyr 接口、Geography 支持及 GPU 加速空间连接。阅读发布博客 →

ST_XMax

Introduction: Return the maximum X coordinate of a Box2D value. This is the same function as the Geometry-input form, overloaded to accept a Box2D.

Format: ST_XMax(box: Box2D)

Return type: Double

Since: v1.9.1

SQL Example

SELECT ST_XMax(ST_MakeBox2D(ST_Point(0.0, 0.0), ST_Point(10.0, 20.0)))

Output:

10.0

Returns NULL on NULL input.