Examples of OsmWriter


Examples of org.openstreetmap.josm.io.OsmWriter

        return layerEl;
    }

    protected void addDataFile(OutputStream out) {
        Writer writer = new OutputStreamWriter(out, StandardCharsets.UTF_8);
        OsmWriter w = OsmWriterFactory.createOsmWriter(new PrintWriter(writer), false, layer.data.getVersion());
        layer.data.getReadLock().lock();
        try {
            w.writeLayer(layer);
            w.flush();
        } finally {
            layer.data.getReadLock().unlock();
        }
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.xml.v0_6.impl.OsmWriter

   *            The writer to send all data to.
   */
  public XmlWriter(BufferedWriter writer) {
    super(writer);
   
    osmWriter = new OsmWriter("osm", 0, true, false);
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.xml.v0_6.impl.OsmWriter

   *            Specifies the compression method to employ.
   */
  public XmlWriter(File file, CompressionMethod compressionMethod) {
    super(file, compressionMethod);
   
    osmWriter = new OsmWriter("osm", 0, true, false);
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.xml.v0_6.impl.OsmWriter

   *            instead of the correct {@literal <bounds>} one.
   */
  public XmlWriter(File file, CompressionMethod compressionMethod, boolean legacyBound) {
    super(file, compressionMethod);
   
    osmWriter = new OsmWriter("osm", 0, true, legacyBound);
  }
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.