Redigera

Dela via


DbSpatialServices.SpatialEquals Method

Definition

Determines whether the two given values are spatially equal.

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::Spatial::DbGeography ^ geographyValue, System::Data::Spatial::DbGeography ^ otherGeography);
public abstract bool SpatialEquals (System.Data.Spatial.DbGeography geographyValue, System.Data.Spatial.DbGeography otherGeography);
abstract member SpatialEquals : System.Data.Spatial.DbGeography * System.Data.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 otherGeography

geographyValue otherGeography

Applies to

SpatialEquals(DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values are spatially equal.

public:
 abstract bool SpatialEquals(System::Data::Spatial::DbGeometry ^ geometryValue, System::Data::Spatial::DbGeometry ^ otherGeometry);
public abstract bool SpatialEquals (System.Data.Spatial.DbGeometry geometryValue, System.Data.Spatial.DbGeometry otherGeometry);
abstract member SpatialEquals : System.Data.Spatial.DbGeometry * System.Data.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 otherGeometry

geometryValue otherGeometry

Applies to