kopia lustrzana https://github.com/openmaptiles/openmaptiles
Generate multiple parallelizable SQL files (#839)
Generate multiple SQL files to be imported in parallel. The files will respect the cross-layer dependencies, so they can be all ingested at the same time.pull/879/head
rodzic
d8095e8ee9
commit
e12f09ae57
4
Makefile
4
Makefile
|
@ -88,7 +88,7 @@ help:
|
|||
|
||||
.PHONY: init-dirs
|
||||
init-dirs:
|
||||
@mkdir -p build
|
||||
@mkdir -p build/sql
|
||||
@mkdir -p data
|
||||
@mkdir -p cache
|
||||
|
||||
|
@ -101,7 +101,7 @@ build/mapping.yaml: init-dirs
|
|||
|
||||
.PHONY: build-sql
|
||||
build-sql: init-dirs
|
||||
$(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools generate-sql openmaptiles.yaml > build/tileset.sql
|
||||
$(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools generate-sql openmaptiles.yaml --dir ./build/sql
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
|
|
@ -41,7 +41,7 @@ services:
|
|||
volumes:
|
||||
- .:/tileset
|
||||
- ./data:/import
|
||||
- ./build:/sql
|
||||
- ./build/sql:/sql
|
||||
- ./build:/mapping
|
||||
- ./cache:/cache
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ make clean
|
|||
|
||||
echo " "
|
||||
echo "-------------------------------------------------------------------------------------"
|
||||
echo "====> : Code generating from the layer definitions ( ./build/mapping.yaml; ./build/tileset.sql )"
|
||||
echo "====> : Code generating from the layer definitions ( ./build/mapping.yaml; ./build/sql/* )"
|
||||
echo " : The tool source code: https://github.com/openmaptiles/openmaptiles-tools "
|
||||
echo " : But we generate the tm2source, Imposm mappings and SQL functions from the layer definitions! "
|
||||
make all
|
||||
|
|
Ładowanie…
Reference in New Issue