Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 4e6df7e

Browse files
authored
Merge pull request #2233 from MladjoA/patch-16
Update strelate-geometry-data-type.md
2 parents f62a8f4 + 1a0281c commit 4e6df7e

1 file changed

Lines changed: 40 additions & 40 deletions

File tree

docs/t-sql/spatial-geometry/strelate-geometry-data-type.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,44 @@ ms.author: "rickbyh"
2323
manager: "jhubbard"
2424
---
2525
# STRelate (geometry Data Type)
26-
[!INCLUDE[tsql-appliesto-ss2012-xxxx-xxxx-xxx_md](../../includes/tsql-appliesto-ss2012-xxxx-xxxx-xxx-md.md)]
26+
[!INCLUDE[tsql-appliesto-ss2012-asdb-xxxx-xxx_md](../../includes/tsql-appliesto-ss2012-asdb-xxxx-xxx-md.md)]
2727

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.
29-
30-
## Syntax
31-
32-
```
33-
34-
.STRelate ( other_geometry, intersection_pattern_matrix )
35-
```
36-
37-
## Arguments
38-
*other_geometry*
39-
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.
46-
47-
## Return Types
48-
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] return type: **bit**
49-
50-
CLR return type: **SqlBoolean**
51-
52-
## Examples
53-
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.
29+
30+
## Syntax
31+
32+
```
33+
34+
.STRelate ( other_geometry, intersection_pattern_matrix )
35+
```
36+
37+
## Arguments
38+
*other_geometry*
39+
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.
46+
47+
## Return Types
48+
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] return type: **bit**
49+
50+
CLR return type: **SqlBoolean**
51+
52+
## Examples
53+
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+

0 commit comments

Comments
 (0)