I'm writing a QGIS plugin and I need to create a table with some attributes that, in a second moment, I'll load in a SpatiaLite database.
The table is created as a memory layer, but as I said, it is just an attribute table, so the features don't have any geometric requirements.
I'm not able to create a memory layer without geometry. Is there a way to do that?
From the cookbook it seems it is not possible to create a geometryless memory layer.
I thought it was possible to set the geometry after the layer creation using a combination of QgsGeometry
and from Wkb
with a specific option activated.
But I have not been able to do that.
Does someone have some suggestions?