Landuse geometry simplification
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.
Ugh this is #500. Congrats @bdon!
Live demo: https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/protomaps-500/index.html#map=9.22/47.1563/8.2537
new:
old:
Somehow geometries are broken at zoom levels maybe 10 to 14
https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/protomaps-500/index.html#map=12.12/47.65143/8.06254
Odd... first thought is maybe the snapAndFixPolygon is not being called at the end of the VW + smoothing simplification?
need to update this render test...
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
21.4% Coverage on New Code
0.0% Duplication on New Code
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.