Package ucar.unidata.geoloc

Examples of ucar.unidata.geoloc.LatLonRect


      maxLon = Math.max( maxLon, lon);

      recno++;
      if ((cancel != null) && cancel.isCancel()) return null;
    }
    boundingBox = new LatLonRect( new LatLonPointImpl( minLat, minLon), new LatLonPointImpl( maxLat, maxLon));

    return records;
  }
View Full Code Here


    if (isValid) System.out.println("\nBack to XML=\n" + catFactory.writeXML( cat));
  } */
  static public void main(String[] args) throws IOException {
    GeospatialCoverage gc = new GeospatialCoverage();
    LatLonRect bb = new LatLonRect();
    gc.setBoundingBox(bb);
    gc.toXML(System.out);
  }
View Full Code Here

    ucar.unidata.geoloc.EarthLocation eloc = rds.getCommonOrigin();
    assert eloc != null;
    LatLonPoint llp = new LatLonPointImpl( eloc.getLatitude(), eloc.getLongitude());

    LatLonRect bb = rds.getBoundingBox();
    assert bb.contains(llp);

    List rvars = rds.getDataVariables();
    assert null != rvars;
    assert 0 < rvars.size();
    for (int i = 0; i < rvars.size(); i++) {
View Full Code Here

      updown.units = units;
      hashCode = 0;
    }

    public LatLonRect getBoundingBox() {
      return isGlobal ? new LatLonRect() :
          new LatLonRect(new LatLonPointImpl(getLatStart(), getLonStart()), getLatExtent(), getLonExtent());
    }
View Full Code Here

    ProfileUtils.addIfNotNull(met, "FullName", dataset.getFullName());
    GeospatialCoverage geoCoverage = dataset.getGeospatialCoverage();
   
    if (geoCoverage != null) {
     
      LatLonRect bbox = geoCoverage.getBoundingBox();
      if (bbox != null) {
        ProfileUtils.addIfNotNull(met, "SouthwestBC", bbox.getLowerLeftPoint()
            .toString());
        ProfileUtils.addIfNotNull(met, "NorthwestBC", bbox.getUpperLeftPoint()
            .toString());
        ProfileUtils.addIfNotNull(met, "NortheastBC", bbox.getUpperRightPoint()
            .toString());
        ProfileUtils.addIfNotNull(met, "SoutheastBC", bbox.getLowerRightPoint()
            .toString());
      }
     
      // try north south, east west
      if (geoCoverage.getNorthSouthRange() != null) {         
View Full Code Here

    }

    this.addIfNotNull(met, "FullName", dataset.getFullName());
    GeospatialCoverage geoCoverage = dataset.getGeospatialCoverage();
    if (geoCoverage != null) {
      LatLonRect bbox = geoCoverage.getBoundingBox();
      if (bbox != null) {
        this.addIfNotNull(met, "SouthwestBC", bbox.getLowerLeftPoint()
            .toString());
        this.addIfNotNull(met, "NorthwestBC", bbox.getUpperLeftPoint()
            .toString());
        this.addIfNotNull(met, "NortheastBC", bbox.getUpperRightPoint()
            .toString());
        this.addIfNotNull(met, "SoutheastBC", bbox.getLowerRightPoint()
            .toString());
      } else {
        // try north south, east west
        if (geoCoverage.getNorthSouthRange() != null) {
          Range nsRange = geoCoverage.getNorthSouthRange();
View Full Code Here

TOP

Related Classes of ucar.unidata.geoloc.LatLonRect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.