Skip to content
No description or website provided.
Java Protocol Buffer Makefile CMake C++ Shell
Latest commit 1283c4a Aug 14, 2015 @joto joto Merge pull request #21 from tomhughes/shlib
Build and install a shared library



Osmpbf is a Java/C library to read and write OpenStreetMap PBF files.
PBF (Protocol buffer Binary Format) is a binary file format for OpenStreetMap
data that uses Google Protocol Buffers as low-level storage.

For more information see .

Java Version

To build the osmpbf.jar file run:

For a Java usage example, see

C Version

To compile:
  make -C src

To install:
  make -C src install

There is a tool named osmpbf-outline that shows a debug output of the contents
of a PBF file. To compile it:
  make -C tools

Using the C Library

To include in your program use:

#include <osmpbf/osmpbf.h>

and link with:
    -pthread -lz -lprotobuf-lite -losmpbf

Debian/Ubuntu Packages

To build the Debian/Ubuntu packages:
  debuild -I -us -uc

To install the Debian/Ubuntu packages:
  sudo dpkg --install ../libosmpbf-dev_*.deb
  sudo dpkg --install ../libosmpbf-java_*.deb
  sudo dpkg --install ../osmpbf-bin_*.deb

To clean up after:

Something went wrong with that request. Please try again.