Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
低成本测试两个几何是否有可能相交。
geometry-expression.ST_IntersectsFilter(geo2)
geo2
ST_Geometry
要与 geometry-expression 进行比较的另一个几何值。
BIT 如果 geometry-expression 有可能与 geo2 相交则返回 1,否则返回 0。
可以使用 ST_IntersectsFilter 方法来进行有效测试,从而确定两个几何是否有可能相交。如果 geometry-expression 有可能与 geo2 相交则返回 1,否则返回 0。
与 ST_Intersects 相比,该测试的成本较低,但可能在几何实际上不相交的情况下返回 1。因此,在通过进一步处理来确定几何是否真正相交时,可将此方法用作主过滤器。
ST_IntersectsFilter 的实现依赖于与存储的几何相关联的元数据。由于可用元数据可能因服务器版本而发生变化(取决于数据的装载方式),或者因 ST_IntersectsFilter 在查询中的使用位置而发生变化,所以表达式 geometry-expression.ST_IntersectsFilter(geo2) 可以在 geometry-expression 与 geo2 不相交时返回不同的结果。只要 geometry-expression 与 geo2 相交,ST_IntersectsFilter 就将始终返回 1。
SQL/MM (ISO/IEC 13249-3: 2006) 服务商扩充