Метод SqlGeometry.STRelate

Determines whether the calling SqlGeometry is related to the specified SqlGeometry.

Пространство имен:  Microsoft.SqlServer.Types
Сборка:  Microsoft.SqlServer.Types (в Microsoft.SqlServer.Types.dll)

Синтаксис

'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STRelate ( _
    other As SqlGeometry, _
    intersectionPatternMatrix As String _
) As SqlBoolean
'Применение
Dim instance As SqlGeometry 
Dim other As SqlGeometry 
Dim intersectionPatternMatrix As String 
Dim returnValue As SqlBoolean 

returnValue = instance.STRelate(other, _
    intersectionPatternMatrix)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STRelate(
    SqlGeometry other,
    string intersectionPatternMatrix
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlBoolean STRelate(
    SqlGeometry^ other, 
    String^ intersectionPatternMatrix
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STRelate : 
        other:SqlGeometry * 
        intersectionPatternMatrix:string -> SqlBoolean
public function STRelate(
    other : SqlGeometry, 
    intersectionPatternMatrix : String
) : SqlBoolean

Параметры

  • intersectionPatternMatrix
    Тип: System.String
    A string that specifies the intersection model. This string must contain acceptable values for the DE-9IM pattern matrix device between the two SqlGeometry instances.

Возвращаемое значение

Тип: System.Data.SqlTypes.SqlBoolean
Returns true if a SqlGeometry instance is related to another SqlGeometry instance, where the relationship is defined by a Dimensionally Extended 9 Intersection Model (DE-9IM) pattern matrix value; otherwise, returns false.

Замечания

This method always returns nullпустая ссылка (Nothing в Visual Basic) if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match. This method will throw an ArgumentException if the matrix is not well-formed.

См. также

Справочник

SqlGeometry Класс

Пространство имен Microsoft.SqlServer.Types