<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014/1/9 Marco Hugentobler <span dir="ltr"><<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.ch</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><div class="im">>I thought this OGC filtering stuff
was already implemented for WFS server isn't it?<br>
<br></div>
Yes, that's what I meant with data provider filtering vs. QGIS
filtering. WFS server uses QgsExpression (QGIS side filtering)
while WMS takes the filter and sets the subset to the provider (db
side filtering).<br>
So it could be done by switching to QgsExpression depending on the
filter format (pull requests welcome). Data provider syntax still
needs to be supported because this kind of filtering is more
powerfull and more performant.<br>
<br>
Regards,<br>
Marco<div><div class="h5"><br>
<br>
On <a href="tel:09.01.2014%2017" value="+390901201417" target="_blank">09.01.2014 17</a>:41, Alessandro Pasotti wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">2014/1/9 Marco Hugentobler <span dir="ltr"><<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.ch</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Alessandro
<div><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>
</div>
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>
</div>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>I thought this OGC filtering stuff was already
implemented for WFS server isn't it?</div>
<div>
<br>
</div>
</div>
<div><br>
</div>
-- <br>
Alessandro Pasotti<br>
w3: <a href="http://www.itopen.it" target="_blank">www.itopen.it</a>
</div>
</div>
</blockquote>
</div></div></div></blockquote></div><div class="gmail_extra"><br></div><div class="gmail_extra">Ok, summarizing:</div><div class="gmail_extra"><br></div><div class="gmail_extra">in WFS we have the standard OGC "FILTER" plus the QGIS custom "EXP_FILTER"</div>
<div class="gmail_extra">in WMS we have QGIS custom "FILTER"</div><div class="gmail_extra"><br></div><div class="gmail_extra">IMHO the best solution would be to have the same parameters also in WMS, so:</div><div class="gmail_extra">
<br></div><div class="gmail_extra">rename WMS QGIS custom "FILTER" to "EXP_FILTER" and</div><div class="gmail_extra">implement OGC "FILTER" even if it's not in the standard</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Do you think that we can re-use the WFS OGC FILTER code for the WMS OGC FILTER implementation?</div><div class="gmail_extra"><br></div><div><br></div>-- <br>Alessandro Pasotti<br>w3: <a href="http://www.itopen.it">www.itopen.it</a>
</div></div>