-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add methods and tools to ensure spatial metadata properties for MBTiles databases #27
Conversation
I can see the checks are failing because the I am not wed to Go 1.23 but the requirements should probably be bumped to Go 1.21 since I think previous versions have been EOL-ed. |
If you can rebase or merge in my change in #28 should allow compiling Go 1.23. |
Co-authored-by: Ian Dees <[email protected]>
Co-authored-by: Ian Dees <[email protected]>
Do you need me to do anything else for this? |
Nope, sorry didn't see the merge. |
Version 1.3 of the MBTiles spec says:
This PR adds methods to ensure those metadata properties are assigned when a new database is created and tools to update existing database.
This PR introduces backwards incompatible changes to the
tilepack.TileOutputter
interface:AssignSpatialMetadata(orb.Bound, maptile.Zoom, maptile.Zoom) error
method.This PR introduces backwards incompatible changes to the
tilepack.MbtilesReader
interface:Metadata() (*MbtilesMetadata, error)
method.This PR introduces a new
MbtilesMetadata
for working with MBTiles metadata properties.The PR updates the
cmd/build
andcmd/merge
tools to call theMbtilesMetadata
on their respective tile "outputters". Additionally thecmd/merge
tool has been updated to derive the updated bounds and min/max zoom levels for the set of MBTiles databases being merged.This PR updates dependencies to their most recent version and requires Go 1.23.
Aside from the backwards incompatible changes to the interfaces this PR introduces no outward facing changes. All the command line tools work the same way and all the tests pass.