mapbox / node-mbtiles

mbtiles utility, renderer, and storage backend for tilelive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistent scheme in getInfo

hannesj opened this issue · comments

Currently mbtiles always reports it's scheme as tms, even though it swaps the z coordinate in getTile in order to serve the tiles in xyz scheme.

Thanks @hannesj for reporting this. Apologies for the delay.

@mapbox/core-tech @kkaefer this and the PR #81 seem pretty valid, considering when putting and getting tiles, they are in XYZ but they are stored as TMS which the mbtiles-spec calls for. Should the metadata field reflect the storage format or the retrieval format?

👍 to reporting scheme as xyz. Though I'm not familiar off hand with what tools respond to this scheme metadata, we should double check whether tilelive or other consumers might break.