Regenerate fids for "join attributes by location", pt2

This commit is contained in:
Matthias Kuhn 2018-10-31 09:26:58 +01:00
parent 0a2b0f4115
commit 2df0cae8e3
No known key found for this signature in database
GPG Key ID: 7A7F1A1C90C3E6A7

View File

@ -189,7 +189,7 @@ class SpatialJoin(QgisAlgorithm):
raise QgsProcessingException(self.invalidSinkError(parameters, self.OUTPUT))
(non_matching_sink, non_matching_dest_id) = self.parameterAsSink(parameters, self.NON_MATCHING, context,
source.fields(), source.wkbType(), source.sourceCrs())
source.fields(), source.wkbType(), source.sourceCrs(), QgsFeatureSink.RegeneratePrimaryKey)
if self.NON_MATCHING in parameters and parameters[self.NON_MATCHING] is not None and non_matching_sink is None:
raise QgsProcessingException(self.invalidSinkError(parameters, self.NON_MATCHING))