Already done: https://github.com/matthias-kuhn/Quantum-GIS/tree/rubberband-point
Please have a look at it. from qgis.gui import * rb = QgsRubberBand( qgis.utils.iface.mapCanvas(), QGis.Point ) rb.setWidth( 5 ) [Add some points] On Wed, 2012-11-14 at 12:54 +0100, G. Allegri wrote: > I'll try to implement it as soon as I find a slot of time. > I don't guarantee it because my C++ programming skills are not so > high... > > > giovanni > > 2012/11/14 Matthias Kuhn <[email protected]> > On Mon, 2012-11-12 at 21:27 +0100, G. Allegri wrote: > > Let me clarify my request a bit more. I know QgsRubberBand > can manage > > points and paint them as square graphics. > > What I mean is painting circles (drawEllipse). > > I think it's reasonable to introduce such a thing. > QgsRubberBand is used > for temporary highlighting / painting of features and I see no > reason > why this should not be allowed for points. I would also have > use for > that. > > Matthias > > > giovanni > > > > Sent from Nexus > > > > Il giorno 12/nov/2012 18:27, "G. Allegri" > <[email protected]> ha > > scritto: > > Bear with me if this is a trivial request. > > QgsRubberBand only supports lines and polygons, why > don't we > > extend it to support points/multipoints too? > > > > > > giovanni > > _______________________________________________ > > Qgis-developer mailing list > > [email protected] > > http://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
