ST_NPoints — Return the number of points (vertexes) in a geometry.
integer ST_NPoints(geometry  g1);
Return the number of points in a geometry. Works for all geometries.
| ![[Note]](images/note.png) | |
| Prior to 1.3.4, this function crashes if used with geometries that contain CURVES. This is fixed in 1.3.4+ | 
 This function supports 3d and will not drop the z-index.
 This function supports 3d and will not drop the z-index.
 This method supports Circular Strings and Curves
 This method supports Circular Strings and Curves