<div><br clear="all"> </div>
<div>Hello,</div>
<div> </div>
<div>I have a loaded layer from a spatialite database successfully using:</div>
<div> </div>
<div>uri = QgsDataSourceURI()<br>uri.setDatabase(&#39;/home/martin/test-2.3.sqlite&#39;)<br>uri.setDataSource(&#39;&#39;,&#39;Towns&#39;, &#39;Geometry&#39;)<br><br>v=QgsVectorLayer(uri.uri(), &#39;Towns&#39;, &#39;spatialite&#39;)<br>
</div>
<div>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?</div>

<div> </div>
<div>Thanks a lot,</div>
<div> </div>
<div>Marcelo.</div>
<div><br> </div>
<div>Marcelo Reyes<br>Edif. Alborada Of. 605<br>Tel. 2201034<br>Cel. 72501267<br>La Paz Bolivia.<br></div>