Search in sources :

Example 1 with FastXmlReader

use of org.openstreetmap.osmosis.xml.v0_6.FastXmlReader in project voltdb by VoltDB.

the class OSMImport method run.

public void run() {
    CompressionMethod compressionMethod = CompressionMethod.None;
    Sink sink = new VoltDBOsmSink(config.server);
    FastXmlReader fxr = new FastXmlReader(input, false, compressionMethod);
    fxr.setSink(sink);
    fxr.run();
}
Also used : Sink(org.openstreetmap.osmosis.core.task.v0_6.Sink) FastXmlReader(org.openstreetmap.osmosis.xml.v0_6.FastXmlReader) CompressionMethod(org.openstreetmap.osmosis.xml.common.CompressionMethod)

Aggregations

Sink (org.openstreetmap.osmosis.core.task.v0_6.Sink)1 CompressionMethod (org.openstreetmap.osmosis.xml.common.CompressionMethod)1 FastXmlReader (org.openstreetmap.osmosis.xml.v0_6.FastXmlReader)1