Skip to content

Commit 3ecafb3

Browse files
committedFeb 13, 2017
[processing] Allow extent parameters to avoid matching layer CRS check
1 parent fbf99af commit 3ecafb3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎python/plugins/processing/core/parameters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ class ParameterExtent(Parameter):
328328
def __init__(self, name='', description='', default=None, optional=True):
329329
Parameter.__init__(self, name, description, default, optional)
330330
# The value is a string in the form "xmin, xmax, ymin, ymax"
331+
self.skip_crs_check = False
331332

332333
def setValue(self, value):
333334
if not value:

‎python/plugins/processing/gui/AlgorithmDialog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ def checkExtentCRS(self):
133133
if p.crs() != projectCRS:
134134
unmatchingCRS = True
135135
if isinstance(param, ParameterExtent):
136+
if param.skip_crs_check:
137+
continue
138+
136139
value = self.mainWidget.wrappers[param.name].widget.leText.text().strip()
137140
if value:
138141
hasExtent = True

0 commit comments

Comments
 (0)
Please sign in to comment.