Share via


DbSpatialServices.Intersects 方法

定义

确定两个给定的值是否在空间上相交。

重载

Intersects(DbGeography, DbGeography)

确定两个给定的 DbGeography 值是否在空间上相交。

Intersects(DbGeometry, DbGeometry)

确定两个给定的 DbGeometry 值是否在空间上相交。

Intersects(DbGeography, DbGeography)

确定两个给定的 DbGeography 值是否在空间上相交。

public:
 abstract bool Intersects(System::Data::Spatial::DbGeography ^ geographyValue, System::Data::Spatial::DbGeography ^ otherGeography);
public abstract bool Intersects (System.Data.Spatial.DbGeography geographyValue, System.Data.Spatial.DbGeography otherGeography);
abstract member Intersects : System.Data.Spatial.DbGeography * System.Data.Spatial.DbGeography -> bool
Public MustOverride Function Intersects (geographyValue As DbGeography, otherGeography As DbGeography) As Boolean

参数

geographyValue
DbGeography

用来比较相交性的第一个地理值。

otherGeography
DbGeography

用来比较相交性的第二个地理值。

返回

如果 geographyValueotherGeography 相交,则为 true;否则为 false

例外

geographyValue otherGeography

geographyValue otherGeography

适用于

Intersects(DbGeometry, DbGeometry)

确定两个给定的 DbGeometry 值是否在空间上相交。

public:
 abstract bool Intersects(System::Data::Spatial::DbGeometry ^ geometryValue, System::Data::Spatial::DbGeometry ^ otherGeometry);
public abstract bool Intersects (System.Data.Spatial.DbGeometry geometryValue, System.Data.Spatial.DbGeometry otherGeometry);
abstract member Intersects : System.Data.Spatial.DbGeometry * System.Data.Spatial.DbGeometry -> bool
Public MustOverride Function Intersects (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Boolean

参数

geometryValue
DbGeometry

用来比较相交性的第一个几何图形值。

otherGeometry
DbGeometry

用来比较相交性的第二个几何图形值。

返回

如果 geometryValueotherGeometry 相交,则为 true;否则为 false

例外

geometryValue otherGeometry

geometryValue otherGeometry

适用于