DbSpatialServices.Relate(DbGeometry, DbGeometry, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
基于给定的 Dimensionally Extended Nine-Intersection Model (DE-9IM) 交集模式来确定相关两个给定的 DbGeometry 值是否相交。
public abstract bool Relate (System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry, string matrix);
abstract member Relate : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry * string -> bool
Public MustOverride Function Relate (geometryValue As DbGeometry, otherGeometry As DbGeometry, matrix As String) As Boolean
参数
- geometryValue
- DbGeometry
第一个几何图形值。
- otherGeometry
- DbGeometry
应与第一个几何图形值比较关系的几何图形值。
- matrix
- String
字符串包含定义了关系的 (DE-9IM) 交集模式的文本表示形式的。
返回
如果此 geometryValue 值根据指定的交集模式矩阵与 otherGeometry 相关,则为 true;否则为 false。
例外
geometryValue
,otherGeometry
或matrix
为 null。
geometryValue
或otherGeometry
与此空间服务实现不兼容。