共用方式為


SqlSpatialServices.Intersects 方法

定義

多載

Intersects(DbGeography, DbGeography)

判斷兩個給定的 DbGeography 值是否為空間相交的值。

Intersects(DbGeometry, DbGeometry)

判斷兩個給定的 DbGeometry 值是否為空間相交的值。

Intersects(DbGeography, DbGeography)

判斷兩個給定的 DbGeography 值是否為空間相交的值。

public override bool Intersects(System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
override this.Intersects : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> bool
Public Overrides Function Intersects (geographyValue As DbGeography, otherGeography As DbGeography) As Boolean

參數

geographyValue
DbGeography

要比較交集的第一個地理位置值。

otherGeography
DbGeography

要比較交集的第二個地理位置值。

傳回

如果 geographyValue 與 otherGeography 交集,則為 true;否則為 false。

適用於

Intersects(DbGeometry, DbGeometry)

判斷兩個給定的 DbGeometry 值是否為空間相交的值。

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

參數

geometryValue
DbGeometry

要比較交集的第一個幾何值。

otherGeometry
DbGeometry

要比較交集的第二個幾何值。

傳回

如果 geometryValue 與 otherGeometry 交集,則為 true;否則為 false。

適用於