Skip to content

Commit 3643219

Browse files
committed
[processing][gdal] Clip Vector By Mask Layer requires both
layers to have the same CRS
1 parent 2233bd4 commit 3643219

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/plugins/processing/algs/gdal/ClipVectorByMask.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
__revision__ = '$Format:%H$'
2727

2828
from qgis.core import (QgsProcessing,
29+
QgsProcessingAlgorithm,
2930
QgsProcessingParameterDefinition,
3031
QgsProcessingParameterString,
3132
QgsProcessingParameterFeatureSource,
@@ -44,6 +45,9 @@ class ClipVectorByMask(GdalAlgorithm):
4445
def __init__(self):
4546
super().__init__()
4647

48+
def flags(self):
49+
return QgsProcessingAlgorithm.FlagSupportsBatch | QgsProcessingAlgorithm.FlagRequiresMatchingCrs # cannot cancel!
50+
4751
def initAlgorithm(self, config=None):
4852
self.addParameter(QgsProcessingParameterFeatureSource(self.INPUT,
4953
self.tr('Input layer')))

0 commit comments

Comments
 (0)