Skip to content

Commit

Permalink
[processing] Allow extent parameters to avoid matching layer CRS check
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 13, 2017
1 parent fbf99af commit 3ecafb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/gui/AlgorithmDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ecafb3

Please sign in to comment.