Mbtiles, python 3.0+, and docker support

This commit is contained in:
Ali Ashraf
2020-04-27 00:28:49 +05:00
parent 69f48a75ca
commit 4e79189c70
89 changed files with 909 additions and 233 deletions
+16 -3
View File
@@ -16,11 +16,21 @@ This tiny python based script allows you to download map tiles from Google, Bing
python server.py
```
If your web browser doesn't open a map afterwards, navigate to `UI\index.htm` and open it manually. The output tiles will be in the `output\{timestamp}\` directory by default.
Then open up your web browser and navigate to `http://localhost:8080`. The output map tiles will be in the `output\{timestamp}\` directory by default.
## Requirements
Needs **Python 3.5** and a modern web browser. Other Python versions could work but aren't yet tested.
Needs **Python 3.0+**, [Pillow](https://pypi.org/project/Pillow/) library, and a modern web browser. Other Python versions could work but aren't yet tested. If you can't install manually, try docker for easy setup.
## Via Docker
Docker is a pretty simple way to install and contain applications. [Install Docker on your system](https://www.docker.com/products/docker-desktop), and paste this on your command line:
```sh
docker run -v $PWD/output:/app/output/ -p 8080:8080 -it aliashraf/map-tiles-downloader
```
Now open the browser and head over to `http://localhost:8080`. The downloaded maps will be stored in the `output` directory.
## Purpose
@@ -31,6 +41,9 @@ I design map related things as a hobby, and often I have to work with offline ma
- Super easy to use map UI to select region and options
- Multi-threading to download tiles in parallel
- Cross platform, use any OS as long as it has Python and a browser
- Dockerfile available for easy setup
- Supports 2x/Hi-Res/Retina/512x512 tiles my merging multiple tiles
- Supports downloading to file as well as mbtile format
- Select multiple zoom levels in one go
- Ability to ignore tiles already downloaded
- Specify any custom file name format
@@ -50,4 +63,4 @@ For latest releases and announcements, check out my site: [aliashraf.net](http:/
This software is released under the [MIT License](LICENSE). Please read LICENSE for information on the
software availability and distribution.
Copyright (c) 2018 [Ali Ashraf](http://aliashraf.net)
Copyright (c) 2020 [Ali Ashraf](http://aliashraf.net)