/** * Test * * @param args not used */ public static void main(String[] args) { FlatEarth a = new FlatEarth(90, -100, 0.0); ProjectionPoint p = a.latLonToProj(89, -101); 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) { FlatEarth a = new FlatEarth(90, -100, 0.0); ProjectionPoint p = a.latLonToProj(89, -101); 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) { FlatEarth a = new FlatEarth(90, -100, 0.0); ProjectionPointImpl p = a.latLonToProj(89, -101); 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) { FlatEarth a = new FlatEarth(90, -100, 0.0); ProjectionPointImpl p = a.latLonToProj(89, -101); System.out.println("proj point = " + p); LatLonPoint ll = a.projToLatLon(p); System.out.println("ll = " + ll); }
/** copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new FlatEarth( getOriginLat(), getOriginLon(), getRotationAngle()); }
/** * origin */ //private LatLonPointImpl origin; // why are we keeping this? @Override public ProjectionImpl constructCopy() { ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
/** * origin */ //private LatLonPointImpl origin; // why are we keeping this? @Override public ProjectionImpl constructCopy() { ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
/** * origin */ //private LatLonPointImpl origin; // why are we keeping this? @Override public ProjectionImpl constructCopy() { ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle()); 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 rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0); double earth_radius = getEarthRadiusInKm(ctv); ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, 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 rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0); double earth_radius = getEarthRadiusInKm(ctv); ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, earth_radius); return new ProjectionCT(ctv.getShortName(), "FGDC", proj); } }
public ProjectionCT makeCoordinateTransform(AttributeContainer ctv, String geoCoordinateUnits) { double lon0 = readAttributeDouble( ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN); double lat0 = readAttributeDouble( ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN); double rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0); double earth_radius = getEarthRadiusInKm(ctv); ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, earth_radius); return new ProjectionCT(ctv.getName(), "FGDC", proj); } }
ncfile.addVariable(null, yaxis); ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
ncfile.addVariable(null, yaxis); ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
ncfile.addVariable(null, yaxis); ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
ncfile.addVariable(null, yaxis); ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
ncfile.addVariable(null, yaxis); ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
ncfile.addVariable(null, yaxis); ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
switch (projType) { case 0: // for diagnostic runs with no georeferencing proj = new FlatEarth(); projCT = new ProjectionCT("flat_earth", "FGDC", proj);