Skip to content
Snippets Groups Projects

Gsedfqgis 115 fix import trace to tmp

Merged Arnaud MORVAN requested to merge GSEDFQGIS-115-fix-import-trace-to-tmp into master
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -2,6 +2,7 @@ from qgis.core import (
QgsApplication,
QgsProcessing,
QgsProcessingMultiStepFeedback,
QgsProcessingOutputLayerDefinition,
QgsProcessingParameterBoolean,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterNumber,
@@ -334,6 +335,9 @@ class ImportTracksAlgorithm(PreCourlisAlgorithm):
if feedback.isCanceled():
return {}
output = QgsProcessingOutputLayerDefinition(parameters[self.OUTPUT])
output.destinationName = self.tr("Sections")
# orderbyexpression (dump layer with changes from edit buffer)
layer.selectAll()
alg_params = {
@@ -341,7 +345,7 @@ class ImportTracksAlgorithm(PreCourlisAlgorithm):
"EXPRESSION": '"sec_id"',
"ASCENDING": True,
"NULLS_FIRST": False,
"OUTPUT": self.parameterAsOutputLayer(parameters, self.OUTPUT, context),
"OUTPUT": output,
}
outputs["OrderByExpression"] = processing.run(
"native:orderbyexpression",
Loading