Hi Leo, This is a limitation of the data-defined symbology.
There is no workaround other than designing your legend in a graphics software like Illustrator or Inkscape and importing it as an SVG into the print composer. Funding would be welcome to develop support for legends based on data-defined symbology. Also one would need a specification how this should be implemented. Andreas Am 05.08.2014 02:54, schrieb Leo Kris Palao: > Hi Zoltan, > > 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. > > This is how I encoded the color codes in my attribute table: > class color (R, G, B) > 1 197, 197, 197 > > Thanks, > -Leo > > > On Mon, Aug 4, 2014 at 5:31 PM, Siki Zoltan <[email protected] > <mailto:[email protected]>> wrote: > > Dear Leo, > > you can do it in the properties dialog of the layer. > For example if you have a polygon layer, and the fill color is > stored in the attribute table of the layer than > 1. open properties dialog of the layer > 2. select style tab (left) > 3. click on "Simple fill" under symbol layers (if you can't see Simple > fill, click on the triangle before Fill to extend the tree) > 4. click on data defined properties... button > 5. you can give an attribute or an expression of attributes to > define the fill color > > I hope it helps you, > Zoltan > > > On Mon, 4 Aug 2014, Leo Kris Palao wrote: > > Hi QGIS users, > > Is there a way to automatically define the symbology of vector > layer using > a column in the attribute table that defines the RGB? > > I want to do this to have a uniform color coding for each land > use types. > Some land use types might have more or less classes than for each > administrative boundary. I am thinking if I can encode the RGB > values in my > attribute table and later use it to define my symbology. > > Thanks for any help and advice, > -Leo > > > > > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user > _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
