Skip to content
Permalink
Browse files

[processing] ensure that outputs of vector overlay operations are mul…

…tiparts (#3622)
  • Loading branch information
nirvn authored and m-kuhn committed Oct 19, 2016
1 parent 010fc7c commit cf6004959e2a4f6bdd2e18bf2504008222c2c82d
@@ -67,7 +67,7 @@ def processAlgorithm(self, progress):

writer = self.getOutputFromName(self.OUTPUT).getVectorWriter(
source_layer.fields(),
source_layer.wkbType(),
QgsWkbTypes.multiType(source_layer.wkbType()),
source_layer.crs())

# first build up a list of clip geometries
@@ -69,7 +69,7 @@ def processAlgorithm(self, progress):
self.getParameterValue(Difference.OVERLAY))
ignoreInvalid = self.getParameterValue(Difference.IGNORE_INVALID)

geomType = layerA.wkbType()
geomType = QgsWkbTypes.multiType(layerA.wkbType())
writer = self.getOutputFromName(
Difference.OUTPUT).getVectorWriter(layerA.fields(),
geomType,
@@ -75,7 +75,7 @@ def processAlgorithm(self, progress):
vlayerB = dataobjects.getObjectFromUri(
self.getParameterValue(self.INPUT2))

geomType = vlayerA.wkbType()
geomType = QgsWkbTypes.multiType(vlayerA.wkbType())
fields = vector.combineVectorFields(vlayerA, vlayerB)
writer = self.getOutputFromName(self.OUTPUT).getVectorWriter(fields,
geomType, vlayerA.crs())
@@ -65,7 +65,7 @@ def processAlgorithm(self, progress):
layerB = dataobjects.getObjectFromUri(
self.getParameterValue(self.OVERLAY))

geomType = layerA.wkbType()
geomType = QgsWkbTypes.multiType(layerA.wkbType())
fields = vector.combineVectorFields(layerA, layerB)
writer = self.getOutputFromName(self.OUTPUT).getVectorWriter(
fields, geomType, layerA.crs())

0 comments on commit cf60049

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