/** * Construct a Orthographic Projection, specify earth radius * * @param lat0 lat origin of the coord. system on the projection plane * @param lon0 lon origin of the coord. system on the projection plane * @param earthRadius radius of the earth * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg */ public Orthographic(double lat0, double lon0, double earthRadius) { super("Orthographic", false); this.lat0 = Math.toRadians(lat0); this.lon0 = Math.toRadians(lon0); R = earthRadius; precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.ORTHOGRAPHIC); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); }
/** * Construct a Orthographic Projection, specify earth radius * * @param lat0 lat origin of the coord. system on the projection plane * @param lon0 lon origin of the coord. system on the projection plane * @param earthRadius radius of the earth * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg */ public Orthographic(double lat0, double lon0, double earthRadius) { super("Orthographic", false); this.lat0 = Math.toRadians(lat0); this.lon0 = Math.toRadians(lon0); R = earthRadius; precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.ORTHOGRAPHIC); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); }
/** * Construct a Orthographic Projection, specify earth radius * * @param lat0 lat origin of the coord. system on the projection plane * @param lon0 lon origin of the coord. system on the projection plane * @param earthRadius radius of the earth * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg */ public Orthographic(double lat0, double lon0, double earthRadius) { super("Orthographic", false); this.lat0 = Math.toRadians(lat0); this.lon0 = Math.toRadians(lon0); R = earthRadius; precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.ORTHOGRAPHIC); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); }
/** * Construct a Orthographic Projection, two standard parellels. * For the one standard parellel case, set them both to the same value. * * @param lat0 lat origin of the coord. system on the projection plane * @param lon0 lon origin of the coord. system on the projection plane * @param earthRadius radius of the earth * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg */ public Orthographic(double lat0, double lon0, double earthRadius) { this.lat0 = Math.toRadians(lat0); this.lon0 = Math.toRadians(lon0); R = earthRadius; origin = new LatLonPointImpl(lat0, lon0); precalculate(); addParameter(ATTR_NAME, "orthographic"); addParameter("latitude_of_projection_origin", lat0); addParameter("longitude_of_projection_origin", lon0); }