-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement quick tile generation with imputing (#383)
Improve `generate-tiles` script. By default, this script does NOT change current tile generation behavior except for two things: * it will take into account the min/max zooms as defined in the tileset yaml file, and pass them to the `tilelive-pgquery`, so that the tilelive info block is correctly generated. * it will run mbtiles-tools meta-generate at the end to update the info block with the actual zoom ranges and other tileset yaml data (this step is currently done by OMT makefile) ### New functionality If MID_ZOOM env variable is set, this script will first generate all tiles from MIN_ZOOM to MID_ZOOM. Afterwards, the script will generate one zoom level at a time, making sure to only generate non-empty tiles. A non-empty tile is a tile that has some data in the previous zoom. All other tiles will be imputed using "mbtiles-tools impute" command. Lastly, this also changes the version to 0.0.0 to avoid accidental publishing (the workflow will automatically fix this when publishing)
- Loading branch information
Showing
3 changed files
with
92 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,7 +124,7 @@ RUN set -eux ;\ | |
npm install -g \ | ||
@mapbox/[email protected] \ | ||
@mapbox/[email protected] \ | ||
tilelive-pgquery@1.1.0 ;\ | ||
tilelive-pgquery@1.2.0 ;\ | ||
\ | ||
/bin/bash -c 'echo ""; echo ""; echo "##### Cleaning up"' >&2 ;\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '5.3.2' | ||
__version__ = '0.0.0' |