Package org.openstreetmap.josm.io

Examples of org.openstreetmap.josm.io.GpxWriter


                    "No tengo permiso para escribir en "
                        + f.getAbsolutePath());
              else {
                try {
                  OutputStream out = new FileOutputStream(f);
                  GpxWriter writer = new GpxWriter(out);
                  writer.write(gpxLayer.data);
                  out.close();
                } catch (Throwable t) {
                  log.error("Error al escribir el gpx", t);
                  JOptionPane.showMessageDialog(
                      SaveGPXDialog.this,
View Full Code Here


        track.trackSegs.add(linkedList);
        data.tracks.add(track);
      }
      data.waypoints = linkedList;
      OutputStream out = new FileOutputStream(file);
      GpxWriter writer = new GpxWriter(out);
      writer.write(data);
      out.close();
    } catch (UnsupportedEncodingException e) {
      log.error("Error al escribir el gpx en el fichero temporal.", e);
      setError("Error al escribir el gpx en el fichero temporal.");
    } catch (IOException e) {
View Full Code Here

    }

    @SuppressWarnings("resource")
    protected void addDataFile(OutputStream out) {
        Writer writer = new OutputStreamWriter(out, StandardCharsets.UTF_8);
        GpxWriter w = new GpxWriter(new PrintWriter(writer));
        w.write(layer.data);
        w.flush();
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.io.GpxWriter

Copyright © 2018 www.massapicom. 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.