<div dir="auto">Hi jukka,<div dir="auto">The time low differenze could be to the use of a geopackage SQLite Instead of a spatialite SQLite ?</div><div dir="auto"><br></div><div dir="auto">A.</div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 19 dic 2016 23:34, "Rahkonen Jukka (MML)" <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> ha scritto:<br type="attribution"><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_486038520296400227WordSection1">
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If I set
</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New"">"wfs_use_default_extent_for_<wbr>getfeature" "yes"<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">I  see a difference<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">[Tue Dec 20 00:28:37 2016].113723 msOGRFileWhichShapes: Setting spatial filter to -1e+300 -1e+300 1e+300 1e+300<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">[Tue Dec 20 00:28:48 2016].950696 msOGRFileNextShape: Returning shape=9, tile=0<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">However, this change does not make is fast, notice 11 seconds between WhichShapes and Next shape.<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-<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>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<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"> Even Rouault [mailto:<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@<wbr>spatialys.com</a>]
<br>
<b>Lähetetty:</b> 20. joulukuuta 2016 0:27<br>
<b>Vastaanottaja:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a><br>
<b>Kopio:</b> Rahkonen Jukka (MML) <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@<wbr>maanmittauslaitos.fi</a>><br>
<b>Aihe:</b> Re: [mapserver-users] Mapserver 7.0.3 and disabling default extent for WFS<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">On lundi 19 décembre 2016 21:46:32 CET Rahkonen Jukka (MML) wrote:<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> Hi,<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">>
<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> I am running Mapserver 7.0.3, I have a vector layer from a quite large<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> GeoPackage through OGR connection and I have set the LAYER METADATA item<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> "wfs_use_default_extent_for_<wbr>getfeature" "no"<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">>
<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> Still if I query GetFeature simply with &COUNT=1 I can see that the default<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> extent is used msOGRFileWhichShapes: Setting spatial filter to 19969.99999<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> 6597277.99999 749676.00001 7785300.00001 This makes count based request<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> pretty slow and it take about 15 second to get the first feature.<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">>
<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> The documentation in
<a href="http://mapserver.org/ogc/wfs_server.html" target="_blank">http://mapserver.org/ogc/wfs_<wbr>server.html</a> says that this<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">> option is supported "since MapServer 7.0.3" . So what could be wrong?<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:9.0pt;font-family:"Courier New""> <u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">Jukka,<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:9.0pt;font-family:"Courier New""> <u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">thanks for spotting my brain damage...<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:9.0pt;font-family:"Courier New""> <u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">In fact there are 2 issues :<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">- a minor one: the debug message "Setting spatial filter..." was always displayed, even when the spatial filter wasn't applied<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">- a major one: the logic to interpret the yes/no value of the setting was inverted (only when it is explicitly set fortunately,
 so that doesn't break existing mapfiles without the metadata item). I've fixed that, and thus modified the doc to advertize the feature only in 7.0.4. I guess I didn't notice that since I mixed it with other optimizations.<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:9.0pt;font-family:"Courier New""> <u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">Even<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:9.0pt;font-family:"Courier New""> <u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:9.0pt;font-family:"Courier New""> <u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">--
<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New"">Spatialys - Geospatial professional services<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Courier New""><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><u></u><u></u></span></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><br></blockquote></div></div>