Skip to content
Permalink
Browse files

[processing][gdal] Clip Vector By Mask Layer requires both

layers to have the same CRS
  • Loading branch information
nyalldawson committed May 1, 2018
1 parent 2233bd4 commit 36432191ee720c7f262bb3ce219066016a7efd2c
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/algs/gdal/ClipVectorByMask.py
@@ -26,6 +26,7 @@
__revision__ = '$Format:%H$'

from qgis.core import (QgsProcessing,
QgsProcessingAlgorithm,
QgsProcessingParameterDefinition,
QgsProcessingParameterString,
QgsProcessingParameterFeatureSource,
@@ -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')))

0 comments on commit 3643219

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