mactrem / com-tiles

Streamable and read optimized file archive for hosting map tiles at global scale on a cloud object storage
MIT License
94 stars 12 forks source link

PMTiles Comparison #18

Open koufopoulosf opened 1 year ago

koufopoulosf commented 1 year ago

Hello,

I would be really interested to see a new comparison between PMTiles and COMTiles as I haven't found any recent benchmark.

If anyone has any suggestion as to which one performs better, please let me know. I would really appreciate it.

Thanks!

Best Regards,

Filippos

mactrem commented 1 year ago

Hi,

because of the strong tooling support (Planetiler, Tippecanoe, serverless tileserver, ...) and wide adoption i would recommend to use PMTiles in production. Especially the integration in such generators are currently missing for COMTiles, which makes PMTiles easier to work with. The focus of COMTiles is currently more on the research of how to further optimize cloud optimized tile archives (especially the index design).

koufopoulosf commented 1 year ago

Hi,

Thanks for your detailed reply!

Would you recommend PMTiles over MBTiles for a production and scalable environment?

Thanks!!

mactrem commented 1 year ago

It depends on your use case and deployment. If you want to deploy your vector tilesets in the cloud, PMTiles is the way to go, as it can significantly reduce costs and simplify the deployment.

I also think there will be less need in the future for the MBTiles format, even for the non cloud native use cases when a dedicated tileserver is used. Performance should be equal or probably even better for accessing tiles from a local file system stored in a PMTiles archive compared to a MBTiles database. The main advantage of MBTiles is the support of per tile updates as it is based on a SQLite database, while with MBTiles the archive has to be basically fully regenerated on updates. If you do not update daily, which in my experience is the case with most projects, this should not be a problem.

koufopoulosf commented 1 year ago

So I guess using PMTiles ( maybe with AmazonS3 ? ) is the way to go :)

But to be honest, I have not yet found a way to customize PMTiles and display them like these MBTiles here: https://maps.ckochis.com/styles/basic-preview/?vector

Do you happen to know (or have made) any tutorial on how to customize PMTiles and serve them as a basemap?

Thank you!

mactrem commented 1 year ago

I don't' know. The storage of the archive on a Cloudflare R2 is also particularly interesting, since there are no egress costs.

koufopoulosf commented 1 year ago

I mean, here: https://www.youtube.com/watch?v=oqyQ3wo7n18

You have an index-pmtiles.html. Could you please share that along with the steps taht you did to style the map? Or it was like that by default? I would be really interested to know.

Thank you.