Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回表示两个几何的点集交集的几何值。
geometry-expression.ST_Intersection(geo2)
geo2
ST_Geometry
要与 geometry-expression 相交的另一个几何值。
ST_Geometry 返回表示两个几何的点集交集的几何值。
结果的空间参照系标识符与 geometry-expression 的空间参照系标识符相同。
ST_Intersection 方法查找两个几何的空间交集。如果某点同时存在于两个输入几何中,则二者的交集中将包含此点。如果两个几何中不存在任何共有点,则结果为空几何。
如果 geometry-expression 包含圆弧线串,则它们将内插到直线线串中。
SQL/MM (ISO/IEC 13249-3: 2006) 5.1.18
下面的示例显示了正方形 (A) 和圆 (B) 的交集 (C)。
SELECT NEW ST_Polygon( 'Polygon( (-1 -0.25, 1 -0.25, 1 2.25, -1 2.25, -1 -0.25) )' ) AS A , NEW ST_CurvePolygon( 'CurvePolygon( CircularString( 0 1, 1 2, 2 1, 1 0, 0 1 ) )' ) AS B , A.ST_Intersection( B ) AS C
交集由下图中的阴影部分表示。该部分是一个表面,其中包含同时位于正方形和圆中的所有点。