This is a command line tool for querying a tileserver and getting a static dump of tile files within a given geometry. The code here can be used to
- extract and merge city geometries from shapefiles,
- determine the bbox for each geometry,
- determine the tiles necessary to span their bbox at different zoom levels, and
- query the tiles from an OpenMapTiles server to generate a folder tree with the tiles organized by zoom level.
- push the tiles to a dev server
The repo is part of a project to build an end-to-end encrypted mapping app. In the beta stage, the app will include four cities. For this app, the above steps are executed with the following steps:
python src/beta_data_merger.pypython cli.py gentiletrees --region betapython cli.py itertileserver --region beta --city_key atlanta_gapython cli.py uploadall