I wanted to add a GML layer to my QGIS file, but filtered by geometry type. (the file has multiple geometry types in it, with the same layer name, and same layerID.
I came across this post: iface.addVectorLayer on a gml file causes "Select vector layers to add" dialog (pyqgis).
Here they filter it by
But how can I filter it by geometry type?