DbSpatialServices.Relate(DbGeometry, DbGeometry, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷兩個給定 DbGeometry 值是否依據給定的維度擴展 Nine-Intersection 模型(DE-9IM)交叉模式在空間上相關。
public:
abstract bool Relate(System::Data::Spatial::DbGeometry ^ geometryValue, System::Data::Spatial::DbGeometry ^ otherGeometry, System::String ^ matrix);
public abstract bool Relate(System.Data.Spatial.DbGeometry geometryValue, System.Data.Spatial.DbGeometry otherGeometry, string matrix);
abstract member Relate : System.Data.Spatial.DbGeometry * System.Data.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)交集圖案的文字表示的字串。
傳回
true 若此 geometryValue 值依照指定的交叉模式矩陣對應於 otherGeometry ;否則 false。
例外狀況
geometryValue
otherGeometry
matrix
geometryValue
otherGeometry