I agree Regis, it would add a new "dimension" to the rendering engine. <div>+1 also from me.</div><div><br></div><div>giovanni<br><div><br><div class="gmail_quote">2012/7/9 Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Régis,<br>
<br>
I think that would a good feature to add. It would add a lot of power<br>
to the rendering engines, including the rule based render. +1 from me<br>
for adding support for this if we can.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Nathan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Jul 9, 2012 at 6:18 PM, haubourg<br>
<<a href="mailto:regis.haubourg@eau-adour-garonne.fr">regis.haubourg@eau-adour-garonne.fr</a>> wrote:<br>
> Hi Andreas,<br>
> maybe I missed something, please tell me.<br>
><br>
> This is how I see the matter:<br>
> Rule based styling allows to create rules based on *existing* fields with<br>
> SQL queries, but, *Refine assistants only have access to existing fields*.<br>
> Once refined rules on single or multiple fields are created, you then have<br>
> the possibility to use expression evaluator to modify each rule, reorder,<br>
> one after each other. This is awesome for many use cases, but not for thoses<br>
> ones :<br>
><br>
> * Example 1:classify and normalize numeric data*  You want to apply a sqrt<br>
> function on a numeric field and classify it with graduate value. Having the<br>
> expression builder accessible instead of fields list allows it directly.<br>
> Mapinfo allows you to classify a expression (sqrt(myfield)/max(myfield) *<br>
> 100 for example).  *Doing it in QGIS requires to create a new field. So the<br>
> user need to have rights on it or duplicate it.* I don't like that users<br>
> duplicate data, since I am data administrator. Modifying data for<br>
> representation purposes is bad too.<br>
><br>
><br>
> *Example 2: Calculate advanced rotation and size fields : *I have waste<br>
> water plants to map. I want them red symbols for dysfunctionning plants and<br>
> green for the others. I want a point size varying based on size (~number of<br>
> inhabitants). If I want a correct representation, I want point size to vary<br>
> between 40 mm on screen and 0.1. With an expression instead of existing<br>
> fields, this can be easy. *I do know how to do that in postgis or<br>
> spatiallite view by myself. Common users don't *<br>
> This would be even easier with a dedicated gui to help user choose an d<br>
> preview Sqrt, exp , or Ln dynamic.<br>
><br>
> *Example 3: generate unique values for legend labels*I need to categorize<br>
> data on a field, but with a display order (40 classes). I have a code for<br>
> classe number, and a label field.  In QGIS, I have two choices: Classify on<br>
> code and manually change labels (long and painful), or classify on label<br>
> field with ruled based labeling, and then order classes with priority order.<br>
> Long and painful too. With an expression, I could evaluate "code" || ' - '<br>
> || "label" , and have it sorted and readable directly. Not perfect, but<br>
> fast. *This is what we need when having a meeting with authorities and only<br>
> 3 hours to prepare a draft map. *<br>
><br>
> Did I miss something? I think QGIS still need some work to achieve all<br>
> cartographic representation rules (<br>
> <a href="http://www.scribd.com/doc/33408233/SUG243-Cartography-Proportional-Symbol" target="_blank">http://www.scribd.com/doc/33408233/SUG243-Cartography-Proportional-Symbol</a><br>
> <a href="http://www.scribd.com/doc/33408233/SUG243-Cartography-Proportional-Symbol" target="_blank">http://www.scribd.com/doc/33408233/SUG243-Cartography-Proportional-Symbol</a> )<br>
><br>
> Are you interested if my organisation supports such a functionnality?<br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Expression-Based-Styling-tp4986594p4986858.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Expression-Based-Styling-tp4986594p4986858.html</a><br>

> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div></div>