ST_NPoints
Name
ST_NPoints — Returns the number of points (vertices) in a geometry.
Synopsis
    
     integer
     
      ST_NPoints
     
     (
    
    geometry
    
     g1
    
    
     )
    
    ;
   
Description
Return the number of points in a geometry. Works for all geometries.
Enhanced: 2.0.0 support for Polyhedral surfaces was introduced.
       
      | 
     |
| 
       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 method supports Circular Strings and Curves.
  
   
    
   
   This function supports Polyhedral surfaces.