larsmaxfield / maplibre-gl-js

MapLibre GL JS - Interactive vector tile maps in WebGL2
https://maplibre.org/maplibre-gl-js/docs/
Other
0 stars 0 forks source link

[Investigate] Single file sources (geoTIFF, PMTiles, etc.) #19

Open larsmaxfield opened 4 months ago

larsmaxfield commented 4 months ago

Instead of relying on tiled images in a folder of folders of folders, investigate using a single file source like geoTIFF, PMTiles, or another format.

larsmaxfield commented 4 months ago

https://news.ycombinator.com/item?id=36659003

larsmaxfield commented 4 months ago

https://github.com/protomaps/PMTiles/issues/338#issuecomment-1934497655

What would have made that workflow simpler is a cli tool like pmtiles convert but instead of converting mbtiles into pmtiles it would take e.g. a slippy map tile hierarchy as in z/x/y.ext or a GeoTIF raster and turn it into a pmtiles file.

Isn't it already kinda simple by the use of mb-util which allow to convert tiles file tree to mbtiles, then converting it to pmtiles with pmtiles convert?

$ mb-util my-tiles-root-directory my_tiles.mbtiles
$ pmtiles convert my_tiles.mbtiles my_tiles.pmtiles
larsmaxfield commented 4 months ago

Try creating a PMTiles file from a directory of slippy map tiles z/x/y.ext using the two-part process:

$ mb-util my-tiles-root-directory my_tiles.mbtiles
$ pmtiles convert my_tiles.mbtiles my_tiles.pmtiles
larsmaxfield commented 4 months ago

PMTiles is a success