То есть на входе имеем uri (желательно, но можно и QgsVectorLayer), а на выходе надо получить имя слоя, примерно вот так:
Код: Выделить всё
placers.shp из \Shapes\vector_prepared\placers\placers.shp
deposits из dbname='...' host=localhost port=5432 user='...' password='...' sslmode=disable srid=4326 type=Point table="public"."deposits" (geom)
cracks.txt из file:///...Data/cracks.txt?encoding=windows-1251&type=csv&delimiter=%5Ct&maxFields=10000&detectTypes=yes&decimalPoint=,&xField=fake_x&yField=fake_y&crs=EPSG:28414&spatialIndex=no&subsetIndex=no&watchFile=no
occurrences из C:/.../Shapes/occurences.gpkg|layername=occurrences