I have a QgsVectorLayer
. How can I find the name of its geometry column, if the data format has one? The goal is to write layer filter queries that reference the geometry column.
It is possible to use ogr to get it but I am looking for a native PyQGIS approach without additional imports or separately loading the dataset again.