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

ST_Touches

Introduction: Return true if A touches B

ST_Touches returning true ST_Touches returning false

Format: ST_Touches (A: Geometry, B: Geometry)

Return type: Boolean

Since: v1.5.0

Example:

SELECT ST_Touches(ST_GeomFromWKT('LINESTRING(0 0,1 1,0 2)'), ST_GeomFromWKT('POINT(0 2)'))

Output:

true