Skip to content

Commit

Permalink
[processing] Clip alg allows mask in different CRS to clipped layer
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 11, 2017
1 parent dd0bb8c commit a6a3027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Clip.py
Expand Up @@ -84,7 +84,7 @@ def processAlgorithm(self, parameters, context, feedback):

# first build up a list of clip geometries
clip_geoms = []
for mask_feature in mask_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([])):
for mask_feature in mask_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([]).setDestinationCrs(feature_source.sourceCrs())):
clip_geoms.append(mask_feature.geometry())

# are we clipping against a single feature? if so, we can show finer progress reports
Expand Down

0 comments on commit a6a3027

Please sign in to comment.