Skip to content
Permalink
Browse files

[processing] Allow extent parameters to avoid matching layer CRS check

  • Loading branch information
nyalldawson committed Feb 13, 2017
1 parent fbf99af commit 3ecafb34721806a7046d1777ec58d362c812fa4f
@@ -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 @@ def checkExtentCRS(self):
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

0 comments on commit 3ecafb3

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