<div dir="ltr"><div>Hi all,</div><div><br></div><div>I have problem creating a new layer (no geometry) in SQLite data source:</div><div><br></div><div>"""</div><div>from osgeo import ogr<br><br>driver_name = "SQLite"<br>filename = "test.db"<br><br>driver = ogr.GetDriverByName(driver_name)<br><br>with driver.CreateDataSource(filename) as ds:<br>    layer = ds.CreateLayer("test", geom_type=ogr.wkbNone)<br>    field = ogr.FieldDefn("label", ogr.OFTString)<br>    layer.CreateField(field)<br><br>    layer_defn = layer.GetLayerDefn()<br>    feat = ogr.Feature(layer_defn)<br>    feat.SetField("label", "test")<br>    layer.CreateFeature(feat)<br></div><div>"""</div><div><br></div><div>Created datasource doesn't contain any layer, no errors reported. </div><div><br></div><div>When I switch to GPKG driver, everything works fine:</div><div><br></div><div>ogrinfo  test.gpkg test<br></div><div>...</div><div>OGRFeature(test):1<br>  label (String) = test<br></div><div><br></div><div>I have GDAL: 3.9.2, do you have any idea what is wrong?</div><div><br></div><div>Thanks in advance for your help, best regards, Martin</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Martin Landa<div><a href="https://geomatics.fsv.cvut.cz/en/employees/martin-landa/" target="_blank">https://geomatics.fsv.cvut.cz/en/employees/martin-landa/</a><br><a href="http://gismentors.cz/mentors/landa" target="_blank">http://gismentors.cz/mentors/landa</a></div></div></div></div>