summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconvert8
1 files changed, 8 insertions, 0 deletions
diff --git a/convert b/convert
index d2bcc39..70a73b3 100755
--- a/convert
+++ b/convert
@@ -19,6 +19,11 @@ countries=(
slovakia
slovenia
)
+numJobs="$[$(/usr/bin/getconf _NPROCESSORS_ONLN)-2]"
+if [ ${numJobs} -lt 1 ]
+then
+ numJobs=1
+fi
[ -f "sea.zip" ] || \
wget -nd 'http://osm2.pleiades.uni-wuppertal.de/sea/latest/sea.zip'
@@ -64,4 +69,7 @@ done
--precomp-sea=sea.zip \
--index \
--gmapsupp \
+ --family-name="OpenStreetmap mkgmap" \
+ --area-name="parts of europe" \
+ --max-jobs="${numJobs}" \
*-latest_dir/6324????.osm.pbf