I need a list containing all the vector layers in a QGIS session. I have this code to get all layers, how can I put a filter to get only vector layers?
layers = QgsProject.instance().mapLayers().values()
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community