Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

rideOS/OSM-binary

 
 

Repository files navigation

OSMPBF
======

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 http://wiki.openstreetmap.org/wiki/PBF_Format .


Java Version
============

To build the osmpbf.jar file run:
  ant

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


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:
  debclean

License
=======
The .proto definition files and osmpbf.h are licensed under the MIT license. The other source code is licensed under the LGPL v3+.

About

No description, website, or topics provided.

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 71.4%
  • C++ 20.6%
  • Makefile 3.2%
  • CMake 2.9%
  • Roff 1.7%
  • Shell 0.2%