Examples of LatLon


Examples of org.apache.sis.core.LatLon

    double lat2 = Math.asin((sinLat * cosD) + (cosLat * sinD * Math.cos(brng)));
    double lon2 = lon1
        + Math.atan2(Math.sin(brng) * sinD * cosLat, cosD - sinLat
            * Math.sin(lat2));

    return new LatLon(Math.toDegrees(lat2), Math.toDegrees(lon2));
  }
View Full Code Here

Examples of org.openstreetmap.josm.data.coor.LatLon

    /*
     * Converts from bounds used in josm to boxes used here
     */
    public static Box fromBounds(Bounds bbox) {
        LatLon min = bbox.getMin(), max = bbox.getMax();
        return new Box(toFpi(min.getX()), toFpi(min.getY()), toFpi(max.getX()),
                toFpi(max.getY()));
    }
View Full Code Here

Examples of org.openstreetmap.josm.data.coor.LatLon

            return new DownloadGpsTask();
        throw new IllegalArgumentException();
    }

    static protected Bounds extend(Bounds bbox, double amount) {
        LatLon min = bbox.getMin();
        LatLon max = bbox.getMax();

        double dLat = Math.abs(max.lat() - min.lat()) * amount;
        double dLon = Math.abs(max.lon() - min.lon()) * amount;

        return new Bounds(min.lat() - dLat, min.lon() - dLon, max.lat() + dLat, max.lon() + dLon);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.