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
union ocean regular squares into complex polygon #1021
Conversation
Partial fix #308 |
Results evaluating commit 083bada (merged with base 7216593 as 6e5100f). See run details. PostgreSQL DB size in MB: 2665 ⇒ 2591 (-2.8% change)
expand for details...
|
I might be mistaken here, but I think it is done on purpose - breaking water into many polygons greatly speeds up the time needed to generate each tile because it allows much less complex polygons to be processed. Cc @Komzpa |
Hi @nyurik, there are 8042 polygons (squares, 5 points, more then 100km2), which was reduced to 22 polygons - 1184kB vs 40kB respectively. In mbtiles should be the size reduction even more significant, due to the creation of more polygons based on a 10m buffer of each square (as shown in picture 1). |
The ocean layer (table osm_ocean_polygon insert by
make import-data
) is made from squares that have a 10m buffer.This creates extra geometry in vector tiles as:
Union of full ocean squares should decrease the size of the water layer.
From this:
to this:
The red squares contain the holes from the islands and coastline.