/** * Get maximum latitude, aka "north" edge * * @return maximum latitude */ public double getLatMax() { return upperRight.getLatitude(); }
/** * Get maximum latitude, aka "north" edge * * @return maximum latitude */ public double getLatMax() { return upperRight.getLatitude(); }
/** * Get the origin latitude. * @return the origin latitude. */ public double getOriginLat() { return origin.getLatitude(); }
/** * Get the origin latitude. * @return the origin latitude. */ public double getOriginLat() { return origin.getLatitude(); }
/** * Get the origin latitude. * @return the origin latitude. */ public double getOriginLat() { return origin.getLatitude(); }
/** * Get the origin latitude * * @return the origin latitude */ public double getOriginLat() { return origin.getLatitude(); }
/** * Get the origin latitude. * * @return the origin latitude. */ public double getOriginLat() { return origin.getLatitude(); }
/** * Get the tangent latitude * * @return the tangent latitude */ public double getTangentLat() { return origin.getLatitude(); }
/** * Get the origin latitude. * @return the origin latitude. */ public double getOriginLat() { return origin.getLatitude(); }
/** * Get minimum latitude, aka "south" edge * * @return minimum latitude */ public double getLatMin() { return lowerLeft.getLatitude(); }
/** * Copy Constructor * * @param r rectangle to copy */ public LatLonRect(LatLonRect r) { this(r.getLowerLeftPoint(), r.getUpperRightPoint().getLatitude() - r.getLowerLeftPoint().getLatitude(), r.getWidth()); }
/** * Get the upper left corner of the bounding box. * * @return upper left corner of the bounding box */ public LatLonPointImpl getUpperLeftPoint() { return new LatLonPointImpl(upperRight.getLatitude(), lowerLeft.getLongitude()); }
/** * Get the upper left corner of the bounding box. * * @return upper left corner of the bounding box */ public LatLonPointImpl getUpperLeftPoint() { return new LatLonPointImpl(upperRight.getLatitude(), lowerLeft.getLongitude()); }
/** * Copy Constructor * * @param r rectangle to copy */ public LatLonRect(LatLonRect r) { this(r.getLowerLeftPoint(), r.getUpperRightPoint().getLatitude() - r.getLowerLeftPoint().getLatitude(), r.getWidth()); }
/** * Get the lower left corner of the bounding box. * * @return lower left corner of the bounding box */ public LatLonPointImpl getLowerRightPoint() { return new LatLonPointImpl(lowerLeft.getLatitude(), upperRight.getLongitude()); }
public static void main(String arg[]) { UtmProjection utm = new UtmProjection(17, true); LatLonPointImpl ll = utm.projToLatLon(577.8000000000001, 2951.8); System.out.printf("%15.12f %15.12f%n", ll.getLatitude(), ll.getLongitude()); assert Misc.closeEnough(ll.getLongitude(), -80.21802662821469, 1.0e-8); assert Misc.closeEnough(ll.getLatitude(), 26.685132668190793, 1.0e-8); }
public static void main(String arg[]) { UtmProjection utm = new UtmProjection(17, true); LatLonPointImpl ll = utm.projToLatLon(577.8000000000001, 2951.8); System.out.printf("%15.12f %15.12f%n",ll.getLatitude(), ll.getLongitude()); assert closeEnough(ll.getLongitude(), -80.21802662821469, 1.0e-8); assert closeEnough(ll.getLatitude(), 26.685132668190793, 1.0e-8); }
public void setBoundingBox(LatLonRect bb) { LatLonPointImpl llpt = bb.getLowerLeftPoint(); LatLonPointImpl urpt = bb.getUpperRightPoint(); double height = urpt.getLatitude() - llpt.getLatitude(); this.eastwest = new Range(llpt.getLongitude(), bb.getWidth(), 0.0, CDM.LON_UNITS); this.northsouth = new Range(llpt.getLatitude(), height, 0.0, CDM.LAT_UNITS); if ((bb.getWidth() > 358) && (height > 178)) setGlobal(true); // LOOK ?? }
@Override protected StationHelper createStationHelper() throws IOException { StationHelper helper = new StationHelper(); String name = String.format("GridPointAt[%s]", latLonPoint.toString(3)); name = StringUtil2.replace(name.trim(), ' ', "_"); helper.addStation(new MyStationFeature(name, name, null, latLonPoint.getLatitude(), latLonPoint.getLongitude(), 0.0, dateUnit, null, -1)); return helper; }
private String makeBB( LatLonRect bb) { return latVar.getFullName()+">="+bb.getLowerLeftPoint().getLatitude()+"&"+ latVar.getFullName()+"<="+bb.getUpperRightPoint().getLatitude()+"&"+ lonVar.getFullName()+">="+bb.getLowerLeftPoint().getLongitude()+"&"+ lonVar.getFullName()+"<="+bb.getUpperRightPoint().getLongitude(); }