Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-28 Thread Martin Dobias
On Thu, Feb 28, 2019 at 10:06 AM Matthias Kuhn wrote: > > To specify output device DPI there's already > > QgsRasterDataProvider::setDpi() call which is also used when drawing > > raster layers. > > Hmm... I see the docstring that says output device. How does it work > that the provider can hold

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-28 Thread Matthias Kuhn
Hi On 2/27/19 9:45 PM, Martin Dobias wrote: > On Wed, Feb 27, 2019 at 1:03 PM Matthias Kuhn wrote: >>> I am wondering if we should have three options for tile resolutions: >>> - standard (96 DPI) ... autoscaled, for 256x256 tiles for XYZ tiles >>> - high res (192 DPI) ... autoscaled, for 512x512

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-27 Thread Martin Dobias
On Wed, Feb 27, 2019 at 1:03 PM Matthias Kuhn wrote: > > > > I am wondering if we should have three options for tile resolutions: > > - standard (96 DPI) ... autoscaled, for 256x256 tiles for XYZ tiles > > - high res (192 DPI) ... autoscaled, for 512x512 tiles for XYZ tiles > > - undefined ...

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-27 Thread Matthias Kuhn
HI Martin On 2/27/19 11:23 AM, Martin Dobias wrote: > Hi Nyall > > On Wed, Feb 27, 2019 at 4:40 AM Nyall Dawson wrote: >> So I'm guessing this setting would apply in print layouts too? >> Regardless of the output resolution, it would be exported as though >> it's at 96 dpi? > Yes, that's correct

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-27 Thread Martin Dobias
Hi Richard On Wed, Feb 27, 2019 at 10:47 AM Richard Duivenvoorde wrote: > > not sure if this is helpfull, but Matthijs of the OpenGeoGroep.nl > created a hidpi tilecache for mac users not so long ago for an Dutch, > osm based base map. I asked him what he did. He says (translated): > > "Yes we

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-27 Thread Martin Dobias
Hi Nyall On Wed, Feb 27, 2019 at 4:40 AM Nyall Dawson wrote: > > So I'm guessing this setting would apply in print layouts too? > Regardless of the output resolution, it would be exported as though > it's at 96 dpi? Yes, that's correct - print output would be affected too. That means that tiles

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-27 Thread Richard Duivenvoorde
On 26/02/2019 17.23, Martin Dobias wrote: > Hi all > > Whenever I use a background map like OpenStreetMap on my high-res > laptop screen (192 DPI) in QGIS, the labels are tiny. That is > "natural" because tiles are made for screens with ~96 DPI where the > size of labels is just fine. When I look

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-26 Thread Nyall Dawson
On Wed, 27 Feb 2019 at 02:24, Martin Dobias wrote: > Other solution would be to introduce a new flag for WMTS/XYZ layers > where users could set native DPI. By default this flag would be > disabled, but for services like OSM one could explicitly set their DPI > to 96 and get the tiles scaled

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-26 Thread Martin Dobias
Hi Matthias Thanks for your thoughts... On Tue, Feb 26, 2019 at 5:49 PM Matthias Kuhn wrote: > If I understand you correctly, the scaling that you see on OSM is only > done on client side (in javascript)? > Yes this is handled by the client map library. In Javascript there's

Re: [QGIS-Developer] WMTS/XYZ on high DPI screens

2019-02-26 Thread Matthias Kuhn
Hi Martin Interesting topic. On 2/26/19 5:23 PM, Martin Dobias wrote: > Hi all > > Whenever I use a background map like OpenStreetMap on my high-res > laptop screen (192 DPI) in QGIS, the labels are tiny. That is > "natural" because tiles are made for screens with ~96 DPI where the > size of