<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Jesse,<br>
</p>
<div class="moz-cite-prefix">Le 30/09/2024 à 20:35, Meyer, Jesse R.
(GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC] via gdal-dev a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:MN2PR09MB5932FDA497804AC0B6667279C9762@MN2PR09MB5932.namprd09.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:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have two geopackage database files that
were constructed, somehow, in a way that one has a geometry
column called ‘geometry’ and the other ‘geom’. QGIS nor OGR
seem to have much an issue with this. Both handle / display
all the features in the expected ways. However, for the gpkg
with the ‘geom’ column name (which I believe is irregular),
the usual SQLisms (with dialect=sqlite) seem to fail. For the
former gpkg, I can use the GEOMETRY identifier as documented
successfully, however, this fails with the latter with an ‘no
such column: GEOMETRY’ error. The documentation leads me to
believe that that identifier _<i>should</i>_ resolve to
whatever the geometry column name is,</p>
</div>
</blockquote>
Hum, that was an unfortunate copy&paste from the OGR SQL
dialect... Will be fixed per
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/10900">https://github.com/OSGeo/gdal/pull/10900</a><br>
<blockquote type="cite"
cite="mid:MN2PR09MB5932FDA497804AC0B6667279C9762@MN2PR09MB5932.namprd09.prod.outlook.com">
<div class="WordSection1">
<p class="MsoNormal"> and maybe it does internally but then
something later goes haywire for opaque reasons.</p>
</div>
</blockquote>
<p>Only for OGR SQL, not for the SQLite native SQL as used by GPKG.
For the later you need to use exactly the geometry column name of
the table.<br>
</p>
Even
<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>