[Qgis-developer] Is QGIS supports dynamic display?

Tendfly Niu niubob at hotmail.com
Tue Aug 19 05:07:51 PDT 2014


Hi Martin,   I'm sorry to ask you again.   I looked up QgsRubberBand class, it has 5 Geometry types: Point, Line, Polygon, UnknownGeometry, NoGeometry. It seems there's no way to add a svg  symbol as a car icon on the map, or I was on a wrong way?    Here is some questions:   1, How to add a svg symbol as a instance's icon? I tried QgssvgmarkerSymbolLayerV2 class, but it didn't display.   2, How to draw a line or polygon using QgsRubberBand? I constructed a QgsRubberband instance, set some attributes, however it was not display.   Sorry to bother you.
Best RegardsBob
> Date: Tue, 19 Aug 2014 10:44:04 +0700
> Subject: Re: [Qgis-developer] Is QGIS supports dynamic display?
> From: wonder.sk at gmail.com
> To: niubob at hotmail.com
> CC: qgis-developer at lists.osgeo.org
> 
> Hi Bob
> 
> QGIS allows you to have dynamic objects on top of map canvas. These
> objects are called map canvas items, having QgsMapCanvasItem as a base
> class. You can either implement your own item or use an existing
> implementation, e.g. QgsRubberBand class (used for example to
> highlight features when doing identification). In your case, you could
> have one QgsRubberBand instance and just change its position on map
> whenever appropriate.
> 
> Cheers
> Martin
> 
> 
> On Mon, Aug 11, 2014 at 9:11 AM, 腾飞 牛 <niubob at hotmail.com> wrote:
> > Dear all,
> > I'm a new developer of QGIS using C++. I am doing a project which needs
> > dynamically displaying maps/layers(just like GPS,layers automatically
> > refreshing with the changing of object's position).I kown ARCGIS has the
> > technique called dynamic diasplay(or something like that),which supports the
> > capacity to do such things. Is QGIS has this ability? Any advices would be
> > appreciated!
> >
> > Regards
> > Bob
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140819/23d84575/attachment-0001.html>


More information about the Qgis-developer mailing list