blob: 9f3cf210755bc494bd47f9786edd02c872bb58c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
set -e -u -x
MY_PATH=`echo $0 | grep -o '.*/'`
GENERATOR_TOOL=$MY_PATH../../../omim-build-$1/out/$1/generator_tool
TMPDIR=../../../omim-indexer-tmp/
if ! [ -d $TMPDIR ]
then
mkdir $TMPDIR
fi
PV="cat"
if [ `which pv` ]
then
PV=pv
fi
# Common part.
$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --preprocess_xml=true --use_light_nodes=true --intermediate_data_path=$TMPDIR
# 1. Generate coastlines.
#$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --make_coasts=true --use_light_nodes=true --intermediate_data_path=$TMPDIR
#$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --use_light_nodes=true --generate_world=true --split_by_polygons=true --generate_features=true --emit_coasts=true --intermediate_data_path=$TMPDIR
#$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --use_light_nodes=true --generate_geometry=true --generate_index=true --intermediate_data_path=$TMPDIR --output=World
#$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --use_light_nodes=true --generate_geometry=true --generate_index=true --intermediate_data_path=$TMPDIR --output=WorldCoasts
# 2. Generate country from --output.
$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --use_light_nodes=true --generate_features=true --generate_geometry=true --generate_index=true --generate_search_index=true --intermediate_data_path=$TMPDIR --output=$2
|