<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <div class="moz-cite-prefix">Le 04/12/2025 à 13:35, Jan Heckman via
      gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKMUAtBOwYwE=seD=JwZY33EF6SmnHA1WQx_gZ=V+x_oi2BgYQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Dear list,</div>
        <div>The following command also outputs geometry:<br>
          <i>ogrinfo -sql "select bu_code from buurt_minimaal limit 1"
            buurt_minimaal.dbf</i><br>
        </div>
        <div>Obviously, there is a 
          buurt_minimaal.shp as well, see this <a
href="https://www.dropbox.com/scl/fi/0ui1n5bzwigcd80m8nnhk/buurt_minimaal.zip?rlkey=ojhd5qqtf028sgmjduk0v3ldf&dl=0"
            moz-do-not-send="true">link</a>.</div>
        <div>The gdal version used is a bit old: GDAL 3.5.3.<br>
        </div>
        <div>- should I do different to avoid geo dumps?</div>
      </div>
    </blockquote>
    <p>Either delete the .shp :-)  (more seriously, opening explicitly
      the .dbf or the .shp results in the same behavior in the shapefile
      driver. both are used when present),  or add "-dialect SQLite"
      since the SQLite dialect doesn't implicitly  select geometries,
      contrary to the default OGRSQL dialect</p>
    <blockquote type="cite"
cite="mid:CAKMUAtBOwYwE=seD=JwZY33EF6SmnHA1WQx_gZ=V+x_oi2BgYQ@mail.gmail.com">
      <div dir="ltr">
        <div>- (if not,) will updating gdal help me avoid this behavior?</div>
      </div>
    </blockquote>
    <p>No, the working of the OGRSQL dialect is unchanged</p>
    <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>