Skip to content
Permalink
Browse files

Regenerate fids for "join attributes by location"

Fix #19708
  • Loading branch information
m-kuhn committed Oct 31, 2018
1 parent 432bec1 commit f8d873c7cb44adada2ab38a5f1dad6a96adf8e14
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/qgis/SpatialJoin.py
@@ -184,7 +184,7 @@ def processAlgorithm(self, parameters, context, feedback):
out_fields = QgsProcessingUtils.combineFields(source_fields, fields_to_join)

(sink, dest_id) = self.parameterAsSink(parameters, self.OUTPUT, context,
out_fields, source.wkbType(), source.sourceCrs())
out_fields, source.wkbType(), source.sourceCrs(), QgsFeatureSink.RegeneratePrimaryKey)
if self.OUTPUT in parameters and parameters[self.OUTPUT] is not None and sink is None:
raise QgsProcessingException(self.invalidSinkError(parameters, self.OUTPUT))

0 comments on commit f8d873c

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