[osmosis-dev] Example code for PBF reading
Jochen Topf
jochen at remote.org
Tue Mar 18 19:38:11 UTC 2014
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
--
Jochen Topf jochen at remote.org http://www.jochentopf.com/ +49-721-388298
More information about the osmosis-dev
mailing list