1

I'm trying to load raster layer with terrain tiles into QGIS (latest version, I tried both standalone and OSGeo4W) but still got an error message:

"Unsupported data source : C:\Users\VR\Downloads\6-34-21.pmtiles is not a supported raster data source Tile type WEBP not handled by the driver"

The file comes from https://mapterhorn.com/data-access/ (more info also here: https://protomaps.com/blog/mapterhorn-terrain/).

What can/should I check?

3
  • GDAL supports PMTiles with a vector driver gdal.org/en/stable/drivers/vector/pmtiles.html. Support for raster tiles is missing. It seems that your PMTiles file contains raster tiles, not vector tiles. Commented Sep 25 at 18:55
  • Thank you. I'm almost certain that I used raster pmtiles at some point, which is why I was surprised. Commented Sep 27 at 6:03
  • Could it be that you have used MBTiles? Commented Sep 27 at 14:35

1 Answer 1

2

GDAL does not support PMTiles files which contain raster tiles. GDAL supports only vector tiles. See the vector driver documentation https://gdal.org/en/stable/drivers/vector/pmtiles.html#pmtiles

This driver supports reading and writing PMTiles datasets containing vector tiles, encoded in the Mapbox Vector Tiles (MVT) format.

Tests with gdalinfo and ogrinfo confirms this.

gdalinfo 6-35-21.pmtiles ERROR 4: `6-35-21.pmtiles' not recognized as being in a supported file format. gdalinfo failed - unable to open '6-35-21.pmtiles'. Did you intend to call ogrinfo? ogrinfo 6-35-21.pmtiles ERROR 1: Tile type WEBP not handled by the driver ERROR 1: Tile type WEBP not handled by the driver ogrinfo failed - unable to open '6-35-21.pmtiles'. 
1
  • Thank you for in-depth explanation with examples. In the meantime, I learned that I can run an XYZ tile server based on PMTiles files. I'll give it a try. Commented Sep 29 at 5:54

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.