Skip to content

Commit

Permalink
solved problem with memory storage
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@344 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Aug 10, 2012
1 parent 24406ab commit 73eb3f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sextante/gui/SextantePostprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/sextante/outputs/OutputVector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73eb3f1

Please sign in to comment.