Examples of ImmutableGpxTrack


Examples of org.openstreetmap.josm.data.gpx.ImmutableGpxTrack

        }
        break;
      case trk:
        if (qName.equals("trk")) {
          currentState = states.pop();
          currentData.tracks.add(new ImmutableGpxTrack(currentTrack,
              currentTrackAttr));
        } else if (qName.equals("name") || qName.equals("cmt")
            || qName.equals("desc") || qName.equals("src")
            || qName.equals("type") || qName.equals("number")
            || qName.equals("url")) {
View Full Code Here

Examples of org.openstreetmap.josm.data.gpx.ImmutableGpxTrack

    gpxData.storageFile = file;
    HashSet<Node> doneNodes = new HashSet<Node>();
    for (Way w : data.ways) {
      if (w.incomplete || w.deleted)
        continue;
      ImmutableGpxTrack trk = new ImmutableGpxTrack(
          new LinkedList<Collection<WayPoint>>(),
          new HashMap<String, Object>());
      gpxData.tracks.add(trk);

      if (w.get("name") != null)
View Full Code Here

Examples of org.openstreetmap.josm.data.gpx.ImmutableGpxTrack

  private File writeTo(Posicion[] posiciones, boolean linea, boolean showTime) {
    File file = null;
    try {
      file = File.createTempFile("Historico", ".gpx");
      GpxData data = new GpxData();
      ImmutableGpxTrack track = new ImmutableGpxTrack(
          new LinkedList<Collection<WayPoint>>(),
          new LinkedHashMap<String, Object>());
      LinkedList<WayPoint> linkedList = new LinkedList<WayPoint>();
      if (posiciones != null) {
        for (Posicion pos : posiciones) {
View Full Code Here

Examples of org.openstreetmap.josm.data.gpx.ImmutableGpxTrack

                    wpt.setTime();
                }
                trkseg.add(wpt);
            }

            gpxData.tracks.add(new ImmutableGpxTrack(trk, trkAttr));
        }

        for (Node n : data.getNodes()) {
            if (n.isIncomplete() || n.isDeleted() || doneNodes.contains(n)) {
                continue;
View Full Code Here

Examples of org.openstreetmap.josm.data.gpx.ImmutableGpxTrack

                } else {
                    sb.append((char)c);
                }
            }
            currentTrack.add(ps.waypoints);
            data.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap()));

        } catch (Exception e) {
            Main.warn(e);
        }
    }
View Full Code Here

Examples of org.openstreetmap.josm.data.gpx.ImmutableGpxTrack

            case trk:
                switch (localName) {
                case "trk":
                    currentState = states.pop();
                    convertUrlToLink(currentTrackAttr);
                    data.tracks.add(new ImmutableGpxTrack(currentTrack, currentTrackAttr));
                    break;
                case "name":
                case "cmt":
                case "desc":
                case "src":
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.