public List < List < GeoPoint > > getHoles ( ) { List < List < GeoPoint >> result = new ArrayList < List < GeoPoint > > ( mHoles . size ( ) ) ; for ( LinearRing hole : mHoles ) { result . add ( hole . getPoints ( ) ) ; //TODO: completely wrong: // hole.getPoints() doesn't return a copy but a direct handler to the internal list. // - if geodesic, this is not the same points as the original list. } return result ; }
returns a copy of the holes this polygon contains