Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Commit

Permalink
Add import diff script
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmartinelli committed Jan 16, 2017
1 parent 24b0a39 commit 48f68b6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions import_diff.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48f68b6

Please sign in to comment.