Skip to content

Commit 322a565

Browse files
committedDec 12, 2016
[processing] Remove ParameterGeometryPredicate
1 parent ecb25c4 commit 322a565

File tree

4 files changed

+0
-166
lines changed

4 files changed

+0
-166
lines changed
 

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,46 +1525,6 @@ def fromScriptCode(self, line):
15251525
[dataobjects.TYPE_VECTOR_POLYGON], isOptional)
15261526

15271527

1528-
class ParameterGeometryPredicate(Parameter):
1529-
1530-
predicates = ('intersects',
1531-
'contains',
1532-
'disjoint',
1533-
'equals',
1534-
'touches',
1535-
'overlaps',
1536-
'within',
1537-
'crosses')
1538-
1539-
def __init__(self, name='', description='', left=None, right=None,
1540-
optional=False, enabledPredicates=None):
1541-
Parameter.__init__(self, name, description, None, optional)
1542-
self.left = left
1543-
self.right = right
1544-
self.value = None
1545-
self.enabledPredicates = enabledPredicates
1546-
if self.enabledPredicates is None:
1547-
self.enabledPredicates = self.predicates
1548-
1549-
def getValueAsCommandLineParameter(self):
1550-
return str(self.value)
1551-
1552-
def setValue(self, value):
1553-
if value is None:
1554-
if not self.optional:
1555-
return False
1556-
self.value = None
1557-
return True
1558-
elif len(value) == 0 and not self.optional:
1559-
return False
1560-
1561-
if isinstance(value, str):
1562-
self.value = value.split(';') # relates to ModelerAlgorithm.resolveValue
1563-
else:
1564-
self.value = value
1565-
return True
1566-
1567-
15681528
paramClasses = [c for c in list(sys.modules[__name__].__dict__.values()) if isclass(c) and issubclass(c, Parameter)]
15691529

15701530

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from qgis.gui import QgsMessageBar
3939

4040
from processing.gui.BatchOutputSelectionPanel import BatchOutputSelectionPanel
41-
from processing.gui.GeometryPredicateSelectionPanel import GeometryPredicateSelectionPanel
4241

4342
from processing.core.parameters import ParameterFile
4443
from processing.core.parameters import ParameterRaster
@@ -50,7 +49,6 @@
5049
from processing.core.parameters import ParameterSelection
5150
from processing.core.parameters import ParameterFixedTable
5251
from processing.core.parameters import ParameterMultipleInput
53-
from processing.core.parameters import ParameterGeometryPredicate
5452

5553
pluginPath = os.path.split(os.path.dirname(__file__))[0]
5654
WIDGET, BASE = uic.loadUiType(

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

Lines changed: 0 additions & 123 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
from processing.gui.FixedTablePanel import FixedTablePanel
7474
from processing.gui.ExtentSelectionPanel import ExtentSelectionPanel
7575
from processing.gui.StringInputPanel import StringInputPanel
76-
from processing.gui.GeometryPredicateSelectionPanel import GeometryPredicateSelectionPanel
7776

7877

7978
DIALOG_STANDARD = 'standard'

0 commit comments

Comments
 (0)
Please sign in to comment.