I cannot add the below map server (Middle_East_Oil_and_Gas_Field_Map_by_CIA (WMTS) to qgis through add WMS/WMTS layer.

A connection will not be made to the following URL.

URL: https://tiles.arcgis.com/tiles/ULBqC49IEeIR01GF/arcgis/rest/services/Middle_East_Oil_and_Gas_Field_Map_by_CIA/MapServer?view=wmtsview&cacheKey=aec62228d3e2389d

What am I doing wrong?

QGIS version 2.18.26

  • 2
    This is no WMS-server, it's an online-map. – Erik Jan 31 '19 at 17:15
  • @Erik It is a WMTS and works in ArcGIS online. – neogeomat Jan 31 '19 at 18:13
  • 4
    Not with that url it isn't – Ian Turton Jan 31 '19 at 18:47
  • I thought I found my answer here but I am having a problem with a similar tiles.arcgis.com location. I apologize if I am not following format but I offer another solution at the end and would appreciate any help with the following MapServer as none of the above solutions worked. The the following URL is what I am having trouble loading in QGIS 3.4. tiles.arcgis.com/tiles/pDAi2YK0L0QxVJHj/arcgis/rest/services/… If I add the previous link to QGIS 3.4 as a ArcGISMapServer Connection the image comes in but is all blurry, pixelated, stretched, and only seen thi – opcesurveyor Feb 25 '19 at 19:37

You can use this url as WMTS service in QGIS:

  • That is some black magic. How did you do that? Can you please refer me to any kind of reference where I can get more about rewriting the URL in such smart way? – Taras Feb 1 '19 at 10:35
  • 1
    If you shorten the original url to tiles.arcgis.com/tiles/ULBqC49IEeIR01GF/arcgis/rest/services in a browser, you will find the ArcGIS Services Directory. There you can navigate to the correct layer and find a link to the WMTS service. – Michel Stuyts Feb 1 '19 at 10:51

You can add the map as "XYZ Tiles" layer using the following URL:


Notice the variables {z}, {y}, {x} at the end.

I checked it using QGIS 3.4, but should also work with 2.18. See this video.


I think I have the same problem. I want to add WMTS layer to QGIS but I can't. I want to insert in QGIS tiles of background from this Webgis https://mappe.regione.vda.it/pub/geodissesti/

If I inspect webpage in Chrome I find this link for a tile


If I add this layer WMTS in QGIS


I can insert a layer... but I don't see nothing.

Do you have any idea?

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.