Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow TileJSON spec for metadata table #53

Closed
rubenpoppe opened this issue Dec 26, 2022 · 3 comments
Closed

Follow TileJSON spec for metadata table #53

rubenpoppe opened this issue Dec 26, 2022 · 3 comments

Comments

@rubenpoppe
Copy link

In #44 a model for the metadata table was added, but vector_layers is part of the json row. Is there a specific reason for this? The 3.0 TileJSON spec defines vector_layers to be a top level field. And in none of the other versions the json field is a thing. The mbtiles tilelive seems to acknowledge this and transforms the data.

@bdon
Copy link
Contributor

bdon commented Dec 27, 2022

vector_layers as part of the json key is part of the MBTiles spec. https://github.com/mapbox/mbtiles-spec/blob/master/1.3/spec.md#vector_layers

Any program that presents TileJSON based on MBTiles needs to transform the metadata table slightly. The data structure for Tippecanoe follows MBTiles because that's what the existing MBTiles and dirtiles expect, and how the test suite is organized. Is there a specific use case where the internal data model needs to be different?

@rubenpoppe
Copy link
Author

Oh, I see. I was just wondering why it was that way. Thanks for clearing it up!

@reyemtm
Copy link

reyemtm commented Jun 13, 2024

bringing this back up - the use case is - run tippecanoe, and in the case of output to a directory - create a tilejson which has the tiles end point, bounds, min and max zoom, such that you can add the data to a map using data: "https://.../tilejson.json" instead of manually setting the tiles, bounds, min and max zoom. You might need one additional cli option to set the root url, not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants