Skip to content

Commit

Permalink
fixed #5673
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@199 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed May 31, 2012
1 parent ce52bb5 commit 319fd20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/sextante/ftools/Buffer.py
Expand Up @@ -13,6 +13,8 @@ def buffering(progress, output, distance, field, useSelection, useField, layer,
allAttrs = vproviderA.attributeIndexes()
vproviderA.select( allAttrs )
fields = vproviderA.fields()
if useField:
field = vproviderA.fieldNameIndex(field)
writer = QgsVectorFileWriter(output, systemEncoding, fields, QGis.WKBPolygon, vproviderA.crs() )
# check if writer was created properly, if not, return with error
if writer.hasError():
Expand Down
2 changes: 1 addition & 1 deletion src/sextante/ftools/VariableDistanceBuffer.py
Expand Up @@ -31,7 +31,7 @@ def processAlgorithm(self, progress):
field = self.getParameterValue(VariableDistanceBuffer.FIELD)
segments = int(self.getParameterValue(VariableDistanceBuffer.SEGMENTS))
layer = QGisLayers.getObjectFromUri(self.getParameterValue(VariableDistanceBuffer.INPUT))
buff.buffering(progress, output, 0, field, useSelection, False, layer, dissolve, segments)
buff.buffering(progress, output, 0, field, useSelection, True, layer, dissolve, segments)

def defineCharacteristics(self):
self.name = "Variable distance buffer"
Expand Down

0 comments on commit 319fd20

Please sign in to comment.