<div dir="ltr">Hi Zoltan,<div><br></div><div>I tried it and it was working, it defines well the symbology of my vector layer. However, there is a little bit of problem. In my legend items it only create one color (black). the color scheme of my legend doesn't seem to follow the color combinations that I set in my attribute table. it would be better if the color scheme of my attribute table will be reflected also in my legend items.</div>

<div><br></div><div>This is how I encoded the color codes in my attribute table:</div><div>class                                  color (R, G, B)</div><div>1                                         197, 197, 197</div><div>

<br></div><div>Thanks,</div><div>-Leo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 5:31 PM, Siki Zoltan <span dir="ltr"><<a href="mailto:siki@agt.bme.hu" target="_blank">siki@agt.bme.hu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Leo,<br>
<br>
you can do it in the properties dialog of the layer.<br>
For example if you have a polygon layer, and the fill color is stored in the attribute table of the layer than<br>
1. open properties dialog of the layer<br>
2. select style tab (left)<br>
3. click on "Simple fill" under symbol layers (if you can't see Simple<br>
fill, click on the triangle before Fill to extend the tree)<br>
4. click on data defined properties... button<br>
5. you can give an attribute or an expression of attributes to define the fill color<br>
<br>
I hope it helps you,<br>
Zoltan<div class="HOEnZb"><div class="h5"><br>
<br>
On Mon, 4 Aug 2014, Leo Kris Palao wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi QGIS users,<br>
<br>
Is there a way to automatically define the symbology of vector layer using<br>
a column in the attribute table that defines the RGB?<br>
<br>
I want to do this to have a uniform color coding for each land use types.<br>
Some land use types might have more or less classes than for each<br>
administrative boundary. I am thinking if I can encode the RGB values in my<br>
attribute table and later use it to define my symbology.<br>
<br>
Thanks for any help and advice,<br>
-Leo<br>
<br>
</blockquote>
</div></div></blockquote></div><br></div>