diff --git a/import_diff.sh b/import_diff.sh new file mode 100755 index 0000000..3f51e74 --- /dev/null +++ b/import_diff.sh @@ -0,0 +1,19 @@ +#!/bin/bash +set -o errexit +set -o pipefail +set -o nounset + +readonly PG_CONNECT="postgis://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" + +function import_diff() { + imposm3 diff \ + -connection "$PG_CONNECT" \ + -mapping "$MAPPING_YAML" \ + -cachedir "$IMPOSM_CACHE_DIR" \ + -diffdir "$IMPORT_DIR" \ + -expiretiles-dir "$IMPORT_DIR" \ + -expiretiles-zoom 14 \ + -config config.json "$IMPORT_DIR/changes.osc.gz" +} + +import_diff