pax_global_header 0000666 0000000 0000000 00000000064 12311066644 0014515 g ustar 00root root 0000000 0000000 52 comment=72cd8e5abc3fbb1a42d02a908cc835ed282ed083
OSM-binary-1.3.3/ 0000775 0000000 0000000 00000000000 12311066644 0013441 5 ustar 00root root 0000000 0000000 OSM-binary-1.3.3/.gitignore 0000664 0000000 0000000 00000000223 12311066644 0015426 0 ustar 00root root 0000000 0000000 build-stamp
build
configure-stamp
osmpbf.jar
generated.java
include/osmpbf/*.pb.h
src/*.pb.h
src/*.pb.o
src/libosmpbf.a
*.swp
obj-x86_64-linux-gnu
OSM-binary-1.3.3/CMakeLists.txt 0000664 0000000 0000000 00000000566 12311066644 0016210 0 ustar 00root root 0000000 0000000 PROJECT(OSMBinary)
cmake_minimum_required(VERSION 2.8.5)
SET(SEARCH_PREFIX CACHE PATH "Additional prefix to search libraries (Protobuf etc.)" )
SET(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${SEARCH_PREFIX})
include(FindProtobuf)
find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIR})
add_subdirectory(src)
if(NOT MSVC)
add_subdirectory(tools)
endif() OSM-binary-1.3.3/COPYING.osmpbf 0000664 0000000 0000000 00000016743 12311066644 0015774 0 ustar 00root root 0000000 0000000 GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
OSM-binary-1.3.3/README 0000664 0000000 0000000 00000002153 12311066644 0014322 0 ustar 00root root 0000000 0000000
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
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
OSM-binary-1.3.3/ReleaseNotes.txt 0000664 0000000 0000000 00000003371 12311066644 0016577 0 ustar 00root root 0000000 0000000 ----------------------------------------
Release notes for 1.3.3 -- 2014-03-15
----------------------------------------
Fixed ant build file.
----------------------------------------
Release notes for 1.3.2 -- 2014-03-12
----------------------------------------
Small bugfixes and build enhancements.
Improved Debian build in coordination with Debian maintainers.
----------------------------------------
Release notes for 1.3.1 -- 2013-12-11
----------------------------------------
Several building fixes and enhancements.
----------------------------------------
Release notes for 1.3.0 -- 2012-12-04
----------------------------------------
Add osmosis replication fields into the header.
-- Changes from Frederick Ramm
----------------------------------------
Release notes for 1.2.1 -- 2011-10-29
----------------------------------------
--------------------------------------
Release notes for 1.2.0 -- NOT RELEASED
--------------------------------------
* Bad tag, so not releasable.
* Switched to the lite (non-introspective) version of protocol buffers
for a smaller library.
* Includes support for "visible" flag on OSM objects. This allows PBF to
handle OSM history files.
* Namespace and include conventions changes for the C++ library. Everything
is in the OSMPBF namespace. You now do:
#include
* Added stuff needed to build Debian/Ubuntu libosmpbf-dev package containing
the C++ library.
* Added osmpbf-outline tool that shows internals of a PBF file for debugging.
* Added magic file that can recognize OSM PBF files.
-- Changes from Jochen Topf
Peter
* Added a pom.xml
-- Changes from Zsombor Welker
OSM-binary-1.3.3/build.sh 0000664 0000000 0000000 00000000153 12311066644 0015073 0 ustar 00root root 0000000 0000000 protoc --java_out=generated.java src/osmformat.proto
protoc --java_out=generated.java src/fileformat.proto
OSM-binary-1.3.3/build.xml 0000664 0000000 0000000 00000002026 12311066644 0015262 0 ustar 00root root 0000000 0000000
OSM-binary-1.3.3/debian/ 0000775 0000000 0000000 00000000000 12311066644 0014663 5 ustar 00root root 0000000 0000000 OSM-binary-1.3.3/debian/changelog 0000664 0000000 0000000 00000000173 12311066644 0016536 0 ustar 00root root 0000000 0000000 osmpbf (1.3.3) UNRELEASED; urgency=low
* unreleased
-- Jochen Topf Sat, 15 Mar 2014 16:10:12 +0100
OSM-binary-1.3.3/debian/clean 0000664 0000000 0000000 00000000075 12311066644 0015672 0 ustar 00root root 0000000 0000000 include/osmpbf/fileformat.pb.h
include/osmpbf/osmformat.pb.h
OSM-binary-1.3.3/debian/compat 0000664 0000000 0000000 00000000002 12311066644 0016061 0 ustar 00root root 0000000 0000000 9
OSM-binary-1.3.3/debian/control 0000664 0000000 0000000 00000003231 12311066644 0016265 0 ustar 00root root 0000000 0000000 Source: osmpbf
Maintainer: Jochen Topf
Section: java
Priority: optional
Build-Depends: debhelper (>= 9),
protobuf-compiler,
libprotobuf-java,
ant,
default-jdk,
libprotobuf-dev,
maven-repo-helper
Standards-Version: 3.9.5
Homepage: http://github.com/scrosby/OSM-binary
Package: libosmpbf-java
Architecture: all
Depends: ${misc:Depends}
Description: Java access library for OpenStreetMap PBF file format
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.
.
This package provides a Java library.
Package: libosmpbf-dev
Architecture: any
Section: libdevel
Depends: libprotobuf-dev,
${misc:Depends}
Description: C headers for OpenStreetMap PBF file format
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.
.
This package provides the C headers to be used in third-party
applications.
Package: osmpbf-bin
Architecture: any
Section: utils
Depends: ${shlibs:Depends},
${misc:Depends}
Description: OpenStreetMap PBF file format library - tools
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.
.
This package provides various tools to deal with OpenStreetMap PBF file
format.
OSM-binary-1.3.3/debian/copyright 0000664 0000000 0000000 00000003642 12311066644 0016623 0 ustar 00root root 0000000 0000000 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: http://github.com/scrosby/OSM-binary
Upstream-Contact: Scott A. Crosby
Files: *
Copyright: © 2010, Scott A. Crosby
License: LGPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see
.
On Debian systems, the complete text of the GNU Lesser General Public License
version 3 can be found in "/usr/share/common-licenses/LGPL-3".
Files: debian/*
Copyright: © 2010-2012, Giovanni Mascellani
© 2011-2013, David Paleino
License: GPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see
.
On Debian systems, the complete text of the GNU General Public License
version 3 can be found in "/usr/share/common-licenses/GPL-3".
OSM-binary-1.3.3/debian/libosmpbf-dev.docs 0000664 0000000 0000000 00000000060 12311066644 0020262 0 ustar 00root root 0000000 0000000 src/fileformat.proto
src/osmformat.proto
README
OSM-binary-1.3.3/debian/libosmpbf-dev.install 0000664 0000000 0000000 00000000026 12311066644 0021002 0 ustar 00root root 0000000 0000000 usr/include/
usr/lib/
OSM-binary-1.3.3/debian/libosmpbf-java.install 0000664 0000000 0000000 00000000032 12311066644 0021142 0 ustar 00root root 0000000 0000000 osmpbf.jar usr/share/java
OSM-binary-1.3.3/debian/osmpbf-bin.install 0000664 0000000 0000000 00000000011 12311066644 0020277 0 ustar 00root root 0000000 0000000 usr/bin/
OSM-binary-1.3.3/debian/osmpbf-bin.manpages 0000664 0000000 0000000 00000000027 12311066644 0020433 0 ustar 00root root 0000000 0000000 tools/osmpbf-outline.1
OSM-binary-1.3.3/debian/rules 0000775 0000000 0000000 00000001520 12311066644 0015741 0 ustar 00root root 0000000 0000000 #!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
CXXFLAGS += $(CPPFLAGS)
%:
dh $@ --buildsystem makefile --parallel
override_dh_auto_clean:
dh_auto_clean --buildsystem ant
dh_auto_clean -Dsrc
dh_auto_clean -Dtools
mh_clean
override_dh_auto_configure:
dh_auto_configure --buildsystem ant
dh_auto_configure -Dsrc
dh_auto_configure -Dtools
override_dh_auto_build:
dh_auto_build --buildsystem ant
dh_auto_build -Dsrc
dh_auto_build -Dtools
override_dh_auto_install:
dh_auto_install --buildsystem ant
dh_auto_install -Dsrc -- PREFIX=/usr
dh_auto_install -Dtools -- PREFIX=/usr
override_dh_installchangelogs:
dh_installchangelogs -- ReleaseNotes.txt
override_dh_install:
dh_install
mh_installjar -plibosmpbf-java -l pom.xml osmpbf.jar
mh_installpom -plibosmpbf-java pom.xml
OSM-binary-1.3.3/debian/source/ 0000775 0000000 0000000 00000000000 12311066644 0016163 5 ustar 00root root 0000000 0000000 OSM-binary-1.3.3/debian/source/format 0000664 0000000 0000000 00000000015 12311066644 0017372 0 ustar 00root root 0000000 0000000 3.0 (native)
OSM-binary-1.3.3/debian/watch 0000664 0000000 0000000 00000000124 12311066644 0015711 0 ustar 00root root 0000000 0000000 version=3
http://githubredir.debian.net/github/scrosby/OSM-binary/v(\d+.*)\.tar\.gz
OSM-binary-1.3.3/include/ 0000775 0000000 0000000 00000000000 12311066644 0015064 5 ustar 00root root 0000000 0000000 OSM-binary-1.3.3/include/osmpbf/ 0000775 0000000 0000000 00000000000 12311066644 0016352 5 ustar 00root root 0000000 0000000 OSM-binary-1.3.3/include/osmpbf/osmpbf.h 0000664 0000000 0000000 00000001316 12311066644 0020012 0 ustar 00root root 0000000 0000000 #ifndef OSMPBF_H
#define OSMPBF_H
// this describes the low-level blob storage
#include // IWYU pragma: export
// this describes the high-level OSM objects
#include // IWYU pragma: export
#define OSMPBF_VERSION "1.3.3"
namespace OSMPBF {
// the maximum size of a blob header in bytes
const int max_blob_header_size = 64 * 1024; // 64 kB
// the maximum size of an uncompressed blob in bytes
const int max_uncompressed_blob_size = 32 * 1024 * 1024; // 32 MB
// resolution for longitude/latitude used for conversion
// between representation as double and as int
const int lonlat_resolution = 1000 * 1000 * 1000;
}
#endif // OSMPBF_H
OSM-binary-1.3.3/magic 0000664 0000000 0000000 00000000157 12311066644 0014447 0 ustar 00root root 0000000 0000000 # Magic data for file(1) command.
# Format is described in magic(5).
6 string OSMHeader OpenStreetMap PBF
OSM-binary-1.3.3/pom.xml 0000664 0000000 0000000 00000004756 12311066644 0014772 0 ustar 00root root 0000000 0000000
4.0.0
crosby.binary
osmpbf
jar
1.3.3
OSM-Binary
Library for the OpenStreetMap PBF format
https://github.com/scrosby/OSM-binary
GNU General Lesser Public License (LGPL) version 3.0
http://www.gnu.org/licenses/lgpl-3.0.txt
repo
https://github.com/scrosby/OSM-binary
https://github.com/scrosby/OSM-binary.git
${basedir}/src.java
${basedir}/build
${basedir}/resources
org.apache.maven.plugins
maven-compiler-plugin
1.5
1.5
com.google.protobuf.tools
maven-protoc-plugin
generate-sources
compile
generate-sources
${basedir}/src
**/*.proto
dtrott
http://maven.davidtrott.com/repository
junit
junit
3.8.1
test
com.google.protobuf
protobuf-java
2.4.1
OSM-binary-1.3.3/resources/ 0000775 0000000 0000000 00000000000 12311066644 0015453 5 ustar 00root root 0000000 0000000 OSM-binary-1.3.3/resources/sample.pbf 0000664 0000000 0000000 00000022665 12311066644 0017440 0 ustar 00root root 0000000 0000000
OSMHeaderx8}F7dxqFf]kdV/
NHM
33SrI+NOI-/*,H/H͋tib/M+K-*Q03wbT())//// .)JM-M,/JO, 2*
OSMData.:.xXyTTg}ェzl.hC3bLLb{:v4=I/38DHD Ƥ9]ž#P#Zž/;s_33ܯ}ѹj|[F͙] `gcc;7&淌68{ؔ^`!0BW~W-o7}u.C0Zݶ0Λ]#Z\0ǎ5Kr<;#cf{fP6;Ğ8~(vFwmɖ]wF,VU3 s#S_d>/-w|mF늑-}3fOIi=g[F_fF&A4w.pBhW=4ꞅĄ5[#F7b335
~*LU06gǎ74df6~`˟y]7SM <ûb|[p;3{6Y=θ1+OI]2p zW5JwxQF]LU!>VHR%#Ss5gm
R7:H+E+IEi(y5";V*+pu`&A[gkR}J^w[4SRJҏ=%ǤV!cRS0O9Q)y0]^Qs*
8oVDJ7{Z.)le8oMJȑ <.'(>ao+kDU^