/** * 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) { 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(ATTR_NAME, "universal_transverse_mercator"); addParameter("semi-major_axis", a); addParameter("inverse_flattening", f); addParameter("UTM_zone", zone); addParameter("north_hemisphere", isNorth ? "true" : "false"); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); saveParams = new SaveParams(convert2latlon.getA(), 1/convert2latlon.getF(), 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 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); saveParams = new SaveParams(convert2latlon.getA(), 1/convert2latlon.getF(), 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); }