Hacky workflow to work together with omtgen.py, imposm3 and import schema
This commit is contained in:
parent
667d604dac
commit
5a525e64c3
@ -21,7 +21,7 @@ services:
|
|||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/import
|
- ./data:/import
|
||||||
- ./ClearTables:/opt/cleartables
|
- ./:/mapping
|
||||||
import-natural-earth:
|
import-natural-earth:
|
||||||
image: "osm2vectortiles/import-natural-earth"
|
image: "osm2vectortiles/import-natural-earth"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
|||||||
@ -11,7 +11,7 @@ ENV VT_UTIL_DIR=/opt/postgis-vt-util \
|
|||||||
|
|
||||||
RUN mkdir -p "$VT_UTIL_DIR" \
|
RUN mkdir -p "$VT_UTIL_DIR" \
|
||||||
&& wget -P "$VT_UTIL_DIR" --quiet "$VT_UTIL_URL"
|
&& wget -P "$VT_UTIL_DIR" --quiet "$VT_UTIL_URL"
|
||||||
|
ENV GENERATED_SQL_FILE=/usr/src/app/gen.sql
|
||||||
COPY . /usr/src/app/
|
COPY . /usr/src/app/
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
CMD ["./create_schema.sh"]
|
CMD ["./create_schema.sh"]
|
||||||
|
|||||||
@ -16,16 +16,7 @@ function exec_psql_file() {
|
|||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
exec_psql_file "$VT_UTIL_DIR/postgis-vt-util.sql"
|
exec_psql_file "$VT_UTIL_DIR/postgis-vt-util.sql"
|
||||||
exec_psql_file "layers/water.sql"
|
exec_psql_file "$GENERATED_SQL_FILE"
|
||||||
exec_psql_file "layers/building.sql"
|
|
||||||
exec_psql_file "layers/boundary.sql"
|
|
||||||
exec_psql_file "layers/road.sql"
|
|
||||||
exec_psql_file "layers/ice.sql"
|
|
||||||
exec_psql_file "layers/urban.sql"
|
|
||||||
exec_psql_file "layers/place.sql"
|
|
||||||
exec_psql_file "layers/country.sql"
|
|
||||||
exec_psql_file "layers/state.sql"
|
|
||||||
exec_psql_file "layers/rail.sql"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user