[Qgis-developer] Changing symbology setting fro a loaded layer in PyQgis

Marcelo Reyes reyesmarcelo at gmail.com
Sat Mar 27 12:48:06 EDT 2010


Hello,

I have a loaded layer from a spatialite database successfully using:

uri = QgsDataSourceURI()
uri.setDatabase('/home/martin/test-2.3.sqlite')
uri.setDataSource('','Towns', 'Geometry')

v=QgsVectorLayer(uri.uri(), 'Towns', 'spatialite')
It is a POINT layer that shows points of 8 different types. Now I would like
to change the symboly associated with the layer in order to display each
type in a different color, and if possible using a different icon. Any
example on how to do this?

Thanks a lot,

Marcelo.


Marcelo Reyes
Edif. Alborada Of. 605
Tel. 2201034
Cel. 72501267
La Paz Bolivia.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100327/09239191/attachment.html


More information about the Qgis-developer mailing list