/** * Transform fractional FGF coordinates to (longitude, latitude). * * @param fgf_x fractional FGF coordinate, zero-based * @param fgf_y fractional FGF coordinate, zero-based * @param scale_x scaleFactor from the x coordinate variable * @param offset_x addOffset from the x coordinate variable * @param scale_y scaleFactor from the y coordinate variable * @param offset_y addOffset from the y coordinate variable * @return (Longitude, Latitude), units: degrees */ public double[] FGFtoEarth(double fgf_x, double fgf_y, double scale_x, double offset_x, double scale_y, double offset_y) { double[] xy = FGFtoSat(fgf_x, fgf_y, scale_x, offset_x, scale_y, offset_y); return satToEarth(xy[0], xy[1]); }
/** * Transform fractional FGF coordinates to (longitude, latitude). * * @param fgf_x fractional FGF coordinate, zero-based * @param fgf_y fractional FGF coordinate, zero-based * @param scale_x scaleFactor from the x coordinate variable * @param offset_x addOffset from the x coordinate variable * @param scale_y scaleFactor from the y coordinate variable * @param offset_y addOffset from the y coordinate variable * @return (Longitude, Latitude), units: degrees */ public double[] FGFtoEarth(double fgf_x, double fgf_y, double scale_x, double offset_x, double scale_y, double offset_y) { double[] xy = FGFtoSat(fgf_x, fgf_y, scale_x, offset_x, scale_y, offset_y); return satToEarth(xy[0], xy[1]); }
@Override public LatLonPoint projToLatLon(ProjectionPoint ppt, LatLonPointImpl destPoint) { double[] lonlat = navigation.satToEarth(ppt.getX(), ppt.getY()); destPoint.setLongitude(lonlat[0]); destPoint.setLatitude(lonlat[1]); return destPoint; }
@Override public LatLonPoint projToLatLon(ProjectionPoint ppt, LatLonPointImpl destPoint) { double x = ppt.getX(); double y = ppt.getY(); if (isGeoCoordinateScaled) x = x * geoCoordinateScaleFactor; double[] lonlat = navigation.satToEarth(x, y); destPoint.setLongitude(lonlat[0]); destPoint.setLatitude(lonlat[1]); return destPoint; }