Osmosis just uses this library, right? I mean, it is a nicely packaged version of LGPLed OSM-binary: https://github.com/openstreetmap/osmosis/tree/master/osmosis-osm-binary
Use it in maven via: <dependency> <groupId>org.openstreetmap.osmosis</groupId> <artifactId>osmosis-osm-binary</artifactId> <version>0.43.1</version> </dependency> Regards, Peter. > On Di, Mär 18, 2014 at 01:29:57 -0600, Martijn van Exel wrote: >> Are there any examples known to you that use the osmosis code in >> another project? I am specifically interested in using the PBF reading >> code. Or is there perhaps an easier way to add OSM PBF reading to my >> own (Java) project? > There is some example PBF reading code in the OSM-binary repository > https://github.com/scrosby/OSM-binary/blob/master/src.java/crosby/binary/test/ReadFileExample.java > > Also I think mkgmap (http://www.mkgmap.org.uk/) has its own PBF reading > code based on OSM-binary. > > How good those implementations are, I don't know. Reading PBF files is not so > simple, there are undocumented details that can trip you up. So using either > of > these might be more difficult than with Osmosis. > > Jochen -- GraphHopper.com - Fast & Flexible Road Routing _______________________________________________ osmosis-dev mailing list osmosis-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/osmosis-dev