-
Notifications
You must be signed in to change notification settings - Fork 15
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 worst-case openmaptiles mvts #159
base: main
Are you sure you want to change the base?
Conversation
These should be super useful, thank you for pulling them together. My slight preference would be to put them into a new subdirectory in order to make it easy to distinguish / remember they are different from the vanilla OMT that have already been contributed.
The
Many of the existing OMT tiles currently hit a decoder bug, which @mactrem fixed earlier today: #158. So you might try with that PR? You say it is the encoder that throws: if that is the case, would be really useful to see the error + put the error in a separate ticket and we'll take a look at fixing it asap.
I'm open to either. A primary priority recently for me, working with @mactrem, has been to make sure the encoder and decoder handle diverse tiles robustly and without error. So, its good timing to fix what you uncovered. If you are interested in taking a look yourself, go for it! But also great to ticket and one of us can look next week too. |
|
I have also made various torturous tiles, some of which cause errors in maplibre with over 64k vertices. Would those be of interest? If examining various odd conversion cases, consider extents that are not of the form 2^n. |
Thanks @springmeyer, are you thinking a folder like Merging master appeared to fix most of the exceptions but there is still at least one more. I'll open up a new issue with that one. |
@pnorman are those "naturally occurring" tiles or artificial? Seems useful to include somewhere to make sure it's robust to a lot of corner cases but not sure if the goal of these test fixtures is to be real world examples or include artificial ones. Any thoughts here @springmeyer @nyurik @mactrem ? |
They were real-world cases where I had to work around mapbox/maplibre behavior. |
Yeah, that was my thinking. But I've had a chance now to look into testing in general in the repo and I have a new thought which is to not integrate these new tiles right now. Our testing framework needs an overhaul first. So, I propose letting this hang out for a week or so until I've had a chance to work on getting the tests more ready for extra tiles like these. |
Add some of the biggest openmaptiles in the world generated by planetiler. I made some utilities for reducing tiles sizes in onthegomap/planetiler#669 and onthegomap/planetiler#673 and applied them to the openmaptiles profile in openmaptiles/planetiler-openmaptiles#112 (mostly merging features with the same attributes into multigeometries and sorting by hilbert index). This PR includes both the optimized and unoptimized tiles. Ideally mlt should generate smaller tiles without optimizations so those application-layer optimizations aren't necessary anymore.
TODO:
test/expected/omt
- I tried runningjust bless
but it doesn't seem to be implemented?