versatiles-org / shortbread-tilemaker

Tilemaker configuration to generate Shortbread vector tiles
https://shortbread.geofabrik.de/make-vectortiles/
Other
1 stars 3 forks source link

[Potential Issue] QGIS doesn’t receive water polygons #13

Open marsmathis opened 3 days ago

marsmathis commented 3 days ago

When I add my self-hosted Versatiles instance to QGIS (I tested this with tiles.versatiles.org as well), the water polygons only get rendered at zoom level 14. Above that they don’t get rendered, and at certain zoom levels islands are treated as water. I don’t know whether this is on Versatiles, QGIS or something else entirely, but maybe someone could take a look at this?

Steps to reproduce this:

  1. Layer → Add layer and select Add vector tile layer in QGIS
  2. Add new connection → New Generic Connection
  3. Source URL: Tile server URL with {z}/{x}/{y} syntax and add name
  4. I tested both enabling and disabling min and max zoom levels but select whatever
  5. Click Ok and click Add in previous window
  6. See that ocean is not displayed
  7. Optionally, to see things better, double-click on the added layer in the layer list
  8. Click Style and Load Style...
  9. Click the three dots next to File
  10. Select any downloaded and extracted json file from https://github.com/versatiles-org/versatiles-style/releases/latest/download/styles.tar.gz
  11. Click Load Style and then OK in previous window

Thanks for any and all help!

MichaelKreil commented 2 days ago

I think I found the problem: For some reason the ocean polygons at zoom level 14 have the correct clockwise orientation (like an ExteriorRing) as defined in the vector tile spec, but have the wrong counter-clockwise orientation (like an InteriorRing) at zoom level 13 and smaller. So I move this issue to the repo shortbread-tilemaker. Maybe we will find a solution there.