<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Jukka,</p>
    <p>Fixed per <a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/pull/54617">https://github.com/qgis/QGIS/pull/54617</a> . The infinite
      items request came from when requesting the feature count.</p>
    <p>The server returns sub-optimal content for QGIS usage:</p>
    <p>- the collection metadata does not advertize a
      extent.spatial.bbox</p>
    <p>- the /items answers don't include a "<code>numberMatched</code>"
      property that would help to get the feature count (QGIS emits a
      /items?limit=1 hoping that it returns numberMatched)</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 12/09/2023 à 17:01, Rahkonen Jukka
      via QGIS-User a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:AM0PR09MB3219EE999AF6834FE6C21CE5FDF1A@AM0PR09MB3219.eurprd09.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}span.Shkpostityyli17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}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]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">I hoped that the OAPIF
            driver would honor the check box “Only request features
            overlapping the view extent” but at least in QGIS 3.32 that
            does not happen.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">How to test:<br>
            - Set project into EPSG:4326<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">- Open the
            Debugging/development tools<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">- Zoom for example to
            lat-lon 63.189111,23.538514 and set scale into 1:5000<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">- Add collection
            “building” from an open OAPIF service
            <a
href="https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/"
              moz-do-not-send="true" class="moz-txt-link-freetext">
https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/</a>.
            Use feature paging with page size 1000.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">- Remove the layer from
            the project because otherwise QGIS continues downloading a
            few million building polygons<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">- Check the http
            requests<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">The http history shows
            that after a bunch of probing OAPIF requests QGIS sends
            plain &items= request without &bbox= and thus asks
            the server to send the whole collection. What QGIS does
            right is that it follows the next-links and continues
            downloading.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><a
href="https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/collections/building/items?limit=1000&crs=http://www.opengis.net/def/crs/EPSG/0/4326"
              moz-do-not-send="true">https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/collections/building/items?limit=1000&crs=http://www.opengis.net/def/crs/EPSG/0/4326</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I wonder if the view
            extent limit should work also for OAPIF or is a not-yet
            implemented feature?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-User mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-User@lists.osgeo.org">QGIS-User@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>