<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I think I've found some inconsistencies in GML parsing.</div><div dir="ltr"><br></div><div dir="ltr">Given the following example GML:<div><br></div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><gml:FeatureCollection</div><div>  xmlns:gml="<a href="http://www.opengis.net/gml/3.2">http://www.opengis.net/gml/3.2</a>"</div><div>  xmlns:ex="<a href="http://example.com">http://example.com</a>"</div><div>  xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>"</div><div>  xmlns:xml="<a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>"</div><div>  xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</div><div>  gml:id="id.05e55fe5-b525-4cf2-9977-fedfc0532fd6"></div><div>  <gml:featureMember></div><div>    <ex:MyFeaturetype1 gml:id="id.8685d1b8-a851-4034-b8ed-a4c785667386"></div><div>      <ex:a1 xsi:nil="true" nilReason="unknown" /></div><div>      <ex:a2 uom="m" /></div><div>      <ex:a3 xlink:href="<a href="https://test.com/value">https://test.com/value</a>" xlink:title="title" /></div><div>      <ex:a4 xlink:href="#id.8685d1b8-a851-4034-b8ed-a4c785667386" /></div><div>      <ex:a5 /><br></div><div>    </ex:MyFeaturetype1></div><div>  </gml:featureMember></div><div></gml:FeatureCollection></div></div><div><br></div><div>ogrinfo -al will list the following columns:<br></div><div><br></div><div><div>gml_id: String (0.0) NOT NULL</div><div>a1: String (0.0)</div><div>a2_uom: String (1.0)</div></div><div><br></div><div>AFAIK it should not define the field a2_uom as GML_ATTRIBUTES_TO_OGR_FIELDS is NO as default. If I rerun it with GML_ATTRIBUTES_TO_OGR_FIELDS set to YES the result is:</div><div><br></div><div><div>gml_id: String (0.0) NOT NULL</div><div>a1: String (0.0)</div><div>a2_uom: String (1.0)</div><div>a3_title: String (5.0)</div><div>a3_href: String (22.0)</div><div>a4_href: String (40.0)</div></div><div><br></div><div>In this case we get more attributes but I think a1_nilReason is missing.</div><div><br></div><div>Also, in both cases it seems fields for empty elements are missing (a2, a3, a4 and a5).</div><div><br></div><div>Are my observations correct?</div><div><br></div><div>Regards,</div><div><br></div><div>Björn</div></div></div></div></div></div></div></div></div></div>