mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] Allow extent parameters to avoid matching layer CRS check
This commit is contained in:
parent
fbf99afd01
commit
3ecafb3472
@ -328,6 +328,7 @@ class ParameterExtent(Parameter):
|
||||
def __init__(self, name='', description='', default=None, optional=True):
|
||||
Parameter.__init__(self, name, description, default, optional)
|
||||
# The value is a string in the form "xmin, xmax, ymin, ymax"
|
||||
self.skip_crs_check = False
|
||||
|
||||
def setValue(self, value):
|
||||
if not value:
|
||||
|
@ -133,6 +133,9 @@ class AlgorithmDialog(AlgorithmDialogBase):
|
||||
if p.crs() != projectCRS:
|
||||
unmatchingCRS = True
|
||||
if isinstance(param, ParameterExtent):
|
||||
if param.skip_crs_check:
|
||||
continue
|
||||
|
||||
value = self.mainWidget.wrappers[param.name].widget.leText.text().strip()
|
||||
if value:
|
||||
hasExtent = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user