public int getNumPoints ( ) { if ( isEmpty ( ) ) { return 0 ; } int total = exteriorRing . getNumPoints ( ) ; if ( interiorRings != null ) { for ( LinearRing interiorRing : interiorRings ) { total += interiorRing . getNumPoints ( ) ; } } return total ; }
Return the sum of all points in the exterior ring + the total number of points in all the interior rings .