/** * Create a new LatLonProjection * * @param name name of projection * @param defaultMapArea bounding box */ public LatLonProjection(String name, ProjectionRect defaultMapArea) { addParameter(ATTR_NAME, "latitude_longitude"); this.name = name; isLatLon = true; this.defaultMapArea = defaultMapArea; }
/** * Create a new LatLonProjection * * @param name name of projection * @param defaultMapArea bounding box */ public LatLonProjection(String name, ProjectionRect defaultMapArea) { super(name, true); this.defaultMapArea = defaultMapArea; addParameter(CF.GRID_MAPPING_NAME, CF.LATITUDE_LONGITUDE); }
/** * Create a new LatLonProjection * * @param name name of projection * @param defaultMapArea bounding box */ public LatLonProjection(String name, ProjectionRect defaultMapArea) { super(name, true); this.defaultMapArea = defaultMapArea; addParameter(CF.GRID_MAPPING_NAME, CF.LATITUDE_LONGITUDE); }
private void addParameters() { addParameter(CF.GRID_MAPPING_NAME, CF.LATITUDE_LONGITUDE); if (earth.isSpherical()) addParameter(CF.EARTH_RADIUS, earth.getEquatorRadius()); else { addParameter(CF.SEMI_MAJOR_AXIS, earth.getEquatorRadius()); addParameter(CF.SEMI_MINOR_AXIS, earth.getPoleRadius()); } }