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

pmtiles-serve serves tiles with TMS scheme #8

Closed
typebrook opened this issue Apr 12, 2021 · 2 comments
Closed

pmtiles-serve serves tiles with TMS scheme #8

typebrook opened this issue Apr 12, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@typebrook
Copy link

typebrook commented Apr 12, 2021

Problem: Now pmtiles-serve directly uses y value in sqlite table tiles from MBTiles, which is TMS scheme.

In fact, MBTiles always follow TMS scheme. So if we want to serve tiles with XYZ scheme, the y value should be

# y is the value in MBTiles
2^z - 1 - y 
@typebrook typebrook changed the title Fix serving scheme pmtiles-serve serves tiles with TMS scheme Apr 12, 2021
@bdon bdon added the bug Something isn't working label May 8, 2021
@bdon
Copy link
Member

bdon commented May 8, 2021

@typebrook can you try with version 0.0.5?

@bdon bdon closed this as completed May 9, 2021
@typebrook
Copy link
Author

typebrook commented May 10, 2021

@bdon Looks good on latest version! Well done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants