[Qgis-developer] Re: Draw a single point

Germán Carrillo carrillo.german at gmail.com
Thu Dec 10 15:00:36 EST 2009


I guess this can help you:

*self.marker = QgsVertexMarker( self.canvas )
*
*self.marker.setCenter( QgsPoint( x, y ) ) *
*self.marker.setIconType( 1 ) *
*self.marker.setIconSize( 10 ) *
*self.marker.setColor( QColor( 255,0,0,255 ) ) *
*self.marker.setPenWidth ( 1 ) *

As you see, just define the marker with your canvas as parent and set the
properties.

Regards.

Germán

El 10 de diciembre de 2009 14:46, sergio cavalcante <
sergio.cavalcante at gmail.com> escribió:

> Thanks for your reply, Germán.
>
> I'll study the class. Do you know where I may find some sample of its
> usage?
>
> Best Regards,
> ------------------------------
> Sérgio Cavalcante
>
>
>
>
> 2009/12/10 Germán Carrillo <carrillo.german at gmail.com>:
> > Hi Sergio.
> >
> > Take a look at the QgsVertexMarker class. This way you can add points to
> the
> > map canvas.
> >
> > Regards.
> >
> > Germán
> >
> > -------------------------------
> > [1] http://doc.qgis.org/head/classQgsVertexMarker.html
> >
> >
> > 2009/12/10 sergio cavalcante <sergio.cavalcante at gmail.com>
> >>
> >> Hello Guys,
> >> Any Ideas?
> >> Just plot a single pixel at a specific coordinate?
> >>
> >> Best Regards,
> >> ------------------------------
> >> Sérgio Cavalcante
> >>
> >>
> >>
> >>
> >> On Tue, Dec 8, 2009 at 4:57 PM, sergio cavalcante
> >> <sergio.cavalcante at gmail.com> wrote:
> >> > People.
> >> > I have a qmapcanvas. I just need to draw a single point in any pixel
> >> > at the mapcanvas and delete when I need.
> >> > Is that possible?
> >> >
> >> > Best regards,
> >> > ------------------------------
> >> > Sérgio Cavalcante
> >> >
> >> _______________________________________________
> >> Qgis-developer mailing list
> >> Qgis-developer at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> > --
> > -----------
> >   |\__
> > (:>__)(
> >   |/
> >
> > Soluciones Geoinformáticas Libres
> > http://geotux.tuxfamily.org/
> >
>
-- 
-----------
  |\__
(:>__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20091210/23bca083/attachment-0001.html


More information about the Qgis-developer mailing list