Skip to content
Permalink
Browse files

solved problem with memory storage

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@344 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf
volayaf committed Aug 10, 2012
1 parent 24406ab commit 73eb3f118ed1112717c895cd9dca058846f14b91
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/sextante/gui/SextantePostprocessing.py
  2. +1 −0 src/sextante/outputs/OutputVector.py
@@ -23,6 +23,7 @@ def handleAlgorithmResults(alg, showResults = True):
if out.value.startswith("memory:"):
layer = out.memoryLayer
layer.updateFieldMap()
layer.commitChanges()
layer.updateExtents()
QgsMapLayerRegistry.instance().addMapLayer(layer)
else:
@@ -33,6 +33,7 @@ def getVectorWriter(self, fields, geomType, crs, options=None):
v = QgsVectorLayer(types[geomType], self.description, "memory")
pr = v.dataProvider()
pr.addAttributes(fields)
v.startEditing()
self.memoryLayer = v #keep a reference to the writer
return v
else: #outputChannel is a file path

0 comments on commit 73eb3f1

Please sign in to comment.
You can’t perform that action at this time.