mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix resolving memory layers when multiple memory layers are used in model
This commit is contained in:
parent
2b1dda4c78
commit
b1eecfdba4
@ -557,6 +557,7 @@ def createVectorWriter(destination, encoding, fields, geometryType, crs, context
|
||||
layer = QgsVectorLayer(uri, destination, 'memory')
|
||||
sink = layer.dataProvider()
|
||||
context.temporaryLayerStore().addMapLayer(layer, False)
|
||||
destination = layer.id()
|
||||
elif destination.startswith(POSTGIS_LAYER_PREFIX):
|
||||
uri = QgsDataSourceUri(destination[len(POSTGIS_LAYER_PREFIX):])
|
||||
connInfo = uri.connectionInfo()
|
||||
|
Loading…
x
Reference in New Issue
Block a user