DbSpatialServices.Intersects 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Intersects(DbGeography, DbGeography) |
判斷兩個給定 DbGeography 值是否在空間上相交。 |
| Intersects(DbGeometry, DbGeometry) |
判斷兩個給定 DbGeometry 值是否在空間上相交。 |
Intersects(DbGeography, DbGeography)
判斷兩個給定 DbGeography 值是否在空間上相交。
public abstract bool Intersects(System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
abstract member Intersects : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> bool
Public MustOverride Function Intersects (geographyValue As DbGeography, otherGeography As DbGeography) As Boolean
參數
- geographyValue
- DbGeography
第一個比較交叉點的地理值。
- otherGeography
- DbGeography
第二個地理價值比較以取得交叉點。
傳回
若 geoographyValue 與其他地理相交則為真;否則為假。
例外狀況
geographyValue 或
otherGeography 為零。
geographyValue 或
otherGeography 與此空間服務實作不相容。
適用於
Intersects(DbGeometry, DbGeometry)
判斷兩個給定 DbGeometry 值是否在空間上相交。
public abstract bool Intersects(System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
abstract member Intersects : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> bool
Public MustOverride Function Intersects (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Boolean
參數
- geometryValue
- DbGeometry
第一個比較幾何數值以取得交點。
- otherGeometry
- DbGeometry
第二個幾何數值比較以求交點。
傳回
若 geometryValue 與其他幾何相交,則為真;否則為假。
例外狀況
geometryValue 或
otherGeometry 為零。
geometryValue 或
otherGeometry 與此空間服務實作不相容。