protected void setBoundingBox ( ) { LatLonRect largestBB = null ; // look through all the coord systems for ( Object o : csHash . values ( ) ) { RadialCoordSys sys = ( RadialCoordSys ) o ; sys . setOrigin ( origin ) ; LatLonRect bb = sys . getBoundingBox ( ) ; if ( largestBB == null ) largestBB = bb ; else if ( bb != null ) largestBB . extend ( bb ) ; } boundingBox = largestBB ; }
you must set EarthLocation before you call this .