STNumGeometries (geometry Data Type)
Returns the number of geometries that comprise a geometry instance.
|Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database (Initial release through current release).|
.STNumGeometries ( )
SQL Server 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.