DbSpatialServices.Overlaps Method (DbGeometry, DbGeometry)

 

Determines whether the two given DbGeometry values spatially overlap.

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

public abstract bool Overlaps(
	DbGeometry geometryValue,
	DbGeometry otherGeometry
)

Parameters

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

The first geometry value.

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

The second geometry value.

Return Value

Type: System.Boolean

true if geometryValue overlaps otherGeometry; otherwise, false.

Exception Condition
ArgumentNullException

geometryValue or otherGeometry is null.

ArgumentException

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