You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns 1 if a **geometry** instance is related to another **geometry** instance, where the relationship is defined by a Dimensionally Extended 9 Intersection Model (DE-9IM) pattern matrix value; otherwise, returns 0.
Is another **geometry** instance to compare against the instance on which `STRelate()` is invoked.
40
-
41
-
*intersection_pattern_matrix*
42
-
Is a string of type **nchar(9)** encoding acceptable values for the DE-9IM pattern matrix device between the two **geometry** instances.
43
-
44
-
## Remarks
45
-
This method always returns null if the spatial reference IDs (SRIDs) of the **geometry** instances do not match. This method will throw an **ArgumentException** if the matrix is not well-formed.
The following example uses `STRelate()` to test two **geometry** instances for spatial disjoint using an explicit DE-9IM pattern.
54
-
55
-
```
56
-
DECLARE @g geometry;
57
-
DECLARE @h geometry;
58
-
SET @g = geometry::STGeomFromText('LINESTRING(0 2, 2 0, 4 2)', 0);
59
-
SET @h = geometry::STGeomFromText('POINT(5 5)', 0);
60
-
SELECT @g.STRelate(@h, 'FF*FF****');
61
-
```
62
-
63
-
## See Also
64
-
[OGC Methods on Geometry Instances](../../t-sql/spatial-geometry/ogc-methods-on-geometry-instances.md)
65
-
66
-
28
+
Returns 1 if a **geometry** instance is related to another **geometry** instance, where the relationship is defined by a Dimensionally Extended 9 Intersection Model (DE-9IM) pattern matrix value; otherwise, returns 0.
Is another **geometry** instance to compare against the instance on which `STRelate()` is invoked.
40
+
41
+
*intersection_pattern_matrix*
42
+
Is a string of type **nchar(9)** encoding acceptable values for the DE-9IM pattern matrix device between the two **geometry** instances.
43
+
44
+
## Remarks
45
+
This method always returns null if the spatial reference IDs (SRIDs) of the **geometry** instances do not match. This method will throw an **ArgumentException** if the matrix is not well-formed.
0 commit comments