Wrong rendering of island/areas near water - Geometry issue of water data? #1836
Replies: 2 comments 3 replies
-
I was wondering if you have tried to replicate at all with the core mbgl-render utility . Sometimes that is a good alternative to tileserver-gl to see if this is a maplibre-native core issue. For example, in a previous PR i did something like |
Beta Was this translation helpful? Give feedback.
-
Looks to me like a problem in maplibre-native processing. Changing fill-opacity from 1 to e.g. 0.4 shows all geometries are there and rendered but "something" is painted over the others |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, we are currently working on a conversion of our stack to Maplibre and would also like to provide the raster tiles via Tileserver/Maplibre Native.
Unfortunately, there is sometimes a server crash/wrong rendering on islands/areas near water at certain zoom levels.
Here is an example in the Venice area for 15/17506/11729.webp. For test purposes I have coloured the corresponding water area yellow:
At "raster" zoom level 14 the data is drawn in correctly:
I also have attached the corresponding mbiltes (please remove .txt at the end):
it-nord-est-latest-wateronly-lowres.mbtiles.txt
And the data in geojson format (please remove .txt at the end):
5864.geojson.txt
The problem are wrong generated water geometries. These are generated as follows (see also shortbread on which the tiles are based https://github.com/shortbread-tiles/shortbread-tilemaker/blob/main/process.lua#L378-419):
The corresponding style for this layer:
I have noticed that the water geometries created here sometimes look strange. Besides the actual geometry, a "border" in the upper right corner is created to close the geometry:
In comparison the OpenMapTiles geometry looks like this and is rendered correct:
In "vector mode" there isn't any issue, the problem only occurs when using the tile mode / raster images.
Do you have any ideas or suggestions for analysing the problem in more detail? Thank you very much!
Note: I already have mentioned the issue in the tileserver-repo, but I think it could be a maplibre-native issue.
Beta Was this translation helpful? Give feedback.
All reactions