Skip to content

Commit

Permalink
Followup: respect API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 19, 2016
1 parent 1a05c70 commit ff99816
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def processAlgorithm(self, progress):

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

# first build up a list of clip geometries
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def processAlgorithm(self, progress):
self.getParameterValue(Difference.OVERLAY))
ignoreInvalid = self.getParameterValue(Difference.IGNORE_INVALID)

geomType = QgsWkbTypes.multiType(layerA.wkbType())
geomType = QgsWKBTypes.multiType(layerA.wkbType())
writer = self.getOutputFromName(
Difference.OUTPUT).getVectorWriter(layerA.pendingFields(),
geomType,
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Intersection.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def processAlgorithm(self, progress):
vlayerB = dataobjects.getObjectFromUri(
self.getParameterValue(self.INPUT2))

geomType = QgsWkbTypes.multiType(vlayerA.wkbType())
geomType = QgsWKBTypes.multiType(vlayerA.wkbType())
fields = vector.combineVectorFields(vlayerA, vlayerB)
writer = self.getOutputFromName(self.OUTPUT).getVectorWriter(fields,
geomType, vlayerA.crs())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def processAlgorithm(self, progress):
layerB = dataobjects.getObjectFromUri(
self.getParameterValue(self.OVERLAY))

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

0 comments on commit ff99816

Please sign in to comment.