Skip to content
Permalink
Browse files

[Processing] Display CSV OutputFile

  • Loading branch information
rldhont committed Mar 22, 2018
1 parent f281ff5 commit 2d3a097637987319b817d6c9748744c309491b0f
Showing with 10 additions and 0 deletions.
  1. +10 −0 python/plugins/processing/gui/Postprocessing.py
@@ -44,6 +44,7 @@
from processing.core.outputs import OutputRaster
from processing.core.outputs import OutputVector
from processing.core.outputs import OutputTable
from processing.core.outputs import OutputFile
from processing.core.outputs import OutputHTML

from processing.tools import dataobjects
@@ -78,6 +79,15 @@ def handleAlgorithmResults(alg, progress=None, showResults=True):
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
"Error loading result layer:\n" + traceback.format_exc())
wrongLayers.append(out.description)
elif isinstance(out, OutputFile) and out.ext == 'csv':
try:
dataobjects.load(out.value, name, alg.crs,
RenderingStyles.getStyle(alg.commandLineName(),
out.name))
except Exception:
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
"Error loading result layer:\n" + traceback.format_exc())
wrongLayers.append(out.description)
elif isinstance(out, OutputHTML):
ProcessingResults.addResult(out.description, out.value)
htmlResults = True

0 comments on commit 2d3a097

Please sign in to comment.
You can’t perform that action at this time.