qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.4k stars 2.98k forks source link

Generated vector tiles are not complete, they have gaps. #55402

Open iugulava opened 10 months ago

iugulava commented 10 months ago

What is the bug or the crash?

QGIS creates gaps while generating tiles from line features with Write vector tiles (XYZ). I try to generate vector tiles from a roads network layer, but it generates big gaps between features. It seems that some segments of the lines are being erased, while polygons and points are generated perfectly. I am using the native QGIS Write Vector Tiles (XYZ) geoprocessing tool. image

Steps to reproduce the issue

Go to processing toolbar. Run Write Vector Tiles (XYZ). Choose any line or multiline source. Set current map extent. Run algorithm.

Versions

QGIS version 3.28.9-Firenze QGIS code revision 66f4d63ad4 Qt version 5.15.3 Python version 3.9.5 GDAL/OGR version 3.7.1 PROJ version 9.2.1 EPSG Registry database version v10.088 (2023-05-13) GEOS version 3.12.0-CAPI-1.18.0 SQLite version 3.41.1 PDAL version 2.5.5 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.13.1 OS version Windows 10 Version 2009 Active Python plugins GeometryShapes 0.7 qgis-maptiler-plugin 3.2

Supported QGIS version

New profile

Additional context

just created new profile and try with it, but same result

agiudiceandrea commented 10 months ago

@iugulava, thanks for reporting. Please provide a sample layer and the algorithm parameters with which the issue occurs.

iugulava commented 10 months ago

Actually you could use any kind of line layers. I tried it on road layer from open street, isolines, my own road layer. The result was the same. Regarding the setting I try it with all kind of settings, all zoom levels and etc. The result was same. Keep in mind, everything look nice when I make tiles from polygons of points. The problem exist only in case of line layer. Capture

DD0Avocadius commented 9 months ago

I'm experiencing a similar problem while attempting to write vector tiles into mbtiles. I use Tileserver-gl to render it, mostly with default settings.

I've tried it multiple times with slightly different settings. In some cases, the map was rendered correctly, but only at a single zoom level. One level more zoomed in or out, and I encounter a similar problem. I get gaps in my lines, and in some instances, even small polygons are missing at certain zoom levels.

The lines and polygons are drawn by myself in QGIS; nothing was copied from elsewhere. I filled out the 'write vector tiles' form mostly similarly to the OP. I've also experimented with different CRS, but encountered the same issue.

Versions

QGIS-Version

QGIS-Codeversion

Qt-Version

Python-Version

GDAL-Version

PROJ-Version

EPSG-Registraturdatenbankversion

GEOS-Version

SQLite-Version

PDAL-Version

PostgreSQL-Client-Version

SpatiaLite-Version

QWT-Version

QScintilla2-Version

BS-Version

Aktive Python-Erweiterungen

  1. qgis-maptiler-plugin
    • Version: 3.2
  2. quick_map_services
    • Version: 0.19.34
  3. db_manager
    • Version: 0.1.20
  4. grassprovider
    • Version: 2.12.99
  5. MetaSearch
    • Version: 0.3.6
  6. processing
    • Version: 2.12.99

At this zoom level, it looks correctly rendered (if we ignore the messed-up style).

zoomed_out

At this zoom level, the entire intersection is missing.

zoomed_in