Open pnorman opened 1 year ago
You have to play around with zoom levels and extent to get this right. The zoom levels mentioned in the generalizer config are not necessarily the same zoom levels you generate the generalization for. They are merely used to decide how to cut the world for the generalization process.
We should aim for the defaults to generally be a good starting place. I'm working my way through the different types of polygons, but at least for water, I don't think they are.
I've had some success with adjusting the buffer_size
, and I think this is why the different image_extent worked - instead of being a buffer of 10/2048 of a tile, it was 10/4096.
What version of osm2pgsql are you using?
1.9.2-29-g374eca48
What did you do exactly?
I am generalizing water tables with themepark and osm2pgsql-gen
What did you expect to happen?
I expected generalized tables that would be useful at z8 and z12.
What did happen instead?
At z8, the water areas are "chunky" when using the z8 table
This is rendered at 1 z8 tile = 512 device independent pixels
It's not really any better at z7
Loading it in QGIs shows large chunks of rivers missing
I found a smaller river and looked at at z12, and similar problems are observed but they're not as severe
What did you do to try analyzing the problem?
I could see needing to adjust the zoom levels where the generalized tables start to be used by one, because the defaults could have been set for 256px tiles. But I tried that by looking at z7, and it was still a problem.
I tried a 25% buffer_size, and a 4096px image_extent. The latter helped slightly, but it was still a problem.