DbSpatialServices.Intersects Method

 

Determines whether the two given values spatially intersect.

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodIntersects(DbGeography, DbGeography)

Determines whether the two given DbGeography values spatially intersect.

System_CAPS_pubmethodIntersects(DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values spatially intersect.


DbSpatialServices.Intersects Method (DbGeography, DbGeography)

Determines whether the two given DbGeography values spatially intersect.

public abstract bool Intersects(
	DbGeography geographyValue,
	DbGeography otherGeography
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The first geography value to compare for intersection.

otherGeography
Type: System.Data.Entity.Spatial.DbGeography

The second geography value to compare for intersection.

Return Value

Type: System.Boolean

true if geographyValue intersects otherGeography; otherwise, false.

Exception Condition
ArgumentNullException

geographyValue or otherGeography is null.

ArgumentException

geographyValue or otherGeography is not compatible with this spatial services implementation.


DbSpatialServices.Intersects Method (DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values spatially intersect.

public abstract bool Intersects(
	DbGeometry geometryValue,
	DbGeometry otherGeometry
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

The first geometry value to compare for intersection.

otherGeometry
Type: System.Data.Entity.Spatial.DbGeometry

The second geometry value to compare for intersection.

Return Value

Type: System.Boolean

true if geometryValue intersects otherGeometry; otherwise, false.

Exception Condition
ArgumentNullException

geometryValue or otherGeometry is null.

ArgumentException

geometryValue or otherGeometry is not compatible with this spatial services implementation.