Examples of greatCircleDistance()


Examples of org.openstreetmap.josm.data.coor.LatLon.greatCircleDistance()

                }
                HistoricoGPS h = rs[i].getHistoricoGps();

                LatLon ll = new LatLon(h.getPosY(), h.getPosX());
                Integer dist = (int) ll
                    .greatCircleDistance(point);

                Vector<Object> row = new Vector<Object>();
                row.add(i);
                row.add(rs[i].getIdentificador());
View Full Code Here

Examples of org.openstreetmap.josm.data.coor.LatLon.greatCircleDistance()

             * way point has been used to modify the area.
             */
            private LatLon calcAreaForWayPoint(WayPoint p, LatLon previous) {
                tick();
                LatLon c = p.getCoor();
                if (previous == null || c.greatCircleDistance(previous) > buffer_dist) {
                    // we add a buffer around the point.
                    r.setRect(c.lon() - buffer_x, c.lat() - buffer_y, 2 * buffer_x, 2 * buffer_y);
                    a.add(new Area(r));
                    return c;
                }
View Full Code Here

Examples of org.openstreetmap.josm.data.coor.LatLon.greatCircleDistance()

             * way point has been used to modify the area.
             */
            private LatLon calcAreaForWayPoint(WayPoint p, LatLon previous) {
                tick();
                LatLon c = p.getCoor();
                if (previous == null || c.greatCircleDistance(previous) > buffer_dist) {
                    // we add a buffer around the point.
                    r.setRect(c.lon() - buffer_x, c.lat() - buffer_y, 2 * buffer_x, 2 * buffer_y);
                    a.add(new Area(r));
                    return c;
                }
View Full Code Here

Examples of org.openstreetmap.josm.data.coor.LatLon.greatCircleDistance()

                        LatLon c = trkPnt.getCoor();
                        if (Double.isNaN(c.lat()) || Double.isNaN(c.lon())) {
                            continue;
                        }
                        if (oldWp != null && trkPnt.time > oldWp.time) {
                            double vel = c.greatCircleDistance(oldWp.getCoor())
                                    / (trkPnt.time - oldWp.time);
                            if(vel > maxval) {
                                maxval = vel;
                            }
                            if(vel < minval) {
View Full Code Here

Examples of org.openstreetmap.josm.data.coor.LatLon.greatCircleDistance()

                if (colored == ColorMode.HDOP) {
                    Float hdop = ((Float) trkPnt.attr.get("hdop"));
                    color = hdopScale.getColor(hdop);
                }
                if (oldWp != null) { // other coloring modes need segment for calcuation
                    double dist = c.greatCircleDistance(oldWp.getCoor());
                    boolean noDraw=false;
                    switch (colored) {
                    case VELOCITY:
                        double dtime = trkPnt.time - oldWp.time;
                        if(dtime > 0) {
View Full Code Here

Examples of org.openstreetmap.josm.data.coor.LatLon.greatCircleDistance()

        for (Node n:nodes) {
            if (lastN != null) {
                LatLon lastNcoor = lastN.getCoor();
                LatLon coor = n.getCoor();
                if (lastNcoor != null && coor != null) {
                    length += coor.greatCircleDistance(lastNcoor);
                }
            }
            lastN = n;
        }
        return length;
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.