Merge 71223b9c99 into 6088b9b37f
This commit is contained in:
commit
3b35bc3ebf
@ -68,6 +68,7 @@ RUN apt-get update \
|
|||||||
mapnik-utils \
|
mapnik-utils \
|
||||||
npm \
|
npm \
|
||||||
osm2pgsql \
|
osm2pgsql \
|
||||||
|
osmctools \
|
||||||
osmium-tool \
|
osmium-tool \
|
||||||
osmosis \
|
osmosis \
|
||||||
postgresql-$PG_VERSION \
|
postgresql-$PG_VERSION \
|
||||||
|
|||||||
14
run.sh
14
run.sh
@ -67,13 +67,19 @@ if [ "$1" == "import" ]; then
|
|||||||
DOWNLOAD_POLY="https://download.geofabrik.de/europe/luxembourg.poly"
|
DOWNLOAD_POLY="https://download.geofabrik.de/europe/luxembourg.poly"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${DOWNLOAD_POLY:-}" ]; then
|
||||||
|
echo "INFO: Download PBF-POLY file: $DOWNLOAD_POLY"
|
||||||
|
wget ${WGET_ARGS:-} "$DOWNLOAD_POLY" -O /data/region.poly
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${DOWNLOAD_PBF:-}" ]; then
|
if [ -n "${DOWNLOAD_PBF:-}" ]; then
|
||||||
echo "INFO: Download PBF file: $DOWNLOAD_PBF"
|
echo "INFO: Download PBF file: $DOWNLOAD_PBF"
|
||||||
wget ${WGET_ARGS:-} "$DOWNLOAD_PBF" -O /data/region.osm.pbf
|
if [ -f /data/region.poly ]; then
|
||||||
if [ -n "${DOWNLOAD_POLY:-}" ]; then
|
wget ${WGET_ARGS:-} "$DOWNLOAD_PBF" -O - | osmconvert - -B=/data/region.poly -o=/data/region.osm.pbf
|
||||||
echo "INFO: Download PBF-POLY file: $DOWNLOAD_POLY"
|
else
|
||||||
wget ${WGET_ARGS:-} "$DOWNLOAD_POLY" -O /data/region.poly
|
wget ${WGET_ARGS:-} "$DOWNLOAD_PBF" -O /data/region.osm.pbf
|
||||||
fi
|
fi
|
||||||
|
chown renderer: /data/region.osm.pbf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${UPDATES:-}" == "enabled" ] || [ "${UPDATES:-}" == "1" ]; then
|
if [ "${UPDATES:-}" == "enabled" ] || [ "${UPDATES:-}" == "1" ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user