felt / tippecanoe

Build vector tilesets from large collections of GeoJSON features.
BSD 2-Clause "Simplified" License
874 stars 76 forks source link

Creating PMTiles with the `-pC` still creates gzipped metadata #236

Open CraigglesO opened 2 months ago

CraigglesO commented 2 months ago

Title says it all, using PMTiles default example with the -pC flag included:

tippecanoe -pC -zg --projection=EPSG:4326 -o cb_2018_us_zcta510_500k_nolimit.pmtiles -l zcta cb_2018_us_zcta510_500k.json

I don't plan on supporting browser managed deflate, so it would be cool to ensure the metadata and directories is not gzipped by default either.

bdon commented 2 months ago

in PMTiles the compression for tiles is specified independently of directories/metadata, so this is working as intended.

PMTiles clients are expected to have access to a decompressor, whether that's built-in DecompressionStream or https://github.com/101arrowz/fflate

CraigglesO commented 2 months ago

Ah, so I am using fflate currently and it's pretty cheap which is nice, but I guess what I'm saying is I'd like the ability to use tippecanoe and add a flag that doesn't allow compression at all including PMTiles metadata. If tippecanoe doesn't want to do this though that's fine, it would just be a good feature for me.