I am currently creating a vector layer like following:
outLayer = QgsVectorLayer('Linestring?crs='+ crs, 'graph_with_azimuth_ogr' , 'memory')
The outLayer is now stored in memory, which means it only stores the layer temporarily. If I restart QGIS, the layer will be deleted again.
My question is: How is it possible to create a vector layer which is permanently stored or which storage provider do I need to achieve this?
I have already tried it with the "ogr"
storage provider, but it does not work. Any suggestions?