public double getCentralMeridian() { return convert2xy.getCentralMeridian(); }
/** * Constructor. * * @param a the semi-major axis (meters) for the ellipsoid * @param f the inverse flattening for the ellipsoid * @param zone the UTM zone number (1..60) * @param hemisphere_north true if the UTM coordinate is in the northern hemisphere */ public Gdc_To_Utm_Converter(double a, double f, int zone, boolean hemisphere_north) { init(a, f, zone, hemisphere_north); }
public float[][] latLonToProj(float[][] from, float[][] to, int latIndex, int lonIndex) { if ((from == null) || (from.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (from)"); } if ((to == null) || (to.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (to)"); } if (from[0].length != to[0].length) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:from array not same length as to array"); } return convert2xy.latLonToProj(from, to, latIndex, lonIndex); }
/** * Construct a Universal Transverse Mercator Projection. * * @param a the semi-major axis (meters) for the ellipsoid * @param f the inverse flattening for the ellipsoid * @param zone the UTM zone number (1-60) * @param isNorth true if the UTM coordinate is in the northern hemisphere */ public UtmProjection(double a, double f, int zone, boolean isNorth) { super("UtmProjection", false); save = new SaveParams(a, f); convert2latlon = new Utm_To_Gdc_Converter(a, f, zone, isNorth); convert2xy = new Gdc_To_Utm_Converter(a, f, zone, isNorth); addParameter(CF.GRID_MAPPING_NAME, GRID_MAPPING_NAME); addParameter(CF.SEMI_MAJOR_AXIS, a); addParameter(CF.INVERSE_FLATTENING, f); addParameter(UTM_ZONE1, zone); }
/** * Construct a Universal Transverse Mercator Projection. * * @param a the semi-major axis (meters) for the ellipsoid * @param f the inverse flattening for the ellipsoid * @param zone the UTM zone number (1-60) * @param isNorth true if the UTM coordinate is in the northern hemisphere */ public UtmProjection(double a, double f, int zone, boolean isNorth) { super("UtmProjection", false); saveParams = new SaveParams(a, f, zone, isNorth); convert2latlon = new Utm_To_Gdc_Converter(a, f, zone, isNorth); convert2xy = new Gdc_To_Utm_Converter(a, f, zone, isNorth); addParameter(CF.GRID_MAPPING_NAME, GRID_MAPPING_NAME); addParameter(CF.SEMI_MAJOR_AXIS, a); addParameter(CF.INVERSE_FLATTENING, f); addParameter(UTM_ZONE1, zone); }
public double[][] latLonToProj(double[][] from, double[][] to, int latIndex, int lonIndex) { if ((from == null) || (from.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (from)"); } if ((to == null) || (to.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (to)"); } if (from[0].length != to[0].length) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:from array not same length as to array"); } return convert2xy.latLonToProj(from, to, latIndex, lonIndex); }
/** * Construct a Universal Transverse Mercator Projection. * * @param a the semi-major axis (meters) for the ellipsoid * @param f the inverse flattening for the ellipsoid * @param zone the UTM zone number (1-60) * @param isNorth true if the UTM coordinate is in the northern hemisphere */ public UtmProjection(double a, double f, int zone, boolean isNorth) { super("UtmProjection", false); saveParams = new SaveParams(a, f, zone, isNorth); convert2latlon = new Utm_To_Gdc_Converter(a, f, zone, isNorth); convert2xy = new Gdc_To_Utm_Converter(a, f, zone, isNorth); addParameter(CF.GRID_MAPPING_NAME, GRID_MAPPING_NAME); addParameter(CF.SEMI_MAJOR_AXIS, a); addParameter(CF.INVERSE_FLATTENING, f); addParameter(UTM_ZONE1, zone); }
/** * Constructor. * * @param a the semi-major axis (meters) for the ellipsoid * @param f the inverse flattening for the ellipsoid * @param zone the UTM zone number (1..60) * @param hemisphere_north true if the UTM coordinate is in the northern hemisphere */ public Gdc_To_Utm_Converter(double a, double f, int zone, boolean hemisphere_north) { init(a, f, zone, hemisphere_north); }
public double getCentralMeridian() { return convert2xy.getCentralMeridian(); }
public float[][] latLonToProj(float[][] from, float[][] to, int latIndex, int lonIndex) { if ((from == null) || (from.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (from)"); } if ((to == null) || (to.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (to)"); } if (from[0].length != to[0].length) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:from array not same length as to array"); } return convert2xy.latLonToProj(from, to, latIndex, lonIndex); }
/** * Constructor with default WGS 84 ellipsoid. * * @param zone the UTM zone number (1-60) * @param isNorth true if the UTM coordinate is in the northern hemisphere */ public UtmProjection(int zone, boolean isNorth) { super("UtmProjection", false); convert2latlon = new Utm_To_Gdc_Converter(zone, isNorth); convert2xy = new Gdc_To_Utm_Converter(zone, isNorth); addParameter(CF.GRID_MAPPING_NAME, GRID_MAPPING_NAME); addParameter(CF.SEMI_MAJOR_AXIS, convert2latlon.getA()); addParameter(CF.INVERSE_FLATTENING, convert2latlon.getF()); addParameter(UTM_ZONE1, zone); }
/** * Constructor. * * @param a the semi-major axis (meters) for the ellipsoid * @param f the inverse flattening for the ellipsoid * @param zone the UTM zone number (1..60) * @param hemisphere_north true if the UTM coordinate is in the northern hemisphere */ public Gdc_To_Utm_Converter(double a, double f, int zone, boolean hemisphere_north) { init(a, f, zone, hemisphere_north); }
public double getCentralMeridian() { return convert2xy.getCentralMeridian(); }
public double[][] latLonToProj(double[][] from, double[][] to, int latIndex, int lonIndex) { if ((from == null) || (from.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (from)"); } if ((to == null) || (to.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (to)"); } if (from[0].length != to[0].length) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:from array not same length as to array"); } return convert2xy.latLonToProj(from, to, latIndex, lonIndex); }
/** * Set the zone number = [1,60] * * @param newZone _more_ */ public void setZone(int newZone) { convert2latlon = new Utm_To_Gdc_Converter(convert2latlon.getA(), convert2latlon.getF(), newZone, convert2latlon.isNorth()); convert2xy = new Gdc_To_Utm_Converter(convert2latlon.getA(), convert2latlon.getF(), convert2latlon.getZone(), convert2latlon.isNorth()); }
/** * Constructor. * * @param a the semi-major axis (meters) for the ellipsoid * @param f the inverse flattening for the ellipsoid * @param zone the UTM zone number (1..60) * @param hemisphere_north true if the UTM coordinate is in the northern hemisphere */ public Gdc_To_Utm_Converter(double a, double f, int zone, boolean hemisphere_north) { init(a, f, zone, hemisphere_north); }
public double getCentralMeridian() { return convert2xy.getCentralMeridian(); }
public float[][] latLonToProj(float[][] from, float[][] to, int latIndex, int lonIndex) { if ((from == null) || (from.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (from)"); } if ((to == null) || (to.length != 2)) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:null array argument or wrong dimension (to)"); } if (from[0].length != to[0].length) { throw new IllegalArgumentException("ProjectionImpl.latLonToProj:from array not same length as to array"); } return convert2xy.latLonToProj(from, to, latIndex, lonIndex); }
/** * Set whether in North or South Hemisphere. * * @param newNorth _more_ */ public void setNorth(boolean newNorth) { convert2latlon = new Utm_To_Gdc_Converter(convert2latlon.getA(), convert2latlon.getF(), convert2latlon.getZone(), newNorth); convert2xy = new Gdc_To_Utm_Converter(convert2latlon.getA(), convert2latlon.getF(), convert2latlon.getZone(), convert2latlon.isNorth()); }
/** * _more_ * * @param ellipse _more_ * @param zone _more_ * @param isNorth _more_ */ public Gdc_To_Utm_Converter(EarthEllipsoid ellipse, int zone, boolean isNorth) { init(ellipse.getMajor(), 1.0 / ellipse.getFlattening(), zone, isNorth); }