Examples of Trkpt


Examples of net.sourceforge.gpstools.gpx.Trkpt

        }
    }

    public synchronized void addTrackSegment(TrksegType seg) {
        final Enumeration<? extends Trkpt> pts = seg.enumerateTrkpt();
        Trkpt trkpt;
        final SortedSet<WptType> set = new TreeSet<WptType>(wptSorter);
        while (pts.hasMoreElements()) {
            trkpt = pts.nextElement();
            addWpt(set, trkpt);
        }
View Full Code Here

Examples of net.sourceforge.gpstools.gpx.Trkpt

            mapjs.append("  weight: 2,\n");
            mapjs.append("  opacity: 0.5,\n");

            /* encode first point */
            mapjs.append("  points: \"");
            Trkpt previous;
            Trkpt current = pts[start];
            format.asGPolylineCoordinate(current.getLat(), null, mapjs);
            format.asGPolylineCoordinate(current.getLon(), null, mapjs);

            stop = start + 100;
            if (len <= stop) {
                stop = len;
            }

            /* encode other points */
            for (int i = start + 1; i < stop; i++) {
                previous = current;
                current = pts[i];
                format.asGPolylineCoordinate(current.getLat(),
                        previous.getLat(), mapjs);
                format.asGPolylineCoordinate(current.getLon(),
                        previous.getLon(), mapjs);
            }

            mapjs.append("\",\n");

View Full Code Here

Examples of net.sourceforge.gpstools.gpx.Trkpt

    for (HistoricoGPS hist : historico) {
      Geometry geom = hist.getGeom();
      if (geom != null && geom.getCentroid().getX() != 0.0d
          && geom.getCentroid().getY() != 0.0d) {

        Trkpt punto = new Trkpt();
        punto.setLon(BigDecimal.valueOf(geom.getCentroid().getX()));
        punto.setLat(BigDecimal.valueOf(geom.getCentroid().getY()));
        punto.setTime(hist.getMarcaTemporal());
        punto.setName(recurso
            + " "
            + DateFormat.getDateInstance(DateFormat.SHORT, LOCALE)
                .format(new Date(hist.getMarcaTemporal()
                    .getTime()))
            + " "
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.