| title | STNumGeometries (geometry Data Type) | ||
|---|---|---|---|
| description | STNumGeometries (geometry Data Type) | ||
| author | MladjoA | ||
| ms.author | mlandzic | ||
| ms.date | 08/03/2017 | ||
| ms.service | sql | ||
| ms.subservice | t-sql | ||
| ms.topic | reference | ||
| ms.custom |
|
||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]
Returns the number of geometries that comprise a geometry instance.
.STNumGeometries ( )
[!INCLUDEssNoVersion] return type: int
CLR return type: SqlInt32
This method returns 1 if the geometry instance is not a MultiPoint, MultiLineString, MultiPolygon, or GeometryCollection instance, and 0 if the geometry instance is empty.
Note
If a GeometryCollection has nested empty elements, STNumGeometries() will not return 0. Though the elements in the GeometryCollection instance are empty, the instance itself is not an empty set.