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

Compression (spec v3) #41

Closed bdon closed 2 years ago

bdon commented 2 years ago

Options:

Use cases:

bdon commented 2 years ago

add tile type as a required metadata field (png, jpg, mvt, etc)

bdon commented 2 years ago

Flaws in current design:

New design:

Unsolved problems:

bdon commented 2 years ago

target metric: (total # of tiles in archive / size of index in bytes) = average number of bytes per tile entry Currently this is 17, 3-5 bytes per entry is what my experimental results are...can we do better?

bdon commented 2 years ago

Parquet encodings: https://parquet.apache.org/docs/file-format/data-pages/encodings/

bdon commented 2 years ago
bdon commented 2 years ago
bdon commented 2 years ago
bdon commented 2 years ago

Consider if we should add leaders/trailers: https://gdal.org/drivers/raster/cog.html

the COG 16KB assumptions seem good

bdon commented 2 years ago

Ghost sections / extensions, example: storing offset->hash in a ghost section to enable efficient diffing of two PMTiles archives