Re: [gdal-dev] SQLite: create layer with wkbNone

2024-10-30 Thread Martin Landa via gdal-dev
Hi Even, st 30. 10. 2024 v 13:02 odesílatel Even Rouault napsal: > Add the "-oo LIST_ALL_TABLES=YES" open option to your ogrinfo call: > https://gdal.org/en/latest/drivers/vector/sqlite.html > > (GPKG has a gpkg_contents table where non-spatial layers that are user > facing are listed. There is

Re: [gdal-dev] SQLite: create layer with wkbNone

2024-10-30 Thread Even Rouault via gdal-dev
Martin, Add the "-oo LIST_ALL_TABLES=YES" open option to your ogrinfo call: https://gdal.org/en/latest/drivers/vector/sqlite.html (GPKG has a gpkg_contents table where non-spatial layers that are user facing are listed. There is no such thing in "pure" SQLite, and historically the driver has

[gdal-dev] SQLite: create layer with wkbNone

2024-10-30 Thread Martin Landa via gdal-dev
Hi all, I have problem creating a new layer (no geometry) in SQLite data source: """ from osgeo import ogr driver_name = "SQLite" filename = "test.db" driver = ogr.GetDriverByName(driver_name) with driver.CreateDataSource(filename) as ds: layer = ds.CreateLayer("test", geom_type=ogr.wkbNon