[QGIS-Developer] QgsPluginLayer in QGIS3

Etienne Trimaille etienne.trimaille at gmail.com
Wed Oct 25 04:42:37 PDT 2017


A quick note for people working on the porting to QGIS 3, inverted Y axes
are supported in QGIS 3 now. (Thanks Alessandro)

2017-10-25 13:24 GMT+02:00 G. Allegri <giohappy at gmail.com>:

> Thanks Martin. I asked it in general.
> I know QMS uses native layers for most (all?) the sources. Actually we
> could make without the plugin layer, at least in the first porting.
>
> giovanni
>
> Il 25 ott 2017 12:29 PM, "Martin Dobias" <wonder.sk at gmail.com> ha scritto:
>
>> Hi Giovanni
>>
>> On Wed, Oct 25, 2017 at 11:53 AM, G. Allegri <giohappy at gmail.com> wrote:
>> > I'm analyzing QuickMapService to see how much work it would need toport
>> it
>> > to QGIS 3 (it would a big loss not having it!).
>> >
>> > The first thing I see is that QgsPluginLayer doesn't offer the draw()
>> method
>> > anymore. i guess the only way to substitute it is defining a custom
>> > QgsMapLayerRenderer and implementing its render() method. Can you
>> confirm
>> > this is the only way to do the actual rendering?
>>
>> Yes that's correct. It is not a big change though - the drawing code
>> just moves to a new renderer class.
>>
>> By the way, the support for XYZ/TMS tile layers within WMS provider
>> (since 2.18) should already cover requirements for most of the data
>> sources, so the need for a custom plugin layer in QMS is there just
>> for layers using a CRS / tiling different from standard Web Mercator.
>> The more recent versions of QMS already use the standard raster layer
>> for many sources instead of the plugin layer:
>> https://github.com/nextgis/quickmapservices/issues/110
>>
>> Cheers
>> Martin
>>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171025/01e59b4d/attachment.html>


More information about the QGIS-Developer mailing list