summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-02-14 13:38:30 +0100
committerErich Eckner <git@eckner.net>2017-02-14 13:38:30 +0100
commit74bd3f2c0503614c0d87f7101668caf8b247098f (patch)
tree25f4ef086cc7d0e1992da1747dc7097e67c348ce
parentd7d5515aa814bb74fe5a829e26196cd806f939dd (diff)
downloadosm-to-garmin-74bd3f2c0503614c0d87f7101668caf8b247098f.tar.xz
parallel und diverse Bezeichnungen neu
-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