<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Jukka,</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/commit/36aa932aba3775f1e6ec825ba39c633442ffa640">https://github.com/OSGeo/gdal/commit/36aa932aba3775f1e6ec825ba39c633442ffa640</a>
should help</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 21/06/2021 à 16:01, Rahkonen Jukka
(MML) a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:a4f4cd3ce0a34e1da26441ccdab903df@maanmittauslaitos.fi">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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.Shkpostityyli18
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
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"><span lang="EN-US">Hi,<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">With this request<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">ogrinfo
OAPIF:<a class="moz-txt-link-freetext" href="https://beta-paikkatieto.maanmittauslaitos.fi/kiinteisto-avoin/features/v1/">https://beta-paikkatieto.maanmittauslaitos.fi/kiinteisto-avoin/features/v1/</a>
-dialect sqlite -sql "select * from RajamerkinSijaintitiedot
limit 10" --debug on<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">ogrinfo does not use the
“id” member as feature id nor does is report it as an
attribute. Id exists in the data in this format<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">{"type":"FeatureCollection","features":[{"type":"Feature","id":12425552,"properties":{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">as can be checked with <a
href="https://beta-paikkatieto.maanmittauslaitos.fi/kiinteisto-avoin/features/v1/collections/RajamerkinSijaintitiedot/items?f=json&limit=10"
moz-do-not-send="true">
https://beta-paikkatieto.maanmittauslaitos.fi/kiinteisto-avoin/features/v1/collections/RajamerkinSijaintitiedot/items?f=json&limit=10</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">The service that is used
as reference in <a
href="https://gdal.org/drivers/vector/oapif.html"
moz-do-not-send="true">
https://gdal.org/drivers/vector/oapif.html</a> is having
the id as string<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">"type" : "Feature","id"
: "DENW42AL1000NscuFL",<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">and in this case ogrinfo
does not use “id” ad fid either but at least reads it as a
normal attribute<br>
ogrinfo -al
OAPIF:<a class="moz-txt-link-freetext" href="https://www.ldproxy.nrw.de/rest/services/kataster">https://www.ldproxy.nrw.de/rest/services/kataster</a>
flurstueck --debug on<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">OGRFeature(flurstueck):110<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> id (String) =
DENW42AL1000NtLGFL<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">I managed to get the
“id” used as fid when converting data from the service at
maanmittauslaitos.fi into geopackage by using -preserve_fid
but for some reason today even that does not work for me.<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>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></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>