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();
}
}