Go to file
Jochen Topf 73c5bd159d Fix line endings (CRLF->LF), remove spaces at end of lines 2013-09-02 20:44:02 +02:00
debian Update tags for v1.3.0 2012-12-04 22:14:05 -06:00
include/osmpbf Use #define instead of const char* for version. 2013-08-26 10:30:39 +02:00
resources Java file read demonstration, to help people getting started. 2012-10-19 23:00:21 +01:00
src Fix line endings (CRLF->LF), remove spaces at end of lines 2013-09-02 20:44:02 +02:00
src.java/crosby/binary Fix line endings (CRLF->LF), remove spaces at end of lines 2013-09-02 20:44:02 +02:00
tools Fix line endings (CRLF->LF), remove spaces at end of lines 2013-09-02 20:44:02 +02:00
.gitignore Fixed build of osmpbf-outline tool 2011-06-05 19:22:24 +02:00
CMakeLists.txt More compilation fixes 2013-07-22 23:13:26 +06:00
COPYING.osmpbf Add in LGPL copyright notices to the osmpbf library. 2011-01-02 20:21:48 -06:00
README Java file read demonstration, to help people getting started. 2012-10-19 23:00:21 +01:00
ReleaseNotes.txt Update tags for v1.3.0 2012-12-04 22:14:05 -06:00
build.sh Protobufs and common Java code for binary format. 2010-08-25 11:40:06 -05:00
build.xml Added build file by Giovanni Mascellani. 2011-01-12 20:09:12 -06:00
magic add magic file 2011-06-05 11:51:11 +02:00
pom.xml Merge branch 'master' of https://github.com/michaeltandy/OSM-binary into mergetest 2013-09-02 12:34:01 -05:00

README

OSM PBF
=======

See http://wiki.openstreetmap.org/wiki/PBF_Format .

There is a Java and a C version of the PBF library code here.

For a Java usage example, see src.java\crosby\binary\test\ReadFileExample.java

C Version
=========

To compile:
  cd src
  make

To install:
  cd src
  make install

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

To install the Debian/Ubuntu package call:
  sudo dpkg --install ../libosmpbf-dev*.deb

To include in your program use:

#include <osmpbf/osmpbf.h>

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