Share via


DbSpatialServices.SpatialEquals Method

Definition

Overloads

SpatialEquals(DbGeography, DbGeography)

Determines whether the two given DbGeography values are spatially equal.

SpatialEquals(DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values are spatially equal.

SpatialEquals(DbGeography, DbGeography)

Determines whether the two given DbGeography values are spatially equal.

public abstract bool SpatialEquals (System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
abstract member SpatialEquals : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> bool
Public MustOverride Function SpatialEquals (geographyValue As DbGeography, otherGeography As DbGeography) As Boolean

Parameters

geographyValue
DbGeography

The first geography value to compare for equality.

otherGeography
DbGeography

The second geography value to compare for equality.

Returns

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

Exceptions

geographyValue or otherGeography is null.

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

Applies to

SpatialEquals(DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values are spatially equal.

public abstract bool SpatialEquals (System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
abstract member SpatialEquals : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> bool
Public MustOverride Function SpatialEquals (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Boolean

Parameters

geometryValue
DbGeometry

The first geometry value to compare for equality.

otherGeometry
DbGeometry

The second geometry value to compare for equality.

Returns

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

Exceptions

geometryValue or otherGeometry is null.

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

Applies to