[osmosis-dev] Usage of EntityMerger
Richard Redweik
richard.redweik at yahoo.de
Tue May 28 14:13:08 UTC 2013
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 = new PolygonFilter(IdTrackerType.Dynamic, polygonInputFile, false, false, false, false);
xmlReader.setSink(polygonFilter);
MyOwnSink mySink = new MyOwnSink(...);
polygonFilter.setSink(mySink);
xmlReader.run();
Here MyOwnSink is a Sink written by myself.
This works as expected.
Now I want to read two OSM files and merge them with the EntityMerger. But I do not know how to let the EntityMerger know about the two OSM files.
Calling xmlReader.setSink(merger) is not possible since EntityMerger is no Sink, but a MultiSink.
Does someone know, how to use the EntityMerger with two or multiple OSM files?
Can I add the EntityMerger into my workflow, which I described above?
Thanks in advance,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20130528/e11b4b17/attachment.html>
More information about the osmosis-dev
mailing list