Skip to content
Permalink
Browse files

Merge pull request #1698 from jdugge/MergetoolEmptyGeometries

Make the Merge shapefiles tool correctly handle features without geometries
  • Loading branch information
alexbruy committed Nov 25, 2014
2 parents 9cf3e7f + 03faafa commit d69c325a819a69374ecfec503ebd2daf434fe5ba
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 d69c325

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