共用方式為


SqlSpatialServices.Relate(DbGeometry, DbGeometry, String) 方法

定義

依據指定的維度延伸九交模型 (DE-9IM) 交集模式,判斷兩個指定的 DbGeometry 值是否在空間上有關聯。

public override bool Relate(System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry, string matrix);
override this.Relate : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry * string -> bool
Public Overrides Function Relate (geometryValue As DbGeometry, otherGeometry As DbGeometry, matrix As String) As Boolean

參數

geometryValue
DbGeometry

第一個幾何值。

otherGeometry
DbGeometry

應該和第一個幾何值針對關聯做比較的幾何值。

matrix
String

包含定義關聯性之 (DE-9IM) 交集模式文字表示的字串。

傳回

如果這個 geometryValue 值與其他Geometry 相關,則為 true,根據指定的交集模式矩陣;否則為 false。

適用於