Skip to content
Permalink
Browse files

Fix #5789

  • Loading branch information
ddanielvaz committed Jul 14, 2013
1 parent 1db8347 commit d476aed464e2a4930a254c52f2a06cd26aaeb19a
Showing with 16 additions and 14 deletions.
  1. +16 −14 python/plugins/fTools/tools/doGeoprocessing.py
@@ -383,13 +383,14 @@ def buffering( self, useField ):
inGeom = QgsGeometry( inFeat.geometry() )
try:
outGeom = inGeom.buffer( float( value ), self.mySegments )
try:
outFeat.setGeometry( outGeom )
outFeat.setAttributes( atMap )
writer.addFeature( outFeat )
except:
FEATURE_EXCEPT = False
continue
if not outGeom.isGeosEmpty():
try:
outFeat.setGeometry( outGeom )
outFeat.setAttributes( atMap )
writer.addFeature( outFeat )
except:
FEATURE_EXCEPT = False
continue
except:
GEOS_EXCEPT = False
continue
@@ -444,13 +445,14 @@ def buffering( self, useField ):
inGeom = QgsGeometry( inFeat.geometry() )
try:
outGeom = inGeom.buffer( float( value ), self.mySegments )
try:
outFeat.setGeometry( outGeom )
outFeat.setAttributes( atMap )
writer.addFeature( outFeat )
except:
FEATURE_EXCEPT = False
continue
if not outGeom.isGeosEmpty():
try:
outFeat.setGeometry( outGeom )
outFeat.setAttributes( atMap )
writer.addFeature( outFeat )
except:
FEATURE_EXCEPT = False
continue
except:
GEOS_EXCEPT = False
continue

0 comments on commit d476aed

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