<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    So here is the working not working setup. Unfortunately the working
    OGR WFS client layers are all private so I can not share them.<br>
    <br>
    This call delivers objects as expected:<br>
<a class="moz-txt-link-freetext" href="http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&SRSNAME=EPSG:3857&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&Maxfeatures=10&TYPENAME=TestLayer">http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&SRSNAME=EPSG:3857&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&Maxfeatures=10&TYPENAME=TestLayer</a><br>
    This one, too:<br>
<a class="moz-txt-link-freetext" href="http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&SRSNAME=EPSG:3857&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&Maxfeatures=10&TYPENAME=TestLayer">http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&SRSNAME=EPSG:3857&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&Maxfeatures=10&TYPENAME=TestLayer</a><br>
    <br>
    Data is delivered in the correct srs (verified manually with QGIS).<br>
    <br>
    This call doesn't work as described before as BBOX is not
    transmitted to external server:<br>
<a class="moz-txt-link-freetext" href="http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&SRSNAME=EPSG:3857&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&BBOX=791880.72463009,6321925.37255709,792929.63787777,6322786.10157277&TYPENAME=TestLayer">http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&SRSNAME=EPSG:3857&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&BBOX=791880.72463009,6321925.37255709,792929.63787777,6322786.10157277&TYPENAME=TestLayer</a><br>
    <br>
    While the same direct call works:<br>
<a class="moz-txt-link-freetext" href="http://sg.geodatenzentrum.de/wfs_info?SRSNAME=EPSG:3857&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&BBOX=791880.72463009,6321925.37255709,792929.63787777,6322786.10157277&TYPENAME=info:dop">http://sg.geodatenzentrum.de/wfs_info?SRSNAME=EPSG:3857&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&BBOX=791880.72463009,6321925.37255709,792929.63787777,6322786.10157277&TYPENAME=info:dop</a><br>
    (funny, epsg 3857 is not in the capabilities but works anyhow)<br>
    <br>
    I hope you can find out what is going wrong. Thanks so much for
    looking into this!<br>
    <br>
    Best<br>
    <br>
    Lars<br>
    <div class="moz-signature">
      <meta charset="utf-8">
      <title>SkenData Email Signatur</title>
      <div><br>
      </div>
      <div>
        <br>
      </div>
    </div>
    <div class="moz-cite-prefix">Am 27.05.21 um 18:28 schrieb Rahkonen
      Jukka (MML):<br>
    </div>
    <blockquote type="cite"
      cite="mid:c7eac89bb6fa489babf8e66162cb882f@maanmittauslaitos.fi">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <title>SkenData Email Signatur</title>
      <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;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}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;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}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"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-US">Have you already tried to use WFS connection
            instead of OGR connection?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US">-Jukka
            Rahkonen-<o:p></o:p></span></p>
        <p class="MsoNormal"><span 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>Lähettäjä:</b> mapserver-users
              <a class="moz-txt-link-rfc2396E" href="mailto:mapserver-users-bounces@lists.osgeo.org"><mapserver-users-bounces@lists.osgeo.org></a>
              <b>Puolesta </b>Lars Fricke<br>
              <b>Lähetetty:</b> torstai 27. toukokuuta 2021 14.59<br>
              <b>Vastaanottaja:</b> <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
              <b>Aihe:</b> Re: [mapserver-users] WFS Client returns data
              at random with very same call<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Dear all, <br>
          I apologize for finding and posting bits and pieces not all at
          one time. <br>
          I fired up 'CONFIG "CPL_DEBUG" "ON"' and there I see, that <br>
          """<o:p></o:p></p>
        <div>
          <div>
            <p class="MsoNormal">HTTP: Fetch(<a
href="http://url-to-external-server?SERVICE=WFS&VERSION=1.1.0&MAXFEATURES=1000&REQUEST=GetFeature&TYPENAME=dop"
                moz-do-not-send="true">http://url-to-external-server?SERVICE=WFS&VERSION=1.1.0&MAXFEATURES=1000&REQUEST=GetFeature&TYPENAME=dop</a>)<br>
              """<br>
              So there is no BBOX. On other layers I see<br>
              """<br>
              GDALOpen(/vsicurl_streaming/https:... <br>
              """<br>
              with BBOX. <br>
              No wonder I do not get reliable results if the server is
              calling some 1000 whatsoever result objects and starts
              filtering the bbox after.
              <br>
              <br>
              Any idea what is happening? Or is this something for a
              GDAL thread?<br>
              <br>
              Best<br>
              Lars<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>