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

Commit f62a8f4

Browse files
authored
Merge pull request #2234 from MladjoA/patch-15
Update stnumpoints-geometry-data-type.md
2 parents 04ca2db + ff1819a commit f62a8f4

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

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

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,35 @@ ms.author: "rickbyh"
2323
manager: "jhubbard"
2424
---
2525
# STNumPoints (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 the sum of the number of points in each of the figures in a **geometry** instance.
29-
30-
## Syntax
31-
32-
```
33-
34-
.STNumPoints ( )
35-
```
36-
37-
## Return Types
38-
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] return type: **int**
39-
40-
CLR return type: **SqlInt32**
41-
42-
## Remarks
43-
This method counts the points in the description of a **geometry** instance. Duplicate points are counted. If this instance is a **collection** type, this method returns the sum of the points in each of its elements.
44-
45-
## Examples
46-
The following example creates a `LineString` instance and uses `STNumPoints()` to determine how many points were used in the description of the instance.
47-
48-
```
49-
DECLARE @g geometry;
50-
SET @g = geometry::STGeomFromText('LINESTRING(0 0, 2 2, 1 0)', 0);
51-
SELECT @g.STNumPoints();
52-
```
53-
54-
## See Also
55-
[OGC Methods on Geometry Instances](../../t-sql/spatial-geometry/ogc-methods-on-geometry-instances.md)
56-
57-
28+
Returns the sum of the number of points in each of the figures in a **geometry** instance.
29+
30+
## Syntax
31+
32+
```
33+
34+
.STNumPoints ( )
35+
```
36+
37+
## Return Types
38+
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] return type: **int**
39+
40+
CLR return type: **SqlInt32**
41+
42+
## Remarks
43+
This method counts the points in the description of a **geometry** instance. Duplicate points are counted. If this instance is a **collection** type, this method returns the sum of the points in each of its elements.
44+
45+
## Examples
46+
The following example creates a `LineString` instance and uses `STNumPoints()` to determine how many points were used in the description of the instance.
47+
48+
```
49+
DECLARE @g geometry;
50+
SET @g = geometry::STGeomFromText('LINESTRING(0 0, 2 2, 1 0)', 0);
51+
SELECT @g.STNumPoints();
52+
```
53+
54+
## See Also
55+
[OGC Methods on Geometry Instances](../../t-sql/spatial-geometry/ogc-methods-on-geometry-instances.md)
56+
57+

0 commit comments

Comments
 (0)