diff --git a/misc/pbfparser/README.txt b/misc/pbfparser/README.txt index 67181db..d8f7d16 100644 --- a/misc/pbfparser/README.txt +++ b/misc/pbfparser/README.txt @@ -6,12 +6,18 @@ 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.jar --> get protobuf.jar --> copy the brouter...with_dependencies.jar and name it brouter.jar +-> 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/target/brouter-server...with-dependencies.jar to +brouter.jar in this folder -> compile the PBF-Parser using: - javac -d . -cp protobuf.jar;osmosis.jar;brouter.jar *.java --> pack protobuf.jar + osmosis.jar + btools/**.class alltogether in a jar "pbfparser.jar" + javac -d . -cp protobuf.jar:osmosis.jar:brouter.jar *.java +-> pack protobuf.jar + osmosis.jar + btools/**.class alltogether in a jar +"pbfparser.jar" with "jar cf pbfparser.jar protobuf.jar osmosis.jar +btools/**.class" -Alternativly, you can run the Mapcreator against a *xml.bz2 Database-Extract, +Alternatively, you can run the Mapcreator against a *xml.bz2 Database-Extract, then you don't need the pbf-parser. diff --git a/misc/scripts/mapcreation/process_pbf_planet.sh b/misc/scripts/mapcreation/process_pbf_planet.sh old mode 100644 new mode 100755 index 304f05f..2af9c06 --- a/misc/scripts/mapcreation/process_pbf_planet.sh +++ b/misc/scripts/mapcreation/process_pbf_planet.sh @@ -14,7 +14,7 @@ rm -rf /var/www/brouter/segments4_lastrun mkdir tmp cd tmp mkdir nodetiles -/java/bin/java -Xmx2600m -Xms2600m -Xmn32m -cp ../pbfparser.jar:../brouter.jar btools.mapcreator.OsmCutter ../lookups.dat nodetiles ways.dat relations.dat ../all.brf ../planet-latest.osm.pbf +/java/bin/java -Xmx2600m -Xms2600m -Xmn32m -cp ../pbfparser.jar:../brouter.jar btools.mapcreator.OsmCutter ../lookups.dat nodetiles ways.dat relations.dat restrictions.dat ../all.brf ../planet-latest.osm.pbf mkdir ftiles /java/bin/java -Xmx2600M -Xms2600M -Xmn32M -cp ../brouter.jar -Ddeletetmpfiles=true -DuseDenseMaps=true btools.mapcreator.NodeFilter nodetiles ways.dat ftiles