<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Alessandro<br>
<br>
>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?<br>
<br>
The problem is that the filter has the subset syntax of the data
provider. So it would need translation OGC syntax -> provider
syntax (or the possibility to choose between db server side
filtering or QGIS side filtering with unified syntax).<br>
<br>
Regards,<br>
Marco<br>
<br>
<br>
On 09.01.2014 15:13, Alessandro Pasotti wrote:<br>
</div>
<blockquote
cite="mid:CAL5Q6701nvWXstwvDJ=S2rv0KU59vKXCZXt+SSV7hc6m-o79eA@mail.gmail.com"
type="cite">
<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>
<div><br clear="all">
<div><br>
</div>
-- <br>
Alessandro Pasotti<br>
w3: <a moz-do-not-send="true" href="http://www.itopen.it">www.itopen.it</a>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Dr. Marco Hugentobler
Sourcepole - Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
<a class="moz-txt-link-abbreviated" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a class="moz-txt-link-freetext" href="http://www.sourcepole.ch">http://www.sourcepole.ch</a>
Technical Advisor QGIS Project Steering Committee </pre>
</body>
</html>