Merge pull request #120 from Phyks/mapcreation
Complete doc for map creation
This commit is contained in:
commit
15cb0f267e
2 changed files with 13 additions and 7 deletions
|
@ -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.
|
||||
|
|
2
misc/scripts/mapcreation/process_pbf_planet.sh
Normal file → Executable file
2
misc/scripts/mapcreation/process_pbf_planet.sh
Normal file → Executable file
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue