跳转至
🎉 Apache Sedona 1.9.1 已正式发布!🗺️ 新增 Geography SQL 函数、Box2D 与 Box3D 类型、栅格 Python UDF 等。查看发布说明 →

ST_IsClosed

Introduction: RETURNS true if the LINESTRING start and end point are the same, including their Z values when the geometry has Z. Points are closed. A polygon is closed unless one of its rings ends at a different Z value than it starts. A MULTI* geometry or GEOMETRYCOLLECTION is closed when all of its members are. An empty geometry is not closed, and neither is a MULTI* geometry or GEOMETRYCOLLECTION with an empty member.

ST_IsClosed

Format: ST_IsClosed(geom: Geometry)

Return type: Boolean

Since: v1.0.0

SQL Example

SELECT ST_IsClosed(ST_GeomFromText('LINESTRING(0 0, 1 1, 1 0)'))

Output:

false