Skip to content
Permalink
Browse files

fixed #5673

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@199 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf
volayaf committed May 31, 2012
1 parent ce52bb5 commit 319fd2094fb1c39bb27c0671f1da0624348f36f2
Showing with 3 additions and 1 deletion.
  1. +2 −0 src/sextante/ftools/Buffer.py
  2. +1 −1 src/sextante/ftools/VariableDistanceBuffer.py
@@ -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():
@@ -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"

0 comments on commit 319fd20

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