DbSpatialServices.Intersects Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Intersects(DbGeography, DbGeography) |
Determines whether the two given DbGeography values spatially intersect. |
Intersects(DbGeometry, DbGeometry) |
Determines whether the two given DbGeometry values spatially intersect. |
Intersects(DbGeography, DbGeography)
Determines whether the two given DbGeography values spatially intersect.
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
Parameters
- geographyValue
- DbGeography
The first geography value to compare for intersection.
- otherGeography
- DbGeography
The second geography value to compare for intersection.
Returns
true if geographyValue intersects otherGeography; otherwise false.
Exceptions
geographyValue
or
otherGeography
is null.
geographyValue
or
otherGeography
is not compatible with this spatial services implementation.
Applies to
Intersects(DbGeometry, DbGeometry)
Determines whether the two given DbGeometry values spatially intersect.
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
Parameters
- geometryValue
- DbGeometry
The first geometry value to compare for intersection.
- otherGeometry
- DbGeometry
The second geometry value to compare for intersection.
Returns
true if geometryValue intersects otherGeometry; otherwise false.
Exceptions
geometryValue
or
otherGeometry
is null.
geometryValue
or
otherGeometry
is not compatible with this spatial services implementation.
Applies to
Entity Framework