From 6a4124528894e6144f9e73a243b5e07f20e97f02 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Wed, 20 May 2020 13:52:18 -0400 Subject: [PATCH] Generate getmvt() func with build-sql (#880) Add `getmvt` sql function as part of the build-sql make step. The function will be imported into PG during the `import-sql` step after all other SQL is done. This is a noop for the `generate-tiles` approach. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c1d78805..ecdba20b 100644 --- a/Makefile +++ b/Makefile @@ -101,7 +101,9 @@ build/mapping.yaml: init-dirs .PHONY: build-sql build-sql: init-dirs - $(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools generate-sql openmaptiles.yaml --dir ./build/sql + $(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools bash -c \ + 'generate-sql openmaptiles.yaml --dir ./build/sql \ + && generate-sqltomvt openmaptiles.yaml --key --postgis-ver 2.4.8 --function --fname=getmvt >> "./build/sql/run_last.sql"' .PHONY: clean clean: