I guess QgsVertexMarker just works with the current map canvas reference system. <br><br>I don't know if this is what you ask.<br><br>Germán.<br><br><div class="gmail_quote">2009/12/10 <a href="mailto:motta.luiz@gmail.com">motta.luiz@gmail.com</a> <span dir="ltr"><<a href="mailto:motta.luiz@gmail.com">motta.luiz@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">German,<br>
<br>
<br>
VertexMarker have projection (core.QgsCoordinateReferenceSystem) ?<br>
If have is default, how happend the temporaly layer<br>
<br>
Regards,<br>
Luiz<br>
<br>
Germán Carrillo escreveu:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
I guess this can help you:<br>
<br>
/self.marker = QgsVertexMarker( self.canvas )<br>
/<br>
/self.marker.setCenter( QgsPoint( x, y ) ) /<br>
/self.marker.setIconType( 1 ) /<br>
/self.marker.setIconSize( 10 ) /<br>
/self.marker.setColor( QColor( 255,0,0,255 ) ) /<br>
/self.marker.setPenWidth ( 1 ) /<br>
<br>
As you see, just define the marker with your canvas as parent and set the properties.<br>
<br>
Regards.<br>
<br>
Germán<br>
<br></div>
El 10 de diciembre de 2009 14:46, sergio cavalcante <<a href="mailto:sergio.cavalcante@gmail.com" target="_blank">sergio.cavalcante@gmail.com</a> <mailto:<a href="mailto:sergio.cavalcante@gmail.com" target="_blank">sergio.cavalcante@gmail.com</a>>> escribió:<div class="im">
<br>
<br>
Thanks for your reply, Germán.<br>
<br>
I'll study the class. Do you know where I may find some sample of<br>
its usage?<br>
<br>
Best Regards,<br>
------------------------------<br>
Sérgio Cavalcante<br>
<br>
<br>
<br>
<br>
2009/12/10 Germán Carrillo <<a href="mailto:carrillo.german@gmail.com" target="_blank">carrillo.german@gmail.com</a><br></div>
<mailto:<a href="mailto:carrillo.german@gmail.com" target="_blank">carrillo.german@gmail.com</a>>>:<div class="im"><br>
> Hi Sergio.<br>
><br>
> Take a look at the QgsVertexMarker class. This way you can add<br>
points to the<br>
> map canvas.<br>
><br>
> Regards.<br>
><br>
> Germán<br>
><br>
> -------------------------------<br>
> [1] <a href="http://doc.qgis.org/head/classQgsVertexMarker.html" target="_blank">http://doc.qgis.org/head/classQgsVertexMarker.html</a><br>
><br>
><br>
> 2009/12/10 sergio cavalcante <<a href="mailto:sergio.cavalcante@gmail.com" target="_blank">sergio.cavalcante@gmail.com</a><br></div>
<mailto:<a href="mailto:sergio.cavalcante@gmail.com" target="_blank">sergio.cavalcante@gmail.com</a>>><div class="im"><br>
>><br>
>> Hello Guys,<br>
>> Any Ideas?<br>
>> Just plot a single pixel at a specific coordinate?<br>
>><br>
>> Best Regards,<br>
>> ------------------------------<br>
>> Sérgio Cavalcante<br>
>><br>
>><br>
>><br>
>><br>
>> On Tue, Dec 8, 2009 at 4:57 PM, sergio cavalcante<br>
>> <<a href="mailto:sergio.cavalcante@gmail.com" target="_blank">sergio.cavalcante@gmail.com</a><br></div><div class="im">
<mailto:<a href="mailto:sergio.cavalcante@gmail.com" target="_blank">sergio.cavalcante@gmail.com</a>>> wrote:<br>
>> > People.<br>
>> > I have a qmapcanvas. I just need to draw a single point in<br>
any pixel<br>
>> > at the mapcanvas and delete when I need.<br>
>> > Is that possible?<br>
>> ><br>
>> > Best regards,<br>
>> > ------------------------------<br>
>> > Sérgio Cavalcante<br>
>> ><br>
>> _______________________________________________<br>
>> Qgis-developer mailing list<br>
>> <a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
> --<br>
> -----------<br>
> |\__<br>
> (:>__)(<br>
> |/<br>
><br>
> Soluciones Geoinformáticas Libres<br>
> <a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br>
><br>
<br>
-- <br>
-----------<br>
|\__ (:>__)(<br>
|/ <br>
Soluciones Geoinformáticas Libres <a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br>-- <br>-----------<br> |\__ <br>(:>__)(<br> |/ <br><br>Soluciones Geoinformáticas Libres <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>