Re: [osmosis-dev] Usage of EntityMerger

2013-06-04 Thread Richard Redweik
Thank you Peter! Your guess is working. xmlReader0.run() is blocking. Thus, I start each xmlReader in its own thread, start the merger, and wait until both are finished: Thread t1 = new Thread(xmlReader0); Thread t2 = new Thread(xmlReader1); t1.start(); t2.start(); merger.run(); t1.join();

Re: [osmosis-dev] Usage of EntityMerger

2013-05-29 Thread Peter Körner
Hi just by looking at the code https://github.com/openstreetmap/osmosis/blob/master/osmosis-set/src/main/java/org/openstreetmap/osmosis/set/v0_6/EntityMerger.java?source=cc it looks like instanciating your EntityMerger creates two internal sinks (sortedEntityValidator0 and

[osmosis-dev] Usage of EntityMerger

2013-05-28 Thread Richard Redweik
Hi list, I am trying to implement my own process to read osm data. Therefore I am using the osmosis jars from the maven repository. Currently I am connecting my tasks by hand. For example: XmlReader xmlReader = new XmlReader(inputFile, true, CompressionMethod.None); PolygonFilter polygonFilter