.STRelate Method (SqlGeometry, String)
Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
No code example is currently available or this language may not be supported.
SqlGeometry instance to compare against the instance on which STRelate is invoked. intersectionPatternMatrix
string that specifies the intersection model. This string must contain acceptable values for the DE-9IM pattern matrix device between the two SqlGeometry instances. Return Value
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 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. Return to top