<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML - vooraf opgemaakt Char";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}
span.HTML-voorafopgemaaktChar
{mso-style-name:"HTML - vooraf opgemaakt Char";
mso-style-priority:99;
mso-style-link:"HTML - vooraf opgemaakt";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F3864;mso-fareast-language:EN-US">Hi Even,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F3864;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F3864;mso-fareast-language:EN-US">Thanks for taking a look. I did not notice the visibility of the repo I created was set to private. I just set it to public, should be accessible now. <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="color:#1F3864;mso-fareast-language:EN-US"><br>
</span><span lang="EN-GB">I suspect a mismatch between bounding box test and exact intersection that confuses the logic that decides if there's a next page. When we have a COUNT of 1000, we actually ask for 1001 features. If there are 1001 features, then we
now there's a next page. If there are <= 1000 one, there's none. Something must eliminate one or several features out of the 1001 initial ones.<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Good to hear I am not the only one with a suspicion. I will file the issue on the issue tracker on GH.<br>
<br>
I actually tried checking for exact intersections by exploding all the line geometries to points, and check for intersections with the bbox edges. But could not find any points intersecting with the bbox edge. Intersection between line and point should work,
no?<br>
<br>
</span><span lang="EN-GB" style="color:#1F3864;mso-fareast-language:EN-US">ogr2ogr -f GPKG points.gpkg data.gpkg -explodecollections -unsetFID -sql "select asgpb(DissolvePoints(GeomFromGPB(geometry))) as geometry, geo_id, uri from beheer_leiding" -nln beheer_leiding<br>
<br>
ogrinfo points.gpkg -sql "select * from beheer_leiding where Intersects(GeomFromGPB(geometry), MakeLine(MakePoint(80034.6,452005.1,28992), MakePoint(80034.6,453965.8,28992)))"<br>
<br>
Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F3864;mso-fareast-language:EN-US">Anton<br>
<br>
<br>
</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Van:</b> Even Rouault <even.rouault@spatialys.com> <br>
<b>Verzonden:</b> woensdag 12 mei 2021 15:57<br>
<b>Aan:</b> Bakker, Anton <Anton.Bakker@kadaster.nl>; mapserver-users@lists.osgeo.org<br>
<b>Onderwerp:</b> Re: [mapserver-users] Next link missing WFS 2.0 getfeature response for specific bbox<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anton, <o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB">I created a repo (<a href="https://secure-web.cisco.com/1y8LpfF5hS18UqK5XUee3MEdOipp-FGiiQbtnDYL4Bgwq7Vnmqi3HunXZvukVs_2PH0wFJj3M9NNzU3w8PRyiUcooO02YOE2TjF8SKH2ADv8Q4s67_p3zREQw6dmMDyjew2kMyzecxkc2GMVJnaXOe9WEpWTYWKeJ1M-kxC22-wLWsywAHWTYFCV6vC92dN-NiP65KpE-O8nmPa1-qqUX4IwAISE9rUJgKLJHt2HRxB_tDjoyLGA_JSoYg1Pq-TeW/https%3A%2F%2Fgithub.com%2Farbakker%2Fdebug-ms-bbox-issue">https://secure-web.cisco.com/1y8LpfF5hS18UqK5XUee3MEdOipp-FGiiQbtnDYL4Bgwq7Vnmqi3HunXZvukVs_2PH0wFJj3M9NNzU3w8PRyiUcooO02YOE2TjF8SKH2ADv8Q4s67_p3zREQw6dmMDyjew2kMyzecxkc2GMVJnaXOe9WEpWTYWKeJ1M-kxC22-wLWsywAHWTYFCV6vC92dN-NiP65KpE-O8nmPa1-qqUX4IwAISE9rUJgKLJHt2HRxB_tDjoyLGA_JSoYg1Pq-TeW/https%3A%2F%2Fgithub.com%2Farbakker%2Fdebug-ms-bbox-issue</a>)
</span><o:p></o:p></p>
</div>
</blockquote>
<p>Did you ? I can't access it. Please file an issue with all elements you mentioned.<o:p></o:p></p>
<p>This might be at least slightly related to <a href="https://secure-web.cisco.com/1UjKo9o1slMlOr5t3AdHpWyenYMkKsq_95vtfjB_RznEJv9Kj6OlpXrzlYuD01pSXRLRgAGVkDJXJNZdqeCIORN9UdPFXJZY19fDEuJeFuANaQ7fyFLMfW2f5JyR9GZ0F0SUh5HBgmMOUOt0DSp_5u05M1Rwo1LCdJ7pBQp9ZvPjF-rxDA_N4W3m1iJAifjJjMia1IaeEsQ7MgAoh_fB4NwKDg9Hfv1fPT7msizf1_x6seEeSGVEfmK51P8Q3mu-b/https%3A%2F%2Fgithub.com%2FMapServer%2FMapServer%2Fissues%2F6181">
https://secure-web.cisco.com/1UjKo9o1slMlOr5t3AdHpWyenYMkKsq_95vtfjB_RznEJv9Kj6OlpXrzlYuD01pSXRLRgAGVkDJXJNZdqeCIORN9UdPFXJZY19fDEuJeFuANaQ7fyFLMfW2f5JyR9GZ0F0SUh5HBgmMOUOt0DSp_5u05M1Rwo1LCdJ7pBQp9ZvPjF-rxDA_N4W3m1iJAifjJjMia1IaeEsQ7MgAoh_fB4NwKDg9Hfv1fPT7msizf1_x6seEeSGVEfmK51P8Q3mu-b/https%3A%2F%2Fgithub.com%2FMapServer%2FMapServer%2Fissues%2F6181</a>
,although perhaps specific to the OGR GeoPackage backend. I suspect a mismatch between bounding box test and exact intersection that confuses the logic that decides if there's a next page. When we have a COUNT of 1000, we actually ask for 1001 features. If
there are 1001 features, then we now there's a next page. If there are <= 1000 one, there's none. Something must eliminate one or several features out of the 1001 initial ones.<o:p></o:p></p>
<p class="MsoNormal">Even<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre><a href="http://secure-web.cisco.com/1awtwwweOuwd2S2Ja6CXMJ78vPouzTkWZgA0MI6wnnrRZAk7RS6SoFsiBlgK0eIhR6_nek8OZWweoPPM86kXqM37Znah7vBJ7EDhe0eCjS0i7dqliDynbln9qVkuLlQYRlagC0gBWwqDw2IkT8vyQjHMrAX2OUks4FM1HWLVDHS5o9PNw_CY_cVcawTKN_ErG9x2WGI4Eo44vCDq4I3fjlQHVclVplg1_jRfsUXCXFXPLD4WPxP3mczXJwOX0bEqX/http%3A%2F%2Fwww.spatialys.com">http://secure-web.cisco.com/1awtwwweOuwd2S2Ja6CXMJ78vPouzTkWZgA0MI6wnnrRZAk7RS6SoFsiBlgK0eIhR6_nek8OZWweoPPM86kXqM37Znah7vBJ7EDhe0eCjS0i7dqliDynbln9qVkuLlQYRlagC0gBWwqDw2IkT8vyQjHMrAX2OUks4FM1HWLVDHS5o9PNw_CY_cVcawTKN_ErG9x2WGI4Eo44vCDq4I3fjlQHVclVplg1_jRfsUXCXFXPLD4WPxP3mczXJwOX0bEqX/http%3A%2F%2Fwww.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
</div>
<br>
<br>
<font size="2">Disclaimer:<br>
De inhoud van dit bericht is uitsluitend bestemd voor geadresseerde.<br>
Gebruik van de inhoud van dit bericht door anderen zonder toestemming van het Kadaster<br>
is onrechtmatig. Mocht dit bericht ten onrechte bij u terecht komen, dan verzoeken wij u<br>
dit direct te melden aan de verzender en het bericht te vernietigen.<br>
Aan de inhoud van dit bericht kunnen geen rechten worden ontleend.<br>
<br>
Disclaimer:<br>
The content of this message is meant to be received by the addressee only.<br>
Use of the content of this message by anyone other than the addressee without the consent<br>
of the Kadaster is unlawful. If you have received this message, but are not the addressee,<br>
please contact the sender immediately and destroy the message.<br>
No rights can be derived from the content of this message.<br>
</font>
</body>
</html>