I'm looking for a way to display a Mapbox map in QGis in so it's recognized as a raster layer.
I've already tried this, and I succeeded adding the TMS layer via TileLayer Plugin, using my mapbox url like this: https://a.tiles.mapbox.com/styles/v1/[my_username]/[map_ID]/tiles/256/{z}/{x}/{y}?access_token=[my_access_token]
The problem is, adding a layer in this way is not recognized by QGIS as a raster layer, and I need to perform some raster operations on it.
On the other hand, I tried to create an XML file like this:
<GDAL_WMS>
<Service name="TMS">
<ServerUrl>https://a.tiles.mapbox.com/styles/v1/[my_username]/[map_ID]/tiles/256/${z}/${x}/${y}?access_token=[my_access_token]</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-20037508.34</UpperLeftX>
<UpperLeftY>20037508.34</UpperLeftY>
<LowerRightX>20037508.34</LowerRightX>
<LowerRightY>-20037508.34</LowerRightY>
<TileLevel>18</TileLevel>
<TileCountX>1</TileCountX>
<TileCountY>1</TileCountY>
<YOrigin>top</YOrigin>
</DataWindow>
<Projection>EPSG:3857</Projection>
<BlockSizeX>256</BlockSizeX>
<BlockSizeY>256</BlockSizeY>
<BandsCount>3</BandsCount>
<Cache />
</GDAL_WMS>
but it's not working.
Using the exact same XML with the Google TMS url http://mt.google.com/vt/lyrs=s&x=${x}&y=${y}&z=${z}
works ok.
Am I missing something here?