[Qgis-developer] How to change layer without redrawing the whole map

Marco Hugentobler marco.hugentobler at sourcepole.ch
Wed Nov 2 06:27:00 EDT 2011


Hi Jonny

One possibility to handle this is to create a subclass of 
QgsMapCanvasItem to display the car symbols. That way, the QGIS 
background map is not re-rendered if the items change position.

Regards,
Marco

On 02.11.2011 09:26, Kanwar, Jonny wrote:
> Dear all,
>
> We would like to write a Qgis plugin (either C++ or python, doesn't
> matter) that allows us to visualize movements of vehicles over time.
> Suppose the plugin provides coordinates for each second and vehicle. Our
> fear is that for each frame to be rendered the whole map is redrawn. Do
> you see a way to enable Qgis to only update the animated layer and not
> all layers at once?
>
> We know there is the time manager plugin that provides capabilities
> similar to our requests. However, at our tests, this plugin suffered of
> poor performance.
>
> To get a bit more technical: As far as I understand the QgsMapCanvas has
> to be redrawn as soon as a single element of one of the layers changes.
> Is there a way to add some overlay that is just merged with the other
> (already rendered) image?
>
> Thanks for your support.
>
> Jonny Kanwar
>
>
> ******************************************
>
> ******************************************
>
>
> Fraport AG
> Frankfurt Airport Services Worldwide
> 60547 Frankfurt am Main
>
> Sitz der Gesellschaft:
> Frankfurt am Main
> Amtsgericht Frankfurt am Main: HRB 7042
> Umsatzsteuer-Identifikationsnummer: DE 114150623
>
> Vorsitzender des Aufsichtsrates:
> Karlheinz Weimar - Hessischer Finanzminister a.D.
>
> Vorstand:
> Dr. Stefan Schulte (Vorsitzender)
> Herbert Mai
> Peter Schmitz
> Dr. Matthias Zieschang
> ******************************************
> Diese E-Mail kann vertrauliche und/oder rechtlich geschuetzte Informationen enthalten.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
> ******************************************
> _______________________________________________
> 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