Skip to content
Permalink
Browse files

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

layers to have the same CRS

(cherry-picked from 3643219)
  • Loading branch information
nyalldawson committed May 3, 2018
1 parent da2c4be commit bc9d6f3a7951688f261edd35daabcc77fa52299d
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 bc9d6f3

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