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

ST_IsLineStringCCW

Introduction: Returns true if the input is a LineString whose coordinate sequence has counter-clockwise ring orientation. Open LineStrings are evaluated as supplied, without appending the start coordinate. Non-LineString geometries and LineStrings with fewer than four points return false.

ST_IsLineStringCCW

Format: ST_IsLineStringCCW(geom: Geometry)

Return type: Boolean

Since: v1.9.1

SQL Example:

SELECT ST_IsLineStringCCW(
    ST_GeomFromWKT('LINESTRING (0 0, 1 0, 1 1, 0 1, 0 0)')
)

Output:

true