Skip to content
Permalink
Browse files

Make the "Merge shapefiles" tool correctly handle features without ge…

…ometries.
  • Loading branch information
jdugge committed Nov 23, 2014
1 parent 50d2a74 commit 03faafa4a2eddc683be5e198ac3d5528c6a6fa24
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/fTools/tools/doMergeShapes.py
@@ -317,8 +317,9 @@ def run( self ):
mergedAttrs[ fieldMap[shapeIndex][fieldIndex] ] = v
fieldIndex += 1

inGeom = QgsGeometry( inFeat.geometry() )
outFeat.setGeometry( inGeom )
if inFeat.geometry() is not None:
inGeom = QgsGeometry( inFeat.geometry() )
outFeat.setGeometry( inGeom )
outFeat.setAttributes( mergedAttrs )
writer.addFeature( outFeat )
self.emit( SIGNAL( "featureProcessed()" ) )

0 comments on commit 03faafa

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