mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing][saga] Difference and symmetric difference algorithms have known issues in SAGA LTR
This commit is contained in:
parent
63d648738d
commit
8bef710cea
@ -78,6 +78,7 @@ class SagaAlgorithm(SagaAlgorithmBase):
|
||||
self._group = ''
|
||||
self._groupId = ''
|
||||
self.params = []
|
||||
self.known_issues = False
|
||||
self.defineCharacteristicsFromFile()
|
||||
|
||||
def createInstance(self):
|
||||
@ -110,11 +111,15 @@ class SagaAlgorithm(SagaAlgorithmBase):
|
||||
|
||||
def flags(self):
|
||||
# TODO - maybe it's safe to background thread this?
|
||||
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading
|
||||
f = super().flags() | QgsProcessingAlgorithm.FlagNoThreading
|
||||
if self.known_issues:
|
||||
f = f | QgsProcessingAlgorithm.FlagKnownIssues
|
||||
return f
|
||||
|
||||
def defineCharacteristicsFromFile(self):
|
||||
with open(self.description_file, encoding="utf-8") as lines:
|
||||
line = lines.readline().strip('\n').strip()
|
||||
|
||||
self._name = line
|
||||
if '|' in self._name:
|
||||
tokens = self._name.split('|')
|
||||
@ -134,6 +139,10 @@ class SagaAlgorithm(SagaAlgorithmBase):
|
||||
self._name = ''.join(c for c in self._name if c in validChars)
|
||||
|
||||
line = lines.readline().strip('\n').strip()
|
||||
if line == '##known_issues':
|
||||
self.known_issues = True
|
||||
line = lines.readline().strip('\n').strip()
|
||||
|
||||
self.undecorated_group = line
|
||||
self._group = self.tr(decoratedGroupName(self.undecorated_group))
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
Difference
|
||||
##known_issues
|
||||
shapes_polygons
|
||||
QgsProcessingParameterFeatureSource|A|Layer A|2|None|False
|
||||
QgsProcessingParameterFeatureSource|B|Layer B|2|None|False
|
||||
|
@ -1,4 +1,5 @@
|
||||
Symmetrical Difference
|
||||
##known_issues
|
||||
shapes_polygons
|
||||
QgsProcessingParameterFeatureSource|A|Layer A|2|None|False
|
||||
QgsProcessingParameterFeatureSource|B|Layer B|2|None|False
|
||||
|
Loading…
x
Reference in New Issue
Block a user