protomaps / PMTiles

Cloud-optimized + compressed single-file tile archives for vector and raster maps
https://protomaps.com/docs/pmtiles/
BSD 3-Clause "New" or "Revised" License
2.02k stars 118 forks source link

(spec version 2) enforce sorted order for directories #27

Closed bdon closed 2 years ago

bdon commented 2 years ago

This should allow O(log n) lookup of tile membership in a directory without creating a copy.

bdon commented 2 years ago

This is now the default behavior of the python writer and https://github.com/protomaps/go-pmtiles , though is not officially part of the spec yet. Spec version 2 clients should be able to depend on this sorted assumption.

bdon commented 2 years ago

Other things to consider for v2:

bdon commented 2 years ago

possible v2:

bdon commented 2 years ago

possible v3:

bdon commented 2 years ago

possible v3:

bdon commented 2 years ago

Spec v2 is now described in the readme, changes in bold: https://github.com/protomaps/PMTiles#specification

  1. Mandatory sorted directory order
  2. Mandatory json in metadata with minzoom, maxzoom, bounds keys (center was omitted as the zoom level is somewhat arbitrary, you can calculate this yourself)

Closing this for now until we revisit for v3.