2020-04-22 06:48:57 +00:00
|
|
|
# This file defines default environment variables for all images
|
|
|
|
|
2020-08-27 16:43:09 +00:00
|
|
|
# Layers definition and meta data
|
|
|
|
TILESET_FILE=openmaptiles.yaml
|
|
|
|
|
2022-10-07 06:58:46 +00:00
|
|
|
# Use 3-part patch version to ignore patch updates, e.g. 7.0.0
|
2024-02-26 13:05:42 +00:00
|
|
|
TOOLS_VERSION=7.1
|
2020-04-22 06:48:57 +00:00
|
|
|
|
Upgrade to tools v5 - rm import-osm, new downloader... (#785)
Update to tools v5. See https://github.com/openmaptiles/openmaptiles-tools/releases/tag/v5.0.0 for the list of all changes. Other OMT-repo specific changes:
* removes `import-osm` docker usage, replacing it with `openmaptiles-tools`
* quickstart builds faster because it uses postgres with preloaded water, natural earth, and lake centerlines tables.
### Makefile targets
* `tools-dev` will open a shell in a docker to experiment and debug (instead of `import-sql-dev` and `import-osm-dev`)
* separated `start-maputnik` from `start-postserve`
* renamed `clean-docker` into `db-destroy` to make it more explicit
* cleaner `db-start`, `db-stop`, `db-destroy` targets
* `db-start-preloaded` is the same as `db-start`, except that it uses `postgis-preloaded` -- an image with preloaded water, natural-earth, and lake centerline data
* `db-start` will not recreate the container if it already exists -- this way if it was started as preloaded, it will not be rebuilt.
* better output messages
### Quickstart
* uses `postgis-preloaded` image by default to make quickstart quicker. To start with a clean db, pass 2 parameters to quickstart, e.g. `./quickstart.sh albania empty`
2020-05-05 15:53:09 +00:00
|
|
|
# Make sure these values are in sync with the ones in .env-postgres file
|
|
|
|
PGDATABASE=openmaptiles
|
|
|
|
PGUSER=openmaptiles
|
|
|
|
PGPASSWORD=openmaptiles
|
|
|
|
PGHOST=postgres
|
|
|
|
PGPORT=5432
|
2020-04-22 06:48:57 +00:00
|
|
|
|
2020-10-26 16:39:49 +00:00
|
|
|
# BBOX may get overwritten by the computed bbox of the specific area:
|
|
|
|
# make generate-bbox-file
|
|
|
|
# By default, the Makefile will use the content of data/$(area).bbox file if it exists.
|
2018-07-27 09:04:08 +00:00
|
|
|
BBOX=-180.0,-85.0511,180.0,85.0511
|
2020-06-04 19:45:04 +00:00
|
|
|
|
2021-11-26 10:31:01 +00:00
|
|
|
# Which zooms to generate with make generate-tiles-pg
|
2018-07-27 09:04:08 +00:00
|
|
|
MIN_ZOOM=0
|
2020-06-04 19:45:04 +00:00
|
|
|
MAX_ZOOM=7
|
|
|
|
|
2021-11-26 10:31:01 +00:00
|
|
|
# `MID_ZOOM` setting only works with `make generate-tiles-pg` command. Make sure MID_ZOOM < MAX_ZOOM.
|
|
|
|
# See https://github.com/openmaptiles/openmaptiles-tools/pull/383
|
|
|
|
# MID_ZOOM=11
|
|
|
|
|
2020-06-04 19:45:04 +00:00
|
|
|
# Use true (case sensitive) to allow data updates
|
|
|
|
DIFF_MODE=false
|
2020-05-24 20:04:05 +00:00
|
|
|
|
Rework download area support (#908)
Closes #904
* Make all data-related targets like `download*`, `import-osm`, `import-borders`, and `generate-tiles` into `area`-aware -- making it possible for multiple data files to coexist inside the `./data` dir.
* Add `make download area=... [url=...]` command to automatically download any kind of area by checking Geofabrik, BBBike, and OSM.fr, optionally from a custom URL. Supports `area=planet` too.
* Do not re-download area with `make download-*` if it already exists.
* Automatically rename `<area>-latest.osm.pbf` into `<area>.osm.pbf`
* If `area=...` parameter is not given to `make`, see if there is exactly one `*.osm.pbf` file, and if so, use `*` as the `area`.
* Configure many variables in the .env file, overriding the defaults in tools
* If `<area>.osm.pbf` exists, but `<area>.dc-config.pbf` is missing, generate it using `download-osm make-dc` command.
Also:
* closes #614
* closes #647
* partially addresses #261
2020-06-03 19:37:45 +00:00
|
|
|
# The current setup assumes this file is placed inside the data/ dir
|
|
|
|
MBTILES_FILE=tiles.mbtiles
|
2024-02-21 12:40:46 +00:00
|
|
|
|
Rework download area support (#908)
Closes #904
* Make all data-related targets like `download*`, `import-osm`, `import-borders`, and `generate-tiles` into `area`-aware -- making it possible for multiple data files to coexist inside the `./data` dir.
* Add `make download area=... [url=...]` command to automatically download any kind of area by checking Geofabrik, BBBike, and OSM.fr, optionally from a custom URL. Supports `area=planet` too.
* Do not re-download area with `make download-*` if it already exists.
* Automatically rename `<area>-latest.osm.pbf` into `<area>.osm.pbf`
* If `area=...` parameter is not given to `make`, see if there is exactly one `*.osm.pbf` file, and if so, use `*` as the `area`.
* Configure many variables in the .env file, overriding the defaults in tools
* If `<area>.osm.pbf` exists, but `<area>.dc-config.pbf` is missing, generate it using `download-osm make-dc` command.
Also:
* closes #614
* closes #647
* partially addresses #261
2020-06-03 19:37:45 +00:00
|
|
|
# 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
|
|
|
|
|
2020-06-09 13:53:02 +00:00
|
|
|
# Number of parallel processes to use when importing sql files
|
|
|
|
MAX_PARALLEL_PSQL=5
|
2020-09-01 11:46:53 +00:00
|
|
|
|
|
|
|
# Number of parallel threads to use when generating vector map tiles
|
|
|
|
COPY_CONCURRENCY=10
|
2020-12-08 13:56:01 +00:00
|
|
|
|
2021-11-26 10:31:01 +00:00
|
|
|
# Variables for generate tiles using tilelive-pgquery
|
2020-12-08 13:56:01 +00:00
|
|
|
PGHOSTS_LIST=
|