Bewerken

Share via


DbSpatialServices.Relate(DbGeometry, DbGeometry, String) Method

Definition

Determines whether the two given DbGeometry values are spatially related according to the given Dimensionally Extended Nine-Intersection Model (DE-9IM) intersection pattern.

public:
 abstract bool Relate(System::Data::Spatial::DbGeometry ^ geometryValue, System::Data::Spatial::DbGeometry ^ otherGeometry, System::String ^ matrix);
public abstract bool Relate (System.Data.Spatial.DbGeometry geometryValue, System.Data.Spatial.DbGeometry otherGeometry, string matrix);
abstract member Relate : System.Data.Spatial.DbGeometry * System.Data.Spatial.DbGeometry * string -> bool
Public MustOverride Function Relate (geometryValue As DbGeometry, otherGeometry As DbGeometry, matrix As String) As Boolean

Parameters

geometryValue
DbGeometry

The first geometry value.

otherGeometry
DbGeometry

The geometry value that should be compared with the first geometry value for relation.

matrix
String

A string that contains the text representation of the (DE-9IM) intersection pattern that defines the relation.

Returns

true if this geometryValue value relates to otherGeometry according to the specified intersection pattern matrix; otherwise false.

Exceptions

geometryValue otherGeometry matrix

geometryValue otherGeometry

Applies to