Bug report #20302

XYZ Tiles in TMS convention do not display properly

Added by Ken Martin over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Web Services clients/XYZ
Affected QGIS version:3.4.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:worksforme
Crashes QGIS or corrupts data:No Copied to github as #:28123

Description

I tried to explore this in detail here: https://gis.stackexchange.com/questions/300336/updated-can-tms-convention-xyz-tiles-be-displayed-in-qgis-3-4

Briefly, TMS-convention tiles have the inverted Y axis as part of their convention. Therefore, I can't get them to display properly in QGIS 3.4 when using a XYZ Tiles layer.

I did spend lots of time Googling to discover if I should be doing this in some other way or of this is resolved in some way, but I couldn't find it.

qgis-tms-inverted-axis.png - tiles tooltip (131 KB) Alessandro Pasotti, 2018-11-01 08:46 PM

History

#1 Updated by Giovanni Manghi over 5 years ago

  • Category changed from Rasters to Web Services clients/XYZ
  • Status changed from Open to Feedback
  • Operating System deleted (Mac 10.13)

With the Quick Map Services plugin you can add custom WMS and TMS services. So I think this should become a feature request.

#2 Updated by Ken Martin over 5 years ago

Giovanni Manghi wrote:

With the Quick Map Services plugin you can add custom WMS and TMS services. So I think this should become a feature request.

Thanks Giovanni. Do you know if the Quick Map Services plugin will work without having to register tilesets with an external registry? (Some that I have are private and/or in development.)

If this does become a feature request, from my limited perspective I think a simple "select" box in the XYZ Tiles edit window that defaulted to "XYZ" but also offered "TMS" (and perhaps other options, if it makes sense).

#3 Updated by Ken Martin over 5 years ago

Is there any chance that the XYZ URL does more than just string replacement?

Like, rather than just...

../{z}/{x}/{y}.png

...maybe I could do...

../{z}/{x}/${(2^z)-y-1}.png

#4 Updated by Alessandro Pasotti over 5 years ago

{-y} will invert your axis

#5 Updated by Alessandro Pasotti over 5 years ago

It's documented in the tooltip

#6 Updated by Ken Martin over 5 years ago

Alessandro, that's AWESOME! I never lingered long enough to even know there was a tool tip.

Thank you! :)

#7 Updated by Giovanni Manghi over 5 years ago

  • Resolution set to worksforme
  • Status changed from Feedback to Closed

Also available in: Atom PDF