Fix issue in coastline-fix.sh.

This commit is contained in:
Mikaël Capelle 2018-02-25 01:15:29 +01:00
parent 77a0098ace
commit 086952022a
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,8 @@ fi
# Bounds
cd mapsforge-creator
BBOX=$(perl poly2bb.pl "$INPUTS/$REGION/$REGION.poly")
BBOX=(${BBOX//,/ })
BOTTOM=${BBOX[0]}
@ -60,6 +62,8 @@ sed -i "s/\$LEFT/$LEFT/g" "$INPUTS/$REGION/sea.osm"
sed -i "s/\$TOP/$TOP/g" "$INPUTS/$REGION/sea.osm"
sed -i "s/\$RIGHT/$RIGHT/g" "$INPUTS/$REGION/sea.osm"
cd $INPUTS
CMD="$OSMOSIS --rb file=$INPUTS/$REGION/$REGION-latest.osm.pbf \
--rx file=$INPUTS/$REGION/sea.osm --s --m"
for f in $INPUTS/$REGION/${REGION}_land*.osm; do