I want to load mvt tiles into QGIS through a URL service


But, the menu in the Vector Tile Reader plugin allows TileJSON URL.

Is there any way I can load mvt tiles in QGIS environment?

  • What happens when you put that URL into the plugin? – HeikkiVesanto Jan 9 '18 at 12:27
  • Returns the following error. "The field ''vector_layers' is required but not found. This is invalid TileJSON. – raosaeedali Jan 9 '18 at 12:53
  • what format are your Map Vector Tiles? – nmtoken Jan 9 '18 at 13:19
  • @nmtoken tiles are in pbf format. – raosaeedali Jan 10 '18 at 4:50
  • Wrote my own script to decode and display mapbox vector tiles parsed as pbf in QGIS. Closing... – raosaeedali Jan 19 '18 at 12:36
    r = requests.get(url)

    # ------------------------Decryption------------------------
    response = r.content
    decoded_data = mapbox_vector_tile.decode(response)

Import relevant modules to your sript, parse the URL to your specific tile at specific zoom level for example;


Here 16/4059/6568 are zoom level X and Y numbers of your requested tile id. After that you can print decoded data to see the decoded JSON of your tile.

  • Great, thank you. I didn't hope that the mapbox_vector_tile module was in qgis's python – Oscar Campo May 25 '18 at 13:03
  • @OscarCampo No it was not. You have to load it using Pip. – raosaeedali May 26 '18 at 4:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.