Isn't there a save method for QgsVectorLayer
created for example like this:
i_out = processing.run("native:buffer",
{'INPUT':'C:/GIS/data/testdata/ak_riks.shp',
'DISTANCE':100000,'SEGMENTS':5,'END_CAP_STYLE':0,
'JOIN_STYLE':0,'MITER_LIMIT':2,'DISSOLVE':True,
'OUTPUT':'TEMPORARY_OUTPUT'})['OUTPUT']
print(type(i_out))
<class 'qgis._core.QgsVectorLayer'>
The way I save it now is:
processing.run("gdal:convertformat",{
'INPUT':i_out,
'OPTIONS':'',
'OUTPUT':'C:/GIS/data/testdata/fdsfdsds2.shp'
})
Does not seem to be a save method:
for m in dir(i_out):
if m.startswith("save"):
print(m)
saveDefaultMetadata
saveDefaultStyle
saveNamedMetadata
saveNamedStyle
saveSldStyle
saveStyleToDatabase