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

[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

[gdal-dev] Python API: Geometry.Buffer with JOIN_STYLE

2024-10-04 Thread Martin Landa via gdal-dev
Hi all, in the documentation [1] is mentioned: """ Buffer(Geometry self, double distance, char ** options)→ Geometry """ where the options argument points to [2]. But """ geom.Buffer(6, options=["JOIN_STYLE=MITRE"]) """ fails with """ File "/usr/lib/python3.11/site-packages/osgeo/ogr.py", l