/** * 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()); }
/** * 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()); }
/** * 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); }
/** * 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 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) { convert2latlon = new Utm_To_Gdc_Converter(zone, isNorth); convert2xy = new Gdc_To_Utm_Converter(zone, isNorth); addParameter(ATTR_NAME, "UTM"); addParameter("semi-major_axis", convert2latlon.getA()); addParameter("inverse_flattening", convert2latlon.getF()); addParameter("UTM_zone", zone); addParameter("north_hemisphere", isNorth ? "true" : "false"); }