Navigation Menu

Skip to content

Commit

Permalink
[processing][gdal] Clip Vector By Mask Layer requires both
Browse files Browse the repository at this point in the history
layers to have the same CRS
  • Loading branch information
nyalldawson committed May 1, 2018
1 parent 2233bd4 commit 3643219
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/gdal/ClipVectorByMask.py
Expand Up @@ -26,6 +26,7 @@
__revision__ = '$Format:%H$'

from qgis.core import (QgsProcessing,
QgsProcessingAlgorithm,
QgsProcessingParameterDefinition,
QgsProcessingParameterString,
QgsProcessingParameterFeatureSource,
Expand All @@ -44,6 +45,9 @@ class ClipVectorByMask(GdalAlgorithm):
def __init__(self):
super().__init__()

def flags(self):
return QgsProcessingAlgorithm.FlagSupportsBatch | QgsProcessingAlgorithm.FlagRequiresMatchingCrs # cannot cancel!

def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterFeatureSource(self.INPUT,
self.tr('Input layer')))
Expand Down

0 comments on commit 3643219

Please sign in to comment.