I am trying to convert a dlm50 NAS file of Rheinlandpfalz (Germany) to shapefile. With ogr2ogr this repeadetly converts Polygons to Lines and whole layers are missing. If I import it into QGIS and use the validate algorithm it works fine though (ogr convert format still fails).
Importing them in QGIS gives a pop-up where I can chose all layers I want to import. I don't find a way to do this in a python script though. Yes I can open them with QgsVectorLayer and ogr driver but I receive one object, which can't be used properly. I had also problems with this with OSM-files and spatialite files which have failed to load with the spatialite driver but succeded with ogr import (may have been to big?).
I know I should try to convert the dlm50 file to PostGIS but it will be the same driver for reading and I am generally interested if I miss something and the import of such files is possible somehow in a standalone python script (not in QGIS Python console). It should also be possible to work with such files without the need to preliminary convert them to other formats?!
So how can I import layers of multiple layer files like NAS/OSM/Spatialite in a standalone python script?