4 ms·
Is there a standard folder tree of tiles -> PMTiles archiver or is that the wrong question to be asking?
by jddj 4y ago
Is there a standard folder tree of tiles -> PMTiles archiver or is that the wrong question to be asking?
- lukeqsee 4y agoI don't think so. There's this: https://github.com/protomaps/go-pmtiles https://github.com/protomaps/go-pmtiles to get from MBTiles and there's a few xyz folder tree tools to get mbtiles from that structure (e.g., https://pypi.org/project/mbutil/ https://pypi.org/project/mbutil/). So you can get there, but I don't know of a good straight-line right now.
- jddj 4y agoThanks a lot. I developed and support a standalone desktop application which contains customer-specific tiled maps, and it can get unwieldy. A pivot at some point to these types of archives is an option, but I'd like to roll forward existing customers as well.
- bdon 4y agoIf you have access to SQLite in your desktop application then there isn't any big wins from using PMTiles over MBTiles; PMTiles does have some special design around tile-deduplication but this is possible in MBTiles too by using table views.
- bdon 4y agoThere isn't a tool to do that right now. It could be a fit in either https://github.com/protomaps/go-pmtiles https://github.com/protomaps/go-pmtiles or https://github.com/protomaps/PMTiles/tree/main/python https://github.com/protomaps/PMTiles/tree/main/python - the Go program is faster and more production ready at this point. I imagine if folders are working for you the quantity of tiles doesn't number into the millions, so the Python program might be sufficient. Feel free to open an issue.
- jddj 4y agoNot in the millions no - 100k would be a reasonable order of magnitude. I'll take a look to see if MBTiles will get me there and if not I'll come back to these. Thanks heaps