mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing][gdal] Clip Vector By Mask Layer requires both
layers to have the same CRS
This commit is contained in:
parent
2233bd44f9
commit
36432191ee
@ -26,6 +26,7 @@ __copyright__ = '(C) 2012, Victor Olaya'
|
||||
__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')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user