<div dir="ltr">+1 from me, Anyway I would keep the custom mode too, which is simpler to manage in most cases...<div><br></div><div>giovanni</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014/1/9 Alessandro Pasotti <span dir="ltr"><<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div>I'm trying to build an improved legend for QWC as explained in my previous email.</div><div><br></div><div>The idea was to create an helper script (like those already existing for search) that returns json data and base64-encoded images to allow building of the legend on the client. The script currently query GetStyles to get the classes and get the image for each RULE with GetLegendGraphic, so far so good.</div>

<div><br></div><div>The legend is then cached on the file system for speed.</div><div><br></div><div>The important missing point is that I would be able to build an interactive legend, so that the user can for example click on individual classes and change visibility or maybe highlight or zoom to extent, this is why I need FILTERS.</div>

<div><br></div><div>The work is almost done, but I've come to a stop with filter generation. I can easily obtain ogc filters for each rule (they are in the SLD) but it seems like the FILTER parameter in QGIS mapserver WMS follows its own syntax.</div>

<div><br></div><div>The only option I see now is to convert OGC FILTER to the custom QGIS FILTER syntax. This is easy for simpler rules but can become difficult when rules have complex conditions.</div><div><br></div><div>

Any idea or suggestion ? </div><div><br></div><div>Since OGC FILTER parsing is already implemented in QGIS, would it be possible make the WMS understand OGG FILTER encoding in addition to the custom syntax?</div><span class="HOEnZb"><font color="#888888"><div>
<br clear="all">
<div><br></div>-- <br>Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a>
</div></font></span></div>
<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></blockquote></div><br><br clear="all"><div><br></div>-- <br>Giovanni Allegri<br>
<a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a>
</div>