Skip to content

Commit 73eb3f1

Browse files
author
volayaf
committed
solved problem with memory storage
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@344 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent 24406ab commit 73eb3f1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/sextante/gui/SextantePostprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def handleAlgorithmResults(alg, showResults = True):
2323
if out.value.startswith("memory:"):
2424
layer = out.memoryLayer
2525
layer.updateFieldMap()
26+
layer.commitChanges()
2627
layer.updateExtents()
2728
QgsMapLayerRegistry.instance().addMapLayer(layer)
2829
else:

src/sextante/outputs/OutputVector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def getVectorWriter(self, fields, geomType, crs, options=None):
3333
v = QgsVectorLayer(types[geomType], self.description, "memory")
3434
pr = v.dataProvider()
3535
pr.addAttributes(fields)
36+
v.startEditing()
3637
self.memoryLayer = v #keep a reference to the writer
3738
return v
3839
else: #outputChannel is a file path

0 commit comments

Comments
 (0)