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
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.
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)
0 commit comments