brouter/misc/pbfparser
2021-08-18 13:03:54 +02:00
..
.gitignore added crc logic for datafile access 2014-02-02 17:04:17 +01:00
BPbfBlobDecoder.java no_entry/no_exit TRs 2018-12-02 18:33:35 +01:00
BPbfFieldDecoder.java Added pbf-parser + mapcreation-scripts 2014-01-19 11:22:32 +01:00
compile_parser.bat no_entry/no_exit TRs 2018-12-02 18:33:35 +01:00
OsmParser.java pre-process speed: read pbf while it is written 2019-09-28 13:00:46 +02:00
README.txt migrate to gradle part 5 2021-08-18 13:03:54 +02:00

The pbf-parse is not included in the regular source tree
to avoid the library dependencies to "osmosis" and "protobuf"

In order to run the mapcreator from a pbf-file (as it is
done in the process_pbf_planet.sh script included in
the git-repo), you have to build yourself the "pbfparser.jar"
by doing the following:

-> get osmosis from https://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.zip
-> copy lib/default/osmosis-osm-binary-*.jar in the archive to osmosis.jar in
this folder
-> copy lib/default/protobuf-java-*.jar in the archive to protobuf.jar in this
folder
-> copy the brouter-server/build/libs/brouter-...-all.jar to
brouter.jar in this folder
-> compile the PBF-Parser using:
   javac -d . -cp protobuf.jar:osmosis.jar:brouter.jar *.java
-> pack all the compiled class files together in a jar
"pbfparser.jar" with "jar cf pbfparser.jar btools/**/*.class"

Alternatively, just for testing you can run the Mapcreator against a *xml.bz2 Database-Extract,
then you don't need the pbf-parser. However, the XML-Parser does not (yet) parse
Turn-Restrictions, so really just for testing...