addParameter(CF.GRID_MAPPING_NAME, CF.VERTICAL_PERSPECTIVE); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); addParameter(CF.PERSPECTIVE_POINT_HEIGHT, distance * 1000); if (false_easting != 0 || false_northing != 0) { addParameter(CF.FALSE_EASTING, false_easting); addParameter(CF.FALSE_NORTHING, false_northing); addParameter(CDM.UNITS, "km");
addParameter(CF.GRID_MAPPING_NAME, CF.VERTICAL_PERSPECTIVE); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); addParameter(CF.PERSPECTIVE_POINT_HEIGHT, distance * 1000); if (false_easting != 0 || false_northing != 0) { addParameter(CF.FALSE_EASTING, false_easting); addParameter(CF.FALSE_NORTHING, false_northing); addParameter(CDM.UNITS, "km");
addParameter(CF.GRID_MAPPING_NAME, CF.VERTICAL_PERSPECTIVE); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); addParameter(CF.PERSPECTIVE_POINT_HEIGHT, distance * 1000); if (false_easting != 0 || false_northing != 0) { addParameter(CF.FALSE_EASTING, false_easting); addParameter(CF.FALSE_NORTHING, false_northing); addParameter(CDM.UNITS, "km");
/** * Construct a VerticalPerspectiveView Projection * * @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 (km) * @param distance height above the earth (km) * @param false_easting easting offset (km) * @param false_northing northing offset (km) */ public VerticalPerspectiveView(double lat0, double lon0, double earthRadius, double distance, double false_easting, double false_northing) { this.lat0 = Math.toRadians(lat0); this.lon0 = Math.toRadians(lon0); R = earthRadius; H = distance; false_east = false_easting; false_north = false_northing; origin = new LatLonPointImpl(lat0, lon0); precalculate(); addParameter(ATTR_NAME, "vertical_perspective"); addParameter("latitude_of_projection_origin", lat0); addParameter("longitude_of_projection_origin", lon0); addParameter("height_above_earth", distance); addParameter("false_easting", false_easting); addParameter("false_northing", false_northing); addParameter("earth_radius", earthRadius); }