Skip to content

Write Vector Tiles processing tools resulting in unusable tiles in MaplibreGL #50429

@rowanwins

Description

@rowanwins

What is the bug or the crash?

I recently tried to generate some vector tiles using the Write Vector Tiles (MBTiles) tool (although I believe the error also occurs with the Write Vector Tiles (XYZ) tool. The tool reported that the task was completed fine, and the expected number of tiles are produced, however the resulting vector tiles could not be successfully viewed on a MaplibreGL map, they would show errors like

message : "unknown command 0"

The same error is also shown when trying to parse the resulting tiles with vector-tile-js which is the underlying library used by MapboxGL and MaplibreGL, so I'm fairly confident it's a tile parsing issue.

My first guess might be the tool is struggling to properly process/write MultiGeometries, as the data I was using was a MultiPolygon.

Steps to reproduce the issue

  1. Download the Australia shapefile
  2. Run the data through Write Vector Tiles (MBTiles) tool
  3. Try to view the resulting tiles somehow

Versions

QGIS version 3.26.1-Buenos Aires QGIS code revision b609df9
Qt version 5.15.2
Python version 3.9.5
GDAL/OGR version 3.3.2
PROJ version 8.1.1
EPSG Registry database version v10.028 (2021-07-07)
GEOS version 3.9.1-CAPI-1.14.2
SQLite version 3.35.2
PDAL version 2.3.0
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.6
QScintilla2 version 2.11.5
OS version macOS 12.6
       
Active Python plugins
slyr_community 3.0.7
quick_map_services 0.19.11.1
NNJoin 3.1.3
pluginbuilder3 3.2.1
rvt-qgis 0.5.2
dea_explorer 0.1
rasterstats 0.4.3
GroupStats 2.2.5
plugin_reloader 0.8.1
processing 2.12.99
sagaprovider 2.12.99
grassprovider 2.12.99
db_manager 0.1.20
QGIS version 3.26.1-Buenos Aires QGIS code revision [b609df9](https://github.com/qgis/QGIS/commit/b609df9ed4) Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.3.2 PROJ version 8.1.1 EPSG Registry database version v10.028 (2021-07-07) GEOS version 3.9.1-CAPI-1.14.2 SQLite version 3.35.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.11.5 OS version macOS 12.6

Active Python plugins
slyr_community
3.0.7
quick_map_services
0.19.11.1
NNJoin
3.1.3
pluginbuilder3
3.2.1
rvt-qgis
0.5.2
dea_explorer
0.1
rasterstats
0.4.3
GroupStats
2.2.5
plugin_reloader
0.8.1
processing
2.12.99
sagaprovider
2.12.99
grassprovider
2.12.99
db_manager
0.1.20

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

Another user replicated the problem with the same dataset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!Vector tiles

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions