3

I can follow this answer to load a WMS layer to QGIS. I do: Layer -> Add Layer -> Add WMS/WMTS Layer. Then Connect, and Add:

enter image description here

I get this map:

enter image description here

to try how it is, I zoom in to Tromsø, as an example:

enter image description here

compare with openstreetmap.org:

enter image description here

Mine is rather distorted. This distortion is even more prominent if I zoom in to see individual buildings, and all of them lack right angles:

enter image description here

On the bottom left corner, I have:

enter image description here

If I click on it, and try to change it to EPSG:3857:

enter image description here

I get:

enter image description here

and the buildings are still distorted.

How can I tell QGIS Desktop to open the WMS layer so that the map looks the same as it looks on openstreetmap.org?


EDIT 1:

If I select EPSG:3857 when adding the WMS layer:

enter image description here

I get:

enter image description here


EDIT 2:

If I tried to add https://tile.openstreetmap.org/{z}/{x}/{y}.png as an XYZ layer, suggested by this answer, I get part of the world map:

enter image description here

but somehow the southern hemisphere and part of the northern one is missing, and the coordiantes are wrong: somehow QGIS thinks that (0,0) coord is somewhere between Jan Mayen and Mainland Norway. See the location of my cursor and the coordinate displayed on the bottom.

3
  • 1
    Select EPSG:3857 already when you add the layer from WMS.
    – user30184
    Commented Feb 10, 2022 at 18:18
  • Thank you! I tried, see the Edit part to see what I got.
    – zabop
    Commented Feb 10, 2022 at 19:34
  • 1
    Set your QGIS project to EPSG:3857 as well.
    – user30184
    Commented Feb 10, 2022 at 20:52

2 Answers 2

6

The openstreetmap.org loads the tiles based on an XYZ format tile url, which follows this pattern

https://tile.openstreetmap.org/{z}/{x}/{y}.png

eg. https://tile.openstreetmap.org/15/23367/14571.png This is what appears on inspecting the openstreetmap.org website.

enter image description here

Try loading these as XYZ tiles in QGIS instead of WMS or WMTS.

enter image description here

Edit:1 It should appear like as shown in the screenshot below with origin near the cyan circle

enter image description here

4
  • Good suggestion, +1, it almost works. Unfortunately, it does not; I edited my post to explain what's wrong when I follow this path.
    – zabop
    Commented Feb 10, 2022 at 21:59
  • Set the CRS to EPSG:4326 again and check as I see your CRS is set to 3857 right now. I have updated my response with screenshot of how it should look like when zoomed out. In case you are not getting the same output, create a new project in QGIS and add the layer again or may be try to re-install QGIS
    – Abhilshit
    Commented Feb 10, 2022 at 22:45
  • Tried to make this work, unfortunately I still couldn't, more details are in this question.
    – zabop
    Commented Feb 12, 2022 at 18:05
  • I could make this work on a GCP VM, so problem is only with my computer, thanks for the good answer.
    – zabop
    Commented Feb 14, 2022 at 8:46
1

Or just install QuickMapServices plugin and use several backgrounds without scratching your head :).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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