Showing with 170 additions and 132 deletions.
  1. +0 −3 python/plugins/sextante/algs/FieldPyculator.py
  2. +0 −3 python/plugins/sextante/algs/ftools/ConvexHull.py
  3. +0 −1 python/plugins/sextante/algs/ftools/ExportGeometryInfo.py
  4. +0 −1 python/plugins/sextante/algs/ftools/PointDistance.py
  5. +0 −6 python/plugins/sextante/algs/ftools/SimplifyGeometries.py
  6. +1 −1 python/plugins/sextante/core/AlgorithmProvider.py
  7. +3 −3 python/plugins/sextante/grass/description/r.neighbors.txt
  8. +1 −1 python/plugins/sextante/grass/description/r.quant.txt
  9. +3 −3 python/plugins/sextante/grass/description/r.quantile.txt
  10. +37 −0 python/plugins/sextante/grass/ext/HtmlReportPostProcessor.py
  11. +4 −10 python/plugins/sextante/grass/ext/r_coin.py
  12. +5 −10 python/plugins/sextante/grass/ext/r_covar.py
  13. +3 −10 python/plugins/sextante/grass/ext/r_describe.py
  14. +3 −10 python/plugins/sextante/grass/ext/r_info.py
  15. +29 −0 python/plugins/sextante/grass/ext/r_quantile.py
  16. +4 −10 python/plugins/sextante/grass/ext/r_regression_line.py
  17. +3 −10 python/plugins/sextante/grass/ext/v_class.py
  18. +3 −10 python/plugins/sextante/grass/ext/v_info.py
  19. +4 −10 python/plugins/sextante/grass/ext/v_normal.py
  20. +3 −10 python/plugins/sextante/grass/ext/v_report.py
  21. +3 −11 python/plugins/sextante/grass/ext/v_univar.py
  22. +17 −2 python/plugins/sextante/gui/FileSelectionPanel.py
  23. +15 −1 python/plugins/sextante/gui/InputLayerSelectorPanel.py
  24. +28 −5 python/plugins/sextante/modeler/ModelerParameterDefinitionDialog.py
  25. +1 −1 python/plugins/sextante/outputs/OutputVector.py
3 changes: 0 additions & 3 deletions python/plugins/sextante/algs/FieldPyculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
from PyQt4.QtGui import *
from sextante.parameters.ParameterString import ParameterString
from sextante.core.QGisLayers import QGisLayers
import os
from PyQt4 import QtGui
from sextante.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from sextante.parameters.ParameterBoolean import ParameterBoolean
import sys


Expand Down
3 changes: 0 additions & 3 deletions python/plugins/sextante/algs/ftools/ConvexHull.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,16 @@
__revision__ = '$Format:%H$'

from sextante.core.GeoAlgorithm import GeoAlgorithm
from PyQt4 import QtGui
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from sextante.parameters.ParameterVector import ParameterVector
from sextante.core.QGisLayers import QGisLayers
from sextante.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from sextante.outputs.OutputVector import OutputVector
from sextante.algs.ftools import ftools_utils
from sextante.core.SextanteLog import SextanteLog
from sextante.parameters.ParameterTableField import ParameterTableField
from sextante.parameters.ParameterSelection import ParameterSelection
from sextante.parameters.ParameterBoolean import ParameterBoolean

class ConvexHull(GeoAlgorithm):

Expand Down
1 change: 0 additions & 1 deletion python/plugins/sextante/algs/ftools/ExportGeometryInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from PyQt4 import QtGui
from PyQt4.QtCore import *

from qgis.core import *
Expand Down
1 change: 0 additions & 1 deletion python/plugins/sextante/algs/ftools/PointDistance.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def linearMatrix(self, inLayer, inField, targetLayer, targetField, matType, nPoi
else:
self.writer.writerow(["InputID", "MEAN", "STDDEV", "MIN", "MAX"])

inProvider = inLayer.dataProvider()
targetProvider = targetLayer.dataProvider()
targetProvider.select()

Expand Down
6 changes: 0 additions & 6 deletions python/plugins/sextante/algs/ftools/SimplifyGeometries.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,15 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

import os.path

from PyQt4 import QtGui
from PyQt4.QtCore import *

from qgis.core import *

from sextante.core.GeoAlgorithm import GeoAlgorithm
from sextante.core.QGisLayers import QGisLayers
from sextante.core.SextanteLog import SextanteLog

from sextante.parameters.ParameterVector import ParameterVector
from sextante.parameters.ParameterNumber import ParameterNumber
from sextante.parameters.ParameterBoolean import ParameterBoolean

from sextante.outputs.OutputVector import OutputVector

class SimplifyGeometries(GeoAlgorithm):
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/sextante/core/AlgorithmProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def getSupportedOutputVectorLayerExtensions(self):
#return ["shp"]

def getSupportedOutputTableExtensions(self):
return ["dbf"]
return ["csv"]

def supportsNonFileBasedOutput(self):
return False
6 changes: 3 additions & 3 deletions python/plugins/sextante/grass/description/r.neighbors.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
r.neighbors
r.neighbors - Makes each cell category value a function of the category values assigned to the cells around it, and stores new cell values in an output raster map layer.
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterRaster|input|Input raster layer|False
ParameterSelection|method|Neighborhood operation|average;median;mode;minimum;maximum;stddev;sum;variance;diversity;interspersion
ParameterNumber|size|Neighborhood size|1.0|None|3
ParameterNumber|size|Neighborhood size|1|None|3
ParameterBoolean|-c|Use circular neighborhood|False
*ParameterBoolean|-a|Do not align output with the input|False
*ParameterFile|weight|File containing weights|False
OutputRaster|output|Name for output raster map
OutputRaster|output|Output layer
2 changes: 1 addition & 1 deletion python/plugins/sextante/grass/description/r.quant.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ ParameterRaster|basemap|Base map to take quant rules from|False
ParameterRange|fprange|Floating point range: dmin,dmax|0,1
ParameterRange|range|Integer range: min,max|1,255
ParameterBoolean|-t|Truncate floating point data|False
ParameterBoolean|-r|Round floating point data|False
ParameterBoolean|-r|Round floating point data|False
6 changes: 3 additions & 3 deletions python/plugins/sextante/grass/description/r.quantile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ r.quantile
r.quantile - Compute quantiles using two passes.
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterNumber|quantiles|Number of quantiles|2.0|None|4
ParameterString|percentiles|List of percentiles|
ParameterBoolean|-r|Generate recode rules based on quantile-defined intervals|False
ParameterNumber|quantiles|Number of quantiles|2|None|4
*ParameterBoolean|-r|Generate recode rules based on quantile-defined intervals|False
OutputHTML|html|Output report
37 changes: 37 additions & 0 deletions python/plugins/sextante/grass/ext/HtmlReportPostProcessor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-

"""
***************************************************************************
HtmlReportPostProcessor.py
---------------------
Date : December 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
__author__ = 'Victor Olaya'
__date__ = 'December 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
grassName = alg.grassName
found = False
f = open(htmlFile, "w")
f.write("<h2>" + grassName + "</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if grassName in line and not line.startswith("GRASS"):
found = True
f.close()

14 changes: 4 additions & 10 deletions python/plugins/sextante/grass/ext/r_coin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,15 @@
* *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'December 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>r.coin</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'r.coin' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)

15 changes: 5 additions & 10 deletions python/plugins/sextante/grass/ext/r_covar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,10 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'


from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>r.covar</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'r.covar' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)


13 changes: 3 additions & 10 deletions python/plugins/sextante/grass/ext/r_describe.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>r.describe</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'r.describe' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)

13 changes: 3 additions & 10 deletions python/plugins/sextante/grass/ext/r_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>r.info</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'r.info' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)

29 changes: 29 additions & 0 deletions python/plugins/sextante/grass/ext/r_quantile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-

"""
***************************************************************************
r_quantile.py
---------------------
Date : December 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
__author__ = 'Victor Olaya'
__date__ = 'December 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
HtmlReportPostProcessor.postProcessResults(alg)

14 changes: 4 additions & 10 deletions python/plugins/sextante/grass/ext/r_regression_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>r.regresion.line</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'r.regression.line' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)


13 changes: 3 additions & 10 deletions python/plugins/sextante/grass/ext/v_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>v.class</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'v.class' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)

13 changes: 3 additions & 10 deletions python/plugins/sextante/grass/ext/v_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>v.info</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'v.info' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)

14 changes: 4 additions & 10 deletions python/plugins/sextante/grass/ext/v_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>v.normal</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'v.normal' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)


13 changes: 3 additions & 10 deletions python/plugins/sextante/grass/ext/v_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>v.report</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'v.report' in line:
found = True
f.close()
HtmlReportPostProcessor.postProcessResults(alg)

14 changes: 3 additions & 11 deletions python/plugins/sextante/grass/ext/v_univar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,7 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.grass.ext import HtmlReportPostProcessor

def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
found = False
f = open(htmlFile, "w")
f.write("<h2>v.univar</h2>\n")
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + "<br>\n")
if 'v.univar' in line:
found = True
f.close()

HtmlReportPostProcessor.postProcessResults(alg)
Loading