Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ export PBF2JSON_FILE="${PBF_FILES[0]}"
export POLYLINE_FILE="${POLYLINE_FILES[0]}"

# run the build
exec ./script/build.sh
exec ./script/build.sh $@
33 changes: 21 additions & 12 deletions script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,27 @@ if type pigz >/dev/null
then pigz -k -c --best "$BUILDDIR/street.db" > "$BUILDDIR/street.db.gz";
else gzip -c --best "$BUILDDIR/street.db" > "$BUILDDIR/street.db.gz";
fi

# run openaddresses conflation
echo "- conflating openaddresses"
$DIR/conflate_oa.sh;

# run openstreetmap conflation
echo "- conflating openstreetmap"
$DIR/conflate_osm.sh;

# run tiger conflation
echo "- conflating tiger"
$DIR/conflate_tiger.sh;
#joined catches all additional arguments given to the script into a single string
joined="$*"
if [[ "$joined" =~ "oa" || $# -eq 0 ]]; then
# run openaddresses conflation
echo "- conflating openaddresses"
$DIR/conflate_oa.sh;
fi
if [[ "$joined" =~ "osm" || $# -eq 0 ]]; then
# run openstreetmap conflation
echo "- conflating openstreetmap"
$DIR/conflate_osm.sh;
fi
if [[ "$joined" =~ "tiger" || $# -eq 0 ]]; then
# run tiger conflation
echo "- conflating tiger"
$DIR/conflate_tiger.sh;
fi
#If we don't hit any of the above, but additional arguments were given we don't run any conflation and exit with 22.
if [[ ! "$joined" =~ "tiger" ]] && [[ ! "$joined" =~ "osm" ]] && [[ ! "$joined" =~ "oa" ]] && [[ $# -gt 0 ]]; then
echo "No valid conflation source specified, running no conflations"; exit 22;
fi

# run vertex interpolation
echo "- interpolating vertices"
Expand Down