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

ST_Intersection

Introduction: Return the intersection geometry of A and B

ST_Intersection

Format: ST_Intersection (A:geometry, B:geometry)

Return type: Geometry

Note

If you encounter a TopologyException with the message "found non-noded intersection", this is a known issue with the legacy overlay implementation in JTS. The OverlayNG algorithm resolves this. To enable it, add the following JVM flag:

-Djts.overlay=ng

SQL example:

SELECT ST_Intersection(polygondf.countyshape, polygondf.countyshape)
FROM polygondf