Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #26 from valhalla/cut_tiles
Browse files Browse the repository at this point in the history
cut_tiles update
  • Loading branch information
gknisely authored Oct 3, 2017
2 parents 2b8b762 + 0e00a52 commit 841abd7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/cut_tiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ if [[ "$INCLUDE_EXTRAS" == "true" ]]; then
cp_stamp ${DATA_DIR}/$(basename ${admin_file}) ${stamp}
cp_stamp ${DATA_DIR}/$(basename ${timezone_file}) ${stamp}
else
rm -f ${admin_file}
rm -f ${timezone_file}
rm -f maproulette_tasks.geojson
fi

Expand All @@ -210,6 +208,7 @@ if [ "$BUILD_GEOJSON_OSMLR" == "true" ] && [ -n "$S3_SEGMENT_PATH" ]; then
geojson_osmlr \
-i ${OSMLR_DIR} \
-o ${TILES_DIR}/osmlr \
-t 1 \
--config ${CONF_FILE}
catch_exception

Expand All @@ -228,6 +227,13 @@ mv ${TILES_DIR}/1 ${CUR_PLANET_DIR}/1
catch_exception
mv ${TILES_DIR}/2 ${CUR_PLANET_DIR}/2
catch_exception

#rm admin and tz after they have been included in the tar.
if [[ "$INCLUDE_EXTRAS" == "false" ]]; then
rm -f ${admin_file}
rm -f ${timezone_file}
fi

popd
catch_exception
popd
Expand Down

0 comments on commit 841abd7

Please sign in to comment.