mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Make the "Merge shapefiles" tool correctly handle features without geometries.
This commit is contained in:
parent
50d2a7495b
commit
03faafa4a2
@ -317,8 +317,9 @@ class ShapeMergeThread( QThread ):
|
||||
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()" ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user