SqlSpatialServices.Intersects 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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 相交其他Geometry,则为 true;否则为 false。