DbSpatialServices.SpatialEquals Method

 

Determines whether the two given values are spatially equal.

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

NameDescription
System_CAPS_pubmethodSpatialEquals(DbGeography, DbGeography)

Determines whether the two given DbGeography values are spatially equal.

System_CAPS_pubmethodSpatialEquals(DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values are spatially equal.


DbSpatialServices.SpatialEquals Method (DbGeography, DbGeography)

Determines whether the two given DbGeography values are spatially equal.

public abstract bool SpatialEquals(
	DbGeography geographyValue,
	DbGeography otherGeography
)

Parameters

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

The first geography value to compare for equality.

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

The second geography value to compare for equality.

Return Value

Type: System.Boolean

true if geographyValue is spatially equal to otherGeography; otherwise, false.

Exception Condition
ArgumentNullException

geographyValue or otherGeography is null.

ArgumentException

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


DbSpatialServices.SpatialEquals Method (DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values are spatially equal.

public abstract bool SpatialEquals(
	DbGeometry geometryValue,
	DbGeometry otherGeometry
)

Parameters

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

The first geometry value to compare for equality.

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

The second geometry value to compare for equality.

Return Value

Type: System.Boolean

true if geometryValue is spatially equal to otherGeometry; otherwise, false.

Exception Condition
ArgumentNullException

geometryValue or otherGeometry is null.

ArgumentException

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