Skip to content
Permalink
Browse files

Merge pull request #732 from ddanielvaz/fix-5789

Fix #5789
  • Loading branch information
NathanW2 committed Jul 16, 2013
2 parents 530610d + d476aed commit 2192cc70049f9d21f954a9324b8fdd5128d71758
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 2192cc7

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