[Qgis-developer] adding point/multipoint to the QgsRubberBand drawing capabilities?

Matthias Kuhn matthias.kuhn at gmx.ch
Wed Nov 14 04:01:03 PST 2012


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 <matthias.kuhn at gmx.ch>
>         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"
>         <giohappy at gmail.com> 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
>         > Qgis-developer at lists.osgeo.org
>         > http://lists.osgeo.org/mailman/listinfo/qgis-developer
>         
>         
> 
> 




More information about the Qgis-developer mailing list