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
_______________________________________________ osmosis-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/osmosis-dev
