cdm/src/main/java/ucar/nc2/ft2/coverage/HorizCoordSys.java
public LatLonRect calcLatLonBoundingBox() {
    double minLat = Double.MAX_VALUE;
    double minLon = Double.MAX_VALUE;
    double maxLat = -Double.MAX_VALUE;
    double maxLon = -Double.MAX_VALUE;

    for (LatLonPointNoNormalize boundaryPoint : calcConnectedLatLonBoundaryPoints()) {
      minLat = Math.min(minLat, boundaryPoint.getLatitude());
      minLon = Math.min(minLon, boundaryPoint.getLongitude());
      maxLat = Math.max(maxLat, boundaryPoint.getLatitude());
      maxLon = Math.max(maxLon, boundaryPoint.getLongitude());
    }

    return new LatLonRect(new LatLonPointImpl(minLat, minLon), new LatLonPointImpl(maxLat, maxLon));
  }
public LatLonRect calcLatLonBoundingBox() {
    double minLat = Double.MAX_VALUE;
    double minLon = Double.MAX_VALUE;
    double maxLat = -Double.MAX_VALUE;
    double maxLon = -Double.MAX_VALUE;

    for (LatLonPointNoNormalize boundaryPoint : calcConnectedLatLonBoundaryPoints()) {
      minLat = Math.min(minLat, boundaryPoint.getLatitude());
      minLon = Math.min(minLon, boundaryPoint.getLongitude());
      maxLat = Math.max(maxLat, boundaryPoint.getLatitude());
      maxLon = Math.max(maxLon, boundaryPoint.getLongitude());
    }

    return new LatLonRect(new LatLonPointImpl(minLat, minLon), new LatLonPointImpl(maxLat, maxLon));
  }
public LatLonRect calcLatLonBoundingBox ( ) { double minLat = Double . MAX_VALUE ; double minLon = Double . MAX_VALUE ; double maxLat = - Double . MAX_VALUE ; double maxLon = - Double . MAX_VALUE ; for ( LatLonPointNoNormalize boundaryPoint : calcConnectedLatLonBoundaryPoints ( ) ) { minLat = Math . min ( minLat , boundaryPoint . getLatitude ( ) ) ; minLon = Math . min ( minLon , boundaryPoint . getLongitude ( ) ) ; maxLat = Math . max ( maxLat , boundaryPoint . getLatitude ( ) ) ; maxLon = Math . max ( maxLon , boundaryPoint . getLongitude ( ) ) ; } return new LatLonRect ( new LatLonPointImpl ( minLat , minLon ) , new LatLonPointImpl ( maxLat , maxLon ) ) ; }
Calculates the bounding box of this coordinate reference system, in latitude/longitude. This method properly
handles coverages that straddle the international date line by deriving its bounding box from the
{@link #calcConnectedLatLonBoundaryPoints(int, int) connected latitude/longitude boundary}.
<p>
If this CRS {@link #isProjection is a projection}, its lat/lon boundary is computed by converting each point
in its {@link #calcProjectionBoundaryPoints() projection boundary} to latitude/longitude using the
{@link Projection projection}.

@return  the bounding box of this CRS, in latitude/longitude.
Calculates the bounding box of this coordinate reference system in latitude / longitude . This method properly handles coverages that straddle the international date line by deriving its bounding box from the { @link #calcConnectedLatLonBoundaryPoints ( int int ) connected latitude / longitude boundary } . <p > If this CRS { @link #isProjection is a projection } its lat / lon boundary is computed by converting each point in its { @link #calcProjectionBoundaryPoints () projection boundary } to latitude / longitude using the { @link Projection projection } .