* Allow setting `BBOX` to be set in `.env` file Currently, the `BBOX` setting in `.env` is ignored for all areas except `planet`. On the other hand, the `planet` area is an overkill for any `BBOX` setting other than the default - `-180.0,-85.0511,180.0,85.0511`. With this PR, `quickstart.sh` would not override a modified `BBOX` value in `.env`. Also, this provides a way to avoid the pessimistic `BBOX` computation for `osmfr` extracts, as described in https://github.com/openmaptiles/openmaptiles-tools/pull/297#issuecomment-700792702 #### Currently - If the user does not do anything, `quickstart.sh` and `make generate-tiles` create an `mbtiles` file for the full extent of the data source. This applies to `planet` and other data sources. - If a user sets the `BBOX` value in `.env` and a `planet` data source is used, `quickstart.sh` and `make generate-tiles` create an `mbtiles` file for the extent set in the `.env` file. - If a user sets the `BBOX` value in `.env` and a non-`planet` data source is used, it is ignored - `quickstart.sh` and `make generate-tiles` create an `mbtiles` file for the full extent of the data source. #### Problem statement While users of a `planet` data source have a simple way to override the default extend of the tile generation, users of other data sources have no simple way of doing that. In fact, for such users the `BBOX` setting in the `.env` file is ignored and therefore misleading. #### Proposal - If the user does not do anything, `quickstart.sh` and `make generate-tiles` create an `mbtiles` file for the full extent of the data source. This applies to `planet` and other data sources. - If a user sets the `BBOX` value in `.env`, `quickstart.sh` and `make generate-tiles` create an `mbtiles` file for the extent set in the `.env` file. This applies to `planet` and other data sources.
50 lines
1.7 KiB
Bash
50 lines
1.7 KiB
Bash
# This file defines default environment variables for all images
|
|
|
|
# Layers definition and meta data
|
|
TILESET_FILE=openmaptiles.yaml
|
|
|
|
# Use 3-part patch version to ignore patch updates, e.g. 5.0.0
|
|
TOOLS_VERSION=5.2
|
|
|
|
# Make sure these values are in sync with the ones in .env-postgres file
|
|
PGDATABASE=openmaptiles
|
|
PGUSER=openmaptiles
|
|
PGPASSWORD=openmaptiles
|
|
PGHOST=postgres
|
|
PGPORT=5432
|
|
|
|
# By default, tile generation is done for the full extent of the given area.
|
|
# Modify BBOX below to overwrite it.
|
|
BBOX=-180.0,-85.0511,180.0,85.0511
|
|
|
|
# Which zooms to generate in make generate-tiles
|
|
MIN_ZOOM=0
|
|
MAX_ZOOM=7
|
|
|
|
# Use true (case sensitive) to allow data updates
|
|
DIFF_MODE=false
|
|
|
|
# Hide some output from Mapnik tile generation for clarity
|
|
FILTER_MAPNIK_OUTPUT=1
|
|
|
|
# Some area data like openstreetmap.fr can contain invalid references
|
|
# that must be cleaned up before using it for borders -- set it to true.
|
|
BORDERS_CLEANUP=false
|
|
|
|
# The current setup assumes this file is placed inside the data/ dir
|
|
MBTILES_FILE=tiles.mbtiles
|
|
# This is the current repl_config.json location, pre-configured in the tools Dockerfile
|
|
# Makefile and quickstart replace it with the dynamically generated one, but we keep it here in case some other method is used to run.
|
|
IMPOSM_CONFIG_FILE=/usr/src/app/config/repl_config.json
|
|
|
|
# import-borders temp files - set them here to defaults, and override in the Makefile based on the area
|
|
BORDERS_CLEANUP_FILE=data/borders/cleanup.pbf
|
|
BORDERS_PBF_FILE=data/borders/filtered.pbf
|
|
BORDERS_CSV_FILE=data/borders/lines.csv
|
|
|
|
# Number of parallel processes to use when importing sql files
|
|
MAX_PARALLEL_PSQL=5
|
|
|
|
# Number of parallel threads to use when generating vector map tiles
|
|
COPY_CONCURRENCY=10
|