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

View File

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