[Qgis-developer] Re: Draw a single point

sergio cavalcante sergio.cavalcante at gmail.com
Fri Dec 11 10:53:26 EST 2009


Germán! It workerd great!
As I'm using C++ with Qt, the code to draw just a white point is here:

 QgsVertexMarker *marker = new QgsVertexMarker(m_qgsImage);

 marker->setCenter( QgsPoint( -51.235, -16.9316 ) );
 //marker->setCenter( QgsPoint( -51.235, -16.9316 ) );
 marker->setIconType( 3 );
 marker->setIconSize( 10 );
 marker->setColor( QColor( 255,255,255,255 ) );
 marker->setPenWidth ( 1 );

I was very happy...Until I zoomed the area. As a vector, obviously,
when zoomed, it remained as a small point. And, as I need to draw a
lot of points to draw a larger image composed by them, I needed that
this zoom to escale the point like a raster file. Is there a way to
plot the point onto the rasterfile?

Atenciosamente,
------------------------------
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/
>


More information about the Qgis-developer mailing list