<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Jukka,<o:p></o:p>
    <blockquote type="cite"
cite="mid:AM0PR09MB32198D8CA8F92C680A1A196FFDCDA@AM0PR09MB3219.eurprd09.prod.outlook.com">
      <div class="WordSection1">
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">The documentation in <a
href="https://gdal.org/drivers/vector/oapif.html#layer-schema"
              moz-do-not-send="true" class="moz-txt-link-freetext">
              https://gdal.org/drivers/vector/oapif.html#layer-schema</a>
            is wrong when it claims this:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">OGR needs a fixed schema
            per layer, but OGC API - Features Core doesn't impose fixed
            schema. So the driver will retrieve the first page of
            features (10 features) and establish a schema from this.<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 can see from the debug
            info and from the source code that if GDAL finds a relation
            of type “describedBy” for a collection then it reads and
            interprets the schema from the link. However, I am not sure
            if  GDAL in this case trusts the schema and skips scanning
            of the first ten features for harvesting the attributes.</span></p>
      </div>
    </blockquote>
    It doesn't fully trust the schema provided by describedBy and still
    scans the first page of feature to complement it. Doc adjusted<br>
    <blockquote type="cite"
cite="mid:AM0PR09MB32198D8CA8F92C680A1A196FFDCDA@AM0PR09MB3219.eurprd09.prod.outlook.com">
      <div class="WordSection1">
        <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">BTW, the name of the
            relation type has been changed into “describedby” due to
            <a
href="https://github.com/opengeospatial/ogcapi-features/issues/338"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/opengeospatial/ogcapi-features/issues/338</a>.
            It is better to support both describedBy and describedby.</span></p>
      </div>
    </blockquote>
    <p>Thanks. Fixed too (GDAL made case insensitive comparisons)</p>
    <p>Even<br>
    </p>
    <blockquote type="cite"
cite="mid:AM0PR09MB32198D8CA8F92C680A1A196FFDCDA@AM0PR09MB3219.eurprd09.prod.outlook.com">
      <div class="WordSection1">
        <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="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</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>