From 046f3748d4a8521f7b1a2e94ca0056122ecb0a59 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Tue, 11 Jan 2011 14:51:33 +0100 Subject: [PATCH] Updated planet script to build planet only --- tools/unix/build_common_planet.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/unix/build_common_planet.sh b/tools/unix/build_common_planet.sh index c4c8e9f790..faa544d8cc 100755 --- a/tools/unix/build_common_planet.sh +++ b/tools/unix/build_common_planet.sh @@ -16,7 +16,7 @@ DATA_PATH=../../data # displays usage and exits function Usage { echo '' - echo "Usage: $0 [path_to_data_folder_with_classsif_and_planet.osm.bz2] [bucketing_level] [optional_path_to_intermediate_data]" + echo "Usage: $0 [path_to_data_folder_with_classsif_and_planet.osm.bz2] [bucketing_level] [optional_path_to_intermediate_data] [world_only]" echo "Note, that for coastlines bucketing_level should be 0" echo "Planet squares size is (2^bucketing_level x 2^bucketing_level)" echo "If optional intermediate path is given, only second pass will be executed" @@ -101,6 +101,12 @@ then PV=pv fi +WORLD_ONLY=false +if [ $# -ge 4 ]; then + WORLD_ONLY=true +fi + + # skip 1st pass if intermediate data path was given if [ $# -lt 3 ]; then # 1st pass - not paralleled @@ -112,7 +118,7 @@ fi # 2nd pass - not paralleled $PV $OSM_BZ2 | bzip2 -d | $INDEXER_TOOL --intermediate_data_path=$TMPDIR \ --use_light_nodes=$LIGHT_NODES --bucketing_level=$BUCKETING_LEVEL \ - --generate_features --worldmap_max_zoom=5 + --generate_features --worldmap_max_zoom=5 --world_only=$WORLD_ONLY # 3rd pass - do in parallel for file in $DATA_PATH/*.mwm; do