[QGIS-Developer] flash geometries for (larger) polygons?
Hi Devs, We have a geocoder plugin, which is able to return polygons. Wanting to be able to see what (province/neighourhoud/zip code etc) it is I thought to use: https://qgis.org/pyqgis/master/gui/QgsMapCanvas.html#qgis.gui.QgsMapCanvas.flashGeometries but that only flashes a full non transparant geometry (polygon in our case). Looking into the code: https://github.com/qgis/QGIS/blob/master/src/gui/qgsmapcanvas.cpp#L1876 it looks like it really is written towards a begin/end color flash, so I think adding a 'fill' would not fit. Any idea's? Maybe adding transparency is easiest then? Regards & thanks for any input, Richard Duivenvoorde ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] flash geometries for (larger) polygons?
Hi Richard, what are you trying to achieve? If you would like to flash only the border of the polygon you could try to use geometry.convertToType(1) (https://qgis.org/pyqgis/master/core/QgsGeometry.html#qgis.core.QgsGeometry.convertToType) to flash only a LineGeometry instead of a polygon. Cheers, Bjoern ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] flash geometries for (larger) polygons?
On 7/4/22 12:56, pathmapper wrote: Hi Richard, what are you trying to achieve? If you would like to flash only the border of the polygon you could try to use geometry.convertToType(1) (https://qgis.org/pyqgis/master/core/QgsGeometry.html#qgis.core.QgsGeometry.convertToType) to flash only a LineGeometry instead of a polygon. Ah, that's actually a very good idea too :-) Thanks! Richard ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer