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

Commit 04ca2db

Browse files
authored
Merge pull request #2237 from MladjoA/patch-12
Update stcontains-geometry-data-type.md
2 parents 7757ef1 + 408cb86 commit 04ca2db

1 file changed

Lines changed: 42 additions & 42 deletions

File tree

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

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -23,46 +23,46 @@ ms.author: "rickbyh"
2323
manager: "jhubbard"
2424
---
2525
# STContains (geometry Data Type)
26-
[!INCLUDE[tsql-appliesto-ss2012-xxxx-asdw-xxx_md](../../includes/tsql-appliesto-ss2012-xxxx-asdw-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 completely contains another **geometry** instance. Returns 0 if it does not.
29-
30-
||
31-
|-|
32-
|**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] through [current version](http://msdn.microsoft.com/library/bb500435.aspx)), [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].|
33-
34-
## Syntax
35-
36-
```
37-
38-
.STContains ( other_geometry )
39-
```
40-
41-
## Arguments
42-
*other_geometry*
43-
Is another **geometry** instance to compare against the instance on which `STContains()` is invoked.
44-
45-
## Return Types
46-
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] return type: **bit**
47-
48-
CLR return type: **SqlBoolean**
49-
50-
## Remarks
51-
`STContains()` always returns null if the spatial reference IDs (SRIDs) of the **geometry** instances do not match.
52-
53-
## Examples
54-
The following example uses `STContains()` to test two `geometry` instances to see if the first instance contains the second instance.
55-
56-
```
57-
DECLARE @g geometry;
58-
DECLARE @h geometry;
59-
SET @g = geometry::STGeomFromText('POLYGON((0 0, 2 0, 2 2, 0 2, 0 0))', 0);
60-
SET @h = geometry::STGeomFromText('POINT(1 1)', 0);
61-
SELECT @g.STContains(@h);
62-
```
63-
64-
## See Also
65-
[Spatial Indexes Overview](../../relational-databases/spatial/spatial-indexes-overview.md)
66-
[OGC Methods on Geometry Instances](../../t-sql/spatial-geometry/ogc-methods-on-geometry-instances.md)
67-
68-
28+
Returns 1 if a **geometry** instance completely contains another **geometry** instance. Returns 0 if it does not.
29+
30+
||
31+
|-|
32+
|**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] through [current version](http://msdn.microsoft.com/library/bb500435.aspx)), [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].|
33+
34+
## Syntax
35+
36+
```
37+
38+
.STContains ( other_geometry )
39+
```
40+
41+
## Arguments
42+
*other_geometry*
43+
Is another **geometry** instance to compare against the instance on which `STContains()` is invoked.
44+
45+
## Return Types
46+
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] return type: **bit**
47+
48+
CLR return type: **SqlBoolean**
49+
50+
## Remarks
51+
`STContains()` always returns null if the spatial reference IDs (SRIDs) of the **geometry** instances do not match.
52+
53+
## Examples
54+
The following example uses `STContains()` to test two `geometry` instances to see if the first instance contains the second instance.
55+
56+
```
57+
DECLARE @g geometry;
58+
DECLARE @h geometry;
59+
SET @g = geometry::STGeomFromText('POLYGON((0 0, 2 0, 2 2, 0 2, 0 0))', 0);
60+
SET @h = geometry::STGeomFromText('POINT(1 1)', 0);
61+
SELECT @g.STContains(@h);
62+
```
63+
64+
## See Also
65+
[Spatial Indexes Overview](../../relational-databases/spatial/spatial-indexes-overview.md)
66+
[OGC Methods on Geometry Instances](../../t-sql/spatial-geometry/ogc-methods-on-geometry-instances.md)
67+
68+

0 commit comments

Comments
 (0)