Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] Remove ParameterGeometryPredicate
  • Loading branch information
arnaud-morvan committed Dec 12, 2016
1 parent ecb25c4 commit 322a565
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 166 deletions.
40 changes: 0 additions & 40 deletions python/plugins/processing/core/parameters.py
Expand Up @@ -1525,46 +1525,6 @@ def fromScriptCode(self, line):
[dataobjects.TYPE_VECTOR_POLYGON], isOptional)


class ParameterGeometryPredicate(Parameter):

predicates = ('intersects',
'contains',
'disjoint',
'equals',
'touches',
'overlaps',
'within',
'crosses')

def __init__(self, name='', description='', left=None, right=None,
optional=False, enabledPredicates=None):
Parameter.__init__(self, name, description, None, optional)
self.left = left
self.right = right
self.value = None
self.enabledPredicates = enabledPredicates
if self.enabledPredicates is None:
self.enabledPredicates = self.predicates

def getValueAsCommandLineParameter(self):
return str(self.value)

def setValue(self, value):
if value is None:
if not self.optional:
return False
self.value = None
return True
elif len(value) == 0 and not self.optional:
return False

if isinstance(value, str):
self.value = value.split(';') # relates to ModelerAlgorithm.resolveValue
else:
self.value = value
return True


paramClasses = [c for c in list(sys.modules[__name__].__dict__.values()) if isclass(c) and issubclass(c, Parameter)]


Expand Down
2 changes: 0 additions & 2 deletions python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -38,7 +38,6 @@
from qgis.gui import QgsMessageBar

from processing.gui.BatchOutputSelectionPanel import BatchOutputSelectionPanel
from processing.gui.GeometryPredicateSelectionPanel import GeometryPredicateSelectionPanel

from processing.core.parameters import ParameterFile
from processing.core.parameters import ParameterRaster
Expand All @@ -50,7 +49,6 @@
from processing.core.parameters import ParameterSelection
from processing.core.parameters import ParameterFixedTable
from processing.core.parameters import ParameterMultipleInput
from processing.core.parameters import ParameterGeometryPredicate

pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
Expand Down
123 changes: 0 additions & 123 deletions python/plugins/processing/gui/GeometryPredicateSelectionPanel.py

This file was deleted.

1 change: 0 additions & 1 deletion python/plugins/processing/gui/wrappers.py
Expand Up @@ -73,7 +73,6 @@
from processing.gui.FixedTablePanel import FixedTablePanel
from processing.gui.ExtentSelectionPanel import ExtentSelectionPanel
from processing.gui.StringInputPanel import StringInputPanel
from processing.gui.GeometryPredicateSelectionPanel import GeometryPredicateSelectionPanel


DIALOG_STANDARD = 'standard'
Expand Down

0 comments on commit 322a565

Please sign in to comment.