<div dir="ltr">Added a PR to implement this one<div><br></div><div><a href="https://github.com/mapserver/mapserver/pull/5585">https://github.com/mapserver/mapserver/pull/5585</a><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-08 21:29 GMT+02:00 Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@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"><div>I think it would be faster to execute the ST_Extent aggregate on a smaller set of geometries (though it might depend on the implementation).<br></div><div>The benefit would probably be that LayerGetExtent could be used to calculate the actual extent of the layer.</div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><div class="h5"><div><br><div class="gmail_extra"><br><div class="gmail_quote">2018-04-06 9:24 GMT+02:00 Rahkonen Jukka (MML) <span dir="ltr"><<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@<wbr>maanmittauslaitos.fi</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="FI" link="#0563C1" vlink="#954F72">
<div class="m_5258061074037590508m_-2027889456758984366WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">What would be the benefits of appending the ”where”? How often the query is run and can it be slow?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Lähettäjä:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> mapserver-dev [mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<wbr>lists.osgeo.org</a>]
<b>Puolesta </b>Tamas Szekeres<br>
<b>Lähetetty:</b> 6. huhtikuuta 2018 10:19<br>
<b>Vastaanottaja:</b> <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<b>Aihe:</b> [mapserver-dev] msPostGISLayerGetExtent should consider layer filter<u></u><u></u></span></p><div><div class="m_5258061074037590508h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Devs,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">We would require that msPostGISLayerGetExtent would apply the specified filter when calculating the layer extent. This would probably be happen by appending the "where" clause from  msPostGISBuildSQLWhere to sqlExtentTemplate. Does this
 make sense?<br>
<br>
I've checked the code and some of the drivers consider the filter and some are not, so I'm not completely sure about the expected behaviour.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Tamas<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div>