mirror of
https://github.com/alfanhui/mbtilesToPngs.git
synced 2025-05-29 05:10:11 -07:00
Update README.md
This commit is contained in:
parent
017f345dc4
commit
4d386c2152
18
README.md
18
README.md
@ -1,33 +1,29 @@
|
|||||||
# mbtilesToPngs
|
# mbtilesToPngs
|
||||||
This python program takes .mbtiles files and extracts the images and places them into the correct directory structure `/${z}/${x}/${y}.png` that mimicks OpenStreetMap URI tile structure.
|
This python program takes .mbtiles files and extracts the images and places them into the correct directory structure `/${z}/${x}/${y}.png` that mimicks OpenStreetMap URI tile structure. This is to allow for offline use of OpenStreetMaps, and I will be using [Flutter_Map](https://github.com/apptreesoftware/flutter_map) along with my own images for offline maps. <br>
|
||||||
This is to allow for offline use of OpenStreetMaps, and I will be using [Flutter_Map](https://github.com/apptreesoftware/flutter_map) along with my own images for offline maps.
|
|
||||||
|
|
||||||
## Where to get .mbtiles?
|
## Where to get .mbtiles?
|
||||||
OpenStreetMap says: Apart from very limited testing purposes, you should not use the tiles supplied by OpenStreetMap.org itself. OpenStreetMap is a volunteer-run non-profit body and cannot supply tiles for large-scale commercial use. Rather, you should use a third party provider that makes tiles from OSM data, or generate your own.
|
OpenStreetMap says: Apart from very limited testing purposes, you should not use the tiles supplied by OpenStreetMap.org itself. OpenStreetMap is a volunteer-run non-profit body and cannot supply tiles for large-scale commercial use. Rather, you should use a third party provider that makes tiles from OSM data, or generate your own.<br>
|
||||||
|
|
||||||
[A Guide to generate your own](https://tilemill-project.github.io/tilemill/docs/guides/osm-bright-mac-quickstart/)
|
[A Guide to generate your own](https://tilemill-project.github.io/tilemill/docs/guides/osm-bright-mac-quickstart/)
|
||||||
|
|
||||||
This guide will go through the steps for compiling map data, downloading a specific area, customise the map, then export to mbtile.
|
This guide will go through the steps for compiling map data, downloading a specific area, customise the map, then export to mbtile. Warning! For Mac, when you install TileMill.app, it currently fails to start. Go into *TileMill* > *Updates Preference* > *check Install* Developer Builds.<br>
|
||||||
|
|
||||||
Warning! For Mac, when you install TileMill.app, it currently fails to start. Go into *TileMill* > *Updates Preference* > *check Install* Developer Builds.
|
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
Make sure you have python3 install.
|
Make sure you have python3 install.<br>
|
||||||
|
|
||||||
`python3 mbtilesToPngs.py -i path_to_mbfiles`
|
`python3 mbtilesToPngs.py -i path_to_mbfiles`
|
||||||
|
|
||||||
for example, I did:
|
for example, I did:<br>
|
||||||
**python3 sqliteReader.py -i ./OSMBright.mbtiles**
|
**python3 sqliteReader.py -i ./OSMBright.mbtiles**
|
||||||
|
|
||||||
|
|
||||||
[MBTiles](https://wiki.openstreetmap.org/wiki/MBTiles)
|
[MBTiles](https://wiki.openstreetmap.org/wiki/MBTiles)<br>
|
||||||
[Tiles](https://wiki.openstreetmap.org/wiki/Tiles)
|
[Tiles](https://wiki.openstreetmap.org/wiki/Tiles)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
This project is licensed under the [MIT License](LICENSE.md)
|
This project is licensed under the [MIT License](LICENSE.md)
|
||||||
|
|
||||||
## Acknowledgments
|
## Acknowledgments
|
||||||
Thank you © OpenStreetMap (and) contributors, ODbL for the data!
|
Thank you © OpenStreetMap (and) contributors, ODbL for the data! <br>
|
||||||
Thank you AppTreeSoftware for [Flutter_Map](https://github.com/apptreesoftware/flutter_map)
|
Thank you AppTreeSoftware for [Flutter_Map](https://github.com/apptreesoftware/flutter_map)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user