From fceba638ba1c3499830430f626501602d0cb859d Mon Sep 17 00:00:00 2001 From: "tompohys@gmail.com" Date: Tue, 20 Feb 2024 14:22:12 +0100 Subject: [PATCH] Info about how to change output file name. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ebfb8536..963a8a09 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ make build-style Now you are ready to **generate the vector tiles**. By default, `./.env` specifies the entire planet BBOX for zooms 0-7, but running `generate-bbox-file` will analyze the data file and set the `BBOX` param to limit tile generation. ``` -make generate-bbox-file # compute data bbox -- not needed for the whole planet +make generate-bbox-file # compute data bbox -- not needed for the whole planet or for downloaded area by `make download` make generate-tiles-pg # generate tiles ``` @@ -175,11 +175,13 @@ make download area=albania # download albania .osm.pbf file -- can be skipped i make import-osm # import data into postgres make import-wikidata # import Wikidata make import-sql # create / import sql functions -make generate-bbox-file # compute data bbox -- not needed for the whole planet +make generate-bbox-file # compute data bbox -- not needed for the whole planet or for downloaded area by `make download` make generate-tiles-pg # generate tiles ``` Instead of calling `make download area=albania` you can add a .osm.pbf file in the `data` folder `openmaptiles/data/your_area_file.osm.pbf` +Changing name of the output filename, you can change variable `MBTILES_FILE` in `.env` file or set up environment variable `MBTILES_FILE` before run ./quickstart.sh or `make generate-tiles-pg` (e.g. `MBTILES_FILENAME=monaco.mbtiles ./quickstart.sh monaco`) + ## License