[QGIS-Developer] How can I make a custom QgsMapCanvasItem visible in the layout?

2021-10-21 Thread Luis Eduardo
I'm working on a plugin that requires the creation of one or more custom QgsMapCanvasItem, but I've noticed that they are not visible in the layout.QGIS QgsMapCanvasItems like annotations are visible, is it possible to make a custom QgsMapCanvasItem visible in the layout?

Re: [QGIS-Developer] Empty vs. Null rectangle, bogus ?

2021-10-21 Thread Sandro Santilli
I've filed a PR to change QgsRectangle NULL to NOT include the 0,0,0,0 case. I suspect it will open a can of warms but let me know what do you think about it: https://github.com/qgis/QGIS/pull/45607 --strk; On Thu, Oct 21, 2021 at 10:20:04AM +0200, Sandro Santilli wrote: > I've added - in my PR

Re: [QGIS-Developer] Empty vs. Null rectangle, bogus ?

2021-10-21 Thread Sandro Santilli
I've added - in my PR https://github.com/qgis/QGIS/pull/45384 - a test for QgsRectangle doing this: QgsRectangle r1( 0, 0, 0, 0 ); QVERIFY( ! r1.isNull() ); QVERIFY( r1.isEmpty() ); QgsRectangle r2( 1, 1, 1, 1 ); QVERIFY( ! r2.isNull() ); QVERIFY( r2.isEmpty() ); The first test

Re: [QGIS-Developer] Algorithms in python

2021-10-21 Thread Patrick Dunford
I'm writing to support this viewpoint. I use the XYZ tiles functions in the processing toolbox quite extensively and am aware of certain issues in them. I understood these were written originally in Python as old versions of them as such can be found on Github. Somewhere down the track it