AW: [Qgis-developer] Many symbols in the same layer
Hugentobler Marco
marco.hugentobler at karto.baug.ethz.ch
Sat Feb 28 02:09:38 EST 2009
Hi Ahmed
You can do so by using a subclass of QgsRenderer and adding different symbols (QgsSymbol) to it. E.g. you may use QgsGraduatedSymbolRenderer to classify the features based upon attribute value ranges. There is a subclass of QgsRenderer for every option displayed in the GUI element of vector properties -> symbology -> legend type. Then you add your renderer to the vector layer using the method 'setRenderer' of the vector layer class.
Regards,
Marco
-----Ursprüngliche Nachricht-----
Von: qgis-developer-bounces at lists.osgeo.org im Auftrag von Ahmed Amin Sethom
Gesendet: Fr 27.02.2009 21:27
An: Qgis-developer at lists.osgeo.org
Betreff: [Qgis-developer] Many symbols in the same layer
Hi QGIS devs
I'm developping a gis application with the pyqgis extension and I have some problems in docs so I hope you will help me
I want to make different symbols in the same layer,I found this while using Qgis but there is no code which explains how could I do this. There are classes that could be generated with qgis.I just want an example doing this with Python or C++
I wish you understand my problem
Thank you in advance
SETHOM Ahmed Amin
More information about the Qgis-developer
mailing list