-
-
Notifications
You must be signed in to change notification settings - Fork 69
Landuse geometry simplification #500
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
base: main
Are you sure you want to change the base?
Conversation
Ugh this is |
Somehow geometries are broken at zoom levels maybe 10 to 14
|
Odd... first thought is maybe the snapAndFixPolygon is not being called at the end of the VW + smoothing simplification? |
|
I have updated the demo at https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/protomaps-500/index.html#map=9.76/47.2065/8.2466 with just some data for Switzerland. |
Is an alternative way to reduce tile size in the landuse layer. Instead of dropping
kind
values, we run some geometry post processing.Uses Visvalingam Whyatt simplification.
When running on Switzerland, the landuse-only archive size goes from 171 MB (100%) on main to 110 MB (64%) on this branch. Projected space savings on planet 35 GB * (1 - 0.64) = 12.6 GB.