/** * Test * * @param args not used */ public static void main(String[] args) { LambertAzimuthalEqualArea a = new LambertAzimuthalEqualArea(40, -100); ProjectionPointImpl p = a.latLonToProj(-20, 100); System.out.println("proj point = " + p); LatLonPoint ll = a.projToLatLon(p); System.out.println("ll = " + ll); } }
/** * Test * * @param args not used */ public static void main(String[] args) { LambertAzimuthalEqualArea a = new LambertAzimuthalEqualArea(40, -100); ProjectionPoint p = a.latLonToProj(-20, 100); System.out.println("proj point = " + p); LatLonPoint ll = a.projToLatLon(p); System.out.println("ll = " + ll); } }
/** * Test * * @param args not used */ public static void main(String[] args) { LambertAzimuthalEqualArea a = new LambertAzimuthalEqualArea(40, -100); ProjectionPoint p = a.latLonToProj(-20, 100); System.out.println("proj point = " + p); LatLonPoint ll = a.projToLatLon(p); System.out.println("ll = " + ll); } }
/** * Test * * @param args not used */ public static void main(String[] args) { LambertAzimuthalEqualArea a = new LambertAzimuthalEqualArea(40, -100); ProjectionPointImpl p = a.latLonToProj(-20, 100); System.out.println("proj point = " + p); LatLonPoint ll = a.projToLatLon(p); System.out.println("ll = " + ll); } }
@Override protected LambertAzimuthalEqualArea createProjection(final ParameterValueGroup p) { if (p == null) return new LambertAzimuthalEqualArea(); return new LambertAzimuthalEqualArea(value(p, CF.LATITUDE_OF_PROJECTION_ORIGIN), value(p, CF.LONGITUDE_OF_PROJECTION_ORIGIN), value(p, CF.FALSE_EASTING) / KILOMETRE, value(p, CF.FALSE_NORTHING) / KILOMETRE, earthRadius(p) / KILOMETRE); } }
public ProjectionCT makeCoordinateTransform(AttributeContainer ctv, String geoCoordinateUnits) { readStandardParams(ctv, geoCoordinateUnits); ucar.unidata.geoloc.projection.LambertAzimuthalEqualArea proj = new ucar.unidata.geoloc.projection.LambertAzimuthalEqualArea(lat0, lon0, false_easting, false_northing, earth_radius); return new ProjectionCT(ctv.getName(), "FGDC", proj); } }
private CoordinateTransform makeLambertAzimuthalProjection(NetcdfDataset ds) { double lat0 = findAttributeDouble(ds, "YCENT"); double lon0 = findAttributeDouble(ds, "XCENT"); LambertAzimuthalEqualArea p = new LambertAzimuthalEqualArea(lat0, lon0, 0.0, 0.0, earthRadius); return new ProjectionCT("LambertAzimuthal", "FGDC", p); }
private CoordinateTransform makeLambertAzimuthalProjection(NetcdfDataset ds) { double lat0 = findAttributeDouble(ds, "YCENT"); double lon0 = findAttributeDouble(ds, "XCENT"); LambertAzimuthalEqualArea p = new LambertAzimuthalEqualArea(lat0, lon0, 0.0, 0.0, earthRadius); return new ProjectionCT("LambertAzimuthal", "FGDC", p); }
private CoordinateTransform makeLambertAzimuthalProjection(NetcdfDataset ds) { double lat0 = findAttributeDouble(ds, "YCENT"); double lon0 = findAttributeDouble(ds, "XCENT"); LambertAzimuthalEqualArea p = new LambertAzimuthalEqualArea(lat0, lon0, 0.0, 0.0, earthRadius); return new ProjectionCT("LambertAzimuthal", "FGDC", p); }
/** copy constructor - avoid clone !! */ public ProjectionImpl constructCopy( ) { return new LambertAzimuthalEqualArea( getOriginLat(), getOriginLon(), getFalseEasting(), getFalseNorthing(), R); }
@Test public void testLA() { testProjection(new LambertAzimuthalEqualArea()); LambertAzimuthalEqualArea p = new LambertAzimuthalEqualArea(); LambertAzimuthalEqualArea p2 = (LambertAzimuthalEqualArea) p.constructCopy(); assert p.equals(p2); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new LambertAzimuthalEqualArea(getOriginLat(), getOriginLon(), getFalseEasting(), getFalseNorthing(), R); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new LambertAzimuthalEqualArea(getOriginLat(), getOriginLon(), getFalseEasting(), getFalseNorthing(), R); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new LambertAzimuthalEqualArea(getOriginLat(), getOriginLon(), getFalseEasting(), getFalseNorthing(), R); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) { double lon0 = readAttributeDouble(ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN); double lat0 = readAttributeDouble(ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN); double false_easting = readAttributeDouble(ctv, CF.FALSE_EASTING, 0.0); double false_northing = readAttributeDouble(ctv, CF.FALSE_NORTHING, 0.0); double earth_radius = getEarthRadiusInKm(ctv); if ((false_easting != 0.0) || (false_northing != 0.0)) { double scalef = getFalseEastingScaleFactor(ds, ctv); false_easting *= scalef; false_northing *= scalef; } ucar.unidata.geoloc.projection.LambertAzimuthalEqualArea proj = new ucar.unidata.geoloc.projection.LambertAzimuthalEqualArea(lat0, lon0, false_easting, false_northing, earth_radius); return new ProjectionCT(ctv.getShortName(), "FGDC", proj); } }
public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) { double lon0 = readAttributeDouble(ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN); double lat0 = readAttributeDouble(ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN); double false_easting = readAttributeDouble(ctv, CF.FALSE_EASTING, 0.0); double false_northing = readAttributeDouble(ctv, CF.FALSE_NORTHING, 0.0); double earth_radius = getEarthRadiusInKm(ctv); if ((false_easting != 0.0) || (false_northing != 0.0)) { double scalef = getFalseEastingScaleFactor(ds, ctv); false_easting *= scalef; false_northing *= scalef; } ucar.unidata.geoloc.projection.LambertAzimuthalEqualArea proj = new ucar.unidata.geoloc.projection.LambertAzimuthalEqualArea(lat0, lon0, false_easting, false_northing, earth_radius); return new ProjectionCT(ctv.getShortName(), "FGDC", proj); } }
break; case LEQGRD3: p = new LambertAzimuthalEqualArea( ycent, xcent, 0.0, 0.0, 6370000.0 ); break; default: