Skip to content

Commit

Permalink
Fix #5789
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanielvaz committed Jul 14, 2013
1 parent 1db8347 commit d476aed
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions python/plugins/fTools/tools/doGeoprocessing.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d476aed

Please sign in to comment.