Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #732 from ddanielvaz/fix-5789
Fix #5789
  • Loading branch information
NathanW2 committed Jul 16, 2013
2 parents 530610d + d476aed commit 2192cc7
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 2192cc7

Please sign in to comment.