Skip to content

Commit 4eb8feb

Browse files
nyurikTomPohys
andauthored
Use tools v6.1, improve .env docs (openmaptiles#1281)
* Add info about using MID_ZOOM to optimize tile generation * Remove params for generation that are now automatically detected Co-authored-by: Tomas Pohanka <[email protected]>
1 parent 2073962 commit 4eb8feb

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.env

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
TILESET_FILE=openmaptiles.yaml
55

66
# Use 3-part patch version to ignore patch updates, e.g. 5.0.0
7-
TOOLS_VERSION=6.0
7+
TOOLS_VERSION=6.1
88

99
# Make sure these values are in sync with the ones in .env-postgres file
1010
PGDATABASE=openmaptiles
@@ -18,16 +18,17 @@ PGPORT=5432
1818
# By default, the Makefile will use the content of data/$(area).bbox file if it exists.
1919
BBOX=-180.0,-85.0511,180.0,85.0511
2020

21-
# Which zooms to generate in make generate-tiles
21+
# Which zooms to generate with make generate-tiles-pg
2222
MIN_ZOOM=0
2323
MAX_ZOOM=7
2424

25+
# `MID_ZOOM` setting only works with `make generate-tiles-pg` command. Make sure MID_ZOOM < MAX_ZOOM.
26+
# See https://github.com/openmaptiles/openmaptiles-tools/pull/383
27+
# MID_ZOOM=11
28+
2529
# Use true (case sensitive) to allow data updates
2630
DIFF_MODE=false
2731

28-
# Hide some output from Mapnik tile generation for clarity
29-
FILTER_MAPNIK_OUTPUT=1
30-
3132
# Some area data like openstreetmap.fr can contain invalid references
3233
# that must be cleaned up before using it for borders -- set it to true.
3334
BORDERS_CLEANUP=false
@@ -49,7 +50,5 @@ MAX_PARALLEL_PSQL=5
4950
# Number of parallel threads to use when generating vector map tiles
5051
COPY_CONCURRENCY=10
5152

52-
# Variables for generate tiles using PGquery
53+
# Variables for generate tiles using tilelive-pgquery
5354
PGHOSTS_LIST=
54-
NO_GZIP=1
55-
USE_KEY_COLUMN=1

.github/workflows/performance.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,7 @@ jobs:
163163
# Get database total size, in MB
164164
# Once Makefile has a few more improvements, we can use this approach instead:
165165
# echo $'\\set QUIET on \\a \\x off \\t \\\\ select pg_database_size(current_database())/1024/1024;' | make -s psql
166-
if grep -qE '^ import-osm:$' docker-compose.yml; then
167-
# old version using dedicated import-osm docker image
168-
DB_SIZE_MB=$(docker-compose run --rm -u $(id -u):$(id -g) import-osm ./psql.sh -qtAc 'select pg_database_size(current_database())/1024/1024;')
169-
else
170-
DB_SIZE_MB=$(docker-compose run --rm -u $(id -u):$(id -g) openmaptiles-tools psql.sh -qtAc 'select pg_database_size(current_database())/1024/1024;')
171-
fi
166+
DB_SIZE_MB=$(docker-compose run --rm -u $(id -u):$(id -g) openmaptiles-tools psql.sh -qtAc 'select pg_database_size(current_database())/1024/1024;')
172167
docker-compose run --rm -u $(id -u):$(id -g) openmaptiles-tools pg_dump --schema-only > "${PROFILE_DIR}/schema.sql"
173168
echo "$DB_SIZE_MB" > "${PROFILE_DIR}/db_size.tsv"
174169
}
@@ -188,6 +183,7 @@ jobs:
188183
git reset --hard ${CURRENT_SHA}^1
189184
fi
190185
186+
docker-compose pull
191187
PROFILE_DIR=../perf_cache
192188
create_db
193189
if [ ! -f ../ci_cache/wikidata-cache.json ]; then
@@ -209,6 +205,7 @@ jobs:
209205
echo "Found cached performance results"
210206
fi
211207
208+
docker-compose pull
212209
pushd ../perf_cache
213210
echo "Should be in perf_cache"
214211
pwd

0 commit comments

Comments
 (0)