public static void main(String[] args) { LambertConformalConicEllipse a = new LambertConformalConicEllipse(23.0, -96.0, 29.5, 45.5, 0, 0, new Earth(6378137.0, 0.0, 298.257222101)); System.out.printf("proj = %s %s%n%n", a.getName(), a.paramsToString()); //fromProj(a, 1730.692593817677, 1970.917991173046); //toProj(a, 39.089117, -75.649278); fromProj(a, 5747, 13470); }
public static void main(String[] args) { LambertConformalConicEllipse a = new LambertConformalConicEllipse(23.0, -96.0, 29.5, 45.5, 0, 0, new Earth(6378137.0, 0.0, 298.257222101)); System.out.printf("proj = %s %s%n%n", a.getName(), a.paramsToString()); //fromProj(a, 1730.692593817677, 1970.917991173046); //toProj(a, 39.089117, -75.649278); fromProj(a, 5747, 13470); }
public static void main(String[] args) { LambertConformalConicEllipse a = new LambertConformalConicEllipse(23.0, -96.0, 29.5, 45.5, 0, 0, new Earth(6378137.0, 0.0, 298.257222101)); System.out.printf("proj = %s %s%n%n", a.getName(), a.paramsToString()); //fromProj(a, 1730.692593817677, 1970.917991173046); //toProj(a, 39.089117, -75.649278); fromProj(a, 5747, 13470); }
public void utestLCCE() { testProjectionLonMax(new LambertConformalConicEllipse(), 360, 80); LambertConformalConicEllipse p = new LambertConformalConicEllipse(); LambertConformalConicEllipse p2 = (LambertConformalConicEllipse) p.constructCopy(); assert p.equals(p2); }
public static void main(String[] args) { LambertConformalConicEllipse a = new LambertConformalConicEllipse(23.0, -96.0, 29.5, 45.5, 0, 0, new Earth(6378137.0, 0.0, 298.257222101)); System.out.printf("proj = %s %s%n%n", a.getName(), a.paramsToString()); //fromProj(a, 1730.692593817677, 1970.917991173046); //toProj(a, 39.089117, -75.649278); fromProj(a, 5747, 13470); }
/** * copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new LambertConformalConicEllipse(getOriginLat(), getOriginLon(), getParallelOne(), getParallelTwo(), getFalseEasting(), getFalseNorthing(), getEarth()); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new LambertConformalConicEllipse(getOriginLat(), getOriginLon(), getParallelOne(), getParallelTwo(), getFalseEasting(), getFalseNorthing(), getEarth()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new LambertConformalConicEllipse(getOriginLat(), getOriginLon(), getParallelOne(), getParallelTwo(), getFalseEasting(), getFalseNorthing(), getEarth()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new LambertConformalConicEllipse(getOriginLat(), getOriginLon(), getParallelOne(), getParallelTwo(), getFalseEasting(), getFalseNorthing(), getEarth()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
proj = new ucar.unidata.geoloc.projection.proj4.LambertConformalConicEllipse(lat0, lon0, pars[0], pars[1], false_easting, false_northing, earth);
proj = new ucar.unidata.geoloc.projection.proj4.LambertConformalConicEllipse(lat0, lon0, pars[0], pars[1], false_easting, false_northing, earth);
proj = new ucar.unidata.geoloc.projection.proj4.LambertConformalConicEllipse(lat0, lon0, pars[0], pars[1], false_easting, false_northing, earth);
public GdsHorizCoordSys makeHorizCoordSys() { ProjectionImpl proj = null; Earth earth = getEarth(); if (earth.isSpherical()) { proj = new ucar.unidata.geoloc.projection.LambertConformal(latin1, lov, latin1, latin2, 0.0, 0.0, earth.getEquatorRadius() * .001); } else { proj = new ucar.unidata.geoloc.projection.proj4.LambertConformalConicEllipse(latin1, lov, latin1, latin2, 0.0, 0.0, earth); } LatLonPointImpl startLL = new LatLonPointImpl(la1, lo1); ProjectionPointImpl start = (ProjectionPointImpl) proj.latLonToProj(startLL); return new GdsHorizCoordSys(getNameShort(), template, 0, scanMode, proj, start.getX(), getDx(), start.getY(), getDy(), getNx(), getNy(), null); }
public GdsHorizCoordSys makeHorizCoordSys() { ProjectionImpl proj; Earth earth = getEarth(); if (earth.isSpherical()) { proj = new ucar.unidata.geoloc.projection.LambertConformal(latin1, lov, latin1, latin2, 0.0, 0.0, earth.getEquatorRadius() * .001); } else { proj = new ucar.unidata.geoloc.projection.proj4.LambertConformalConicEllipse( latin1, lov, latin1, latin2, 0.0, 0.0, earth); } LatLonPointImpl startLL = new LatLonPointImpl(la1, lo1); ProjectionPointImpl start = (ProjectionPointImpl) proj.latLonToProj(startLL); return new GdsHorizCoordSys(getNameShort(), template, getOctet4(7), scanMode, proj, start.getX(), dX, start.getY(), dY, getNxRaw(), getNyRaw(), getNptsInLine()); }