跳转至
Apache Sedona 1.9.0 已正式发布,新增 Spark 4.1 支持、proj4sedona 坐标系转换、Bing Tile 函数等众多特性!

ST_Normalize

Introduction: Returns the input geometry in its normalized form.

ST_Normalize

Format: ST_Normalize(geom: Geometry)

Return type: Geometry

Since: v1.3.0

Example:

SELECT ST_AsEWKT(ST_Normalize(ST_GeomFromWKT('POLYGON((0 1, 1 1, 1 0, 0 0, 0 1))')))

Result:

POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))