Skip to content
Permalink
Browse files

Merge pull request #5745 from alexbruy/processing-cleanup

Processing cleanup
  • Loading branch information
alexbruy committed Nov 29, 2017
2 parents 29bfb10 + d65c036 commit e0290a9f238d99c93f97d9f3e096864f7436b1c4
Showing with 84 additions and 2,174 deletions.
  1. +1 −2 python/plugins/processing/ProcessingPlugin.py
  2. +1 −2 python/plugins/processing/algs/exampleprovider/ProcessingExampleProviderPlugin.py
  3. +1 −2 python/plugins/processing/algs/examplescripts/ProcessingExampleScriptsPlugin.py
  4. +1 −4 python/plugins/processing/algs/gdal/GdalUtils.py
  5. +0 −1 python/plugins/processing/algs/gdal/extractprojection.py
  6. +1 −7 python/plugins/processing/algs/gdal/gdalcalc.py
  7. +0 −1 python/plugins/processing/algs/gdal/nearblack.py
  8. +0 −7 python/plugins/processing/algs/gdal/ogr2ogrtabletopostgislist.py
  9. +0 −9 python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
  10. +1 −9 python/plugins/processing/algs/gdal/rasterize.py
  11. +0 −5 python/plugins/processing/algs/gdal/rasterize_over.py
  12. +0 −2 python/plugins/processing/algs/grass7/Grass7Algorithm.py
  13. +0 −3 python/plugins/processing/algs/grass7/Grass7AlgorithmProvider.py
  14. +1 −3 python/plugins/processing/algs/grass7/Grass7Utils.py
  15. +0 −1 python/plugins/processing/algs/grass7/ext/r_blend_rgb.py
  16. +0 −1 python/plugins/processing/algs/grass7/ext/r_category.py
  17. +0 −1 python/plugins/processing/algs/grass7/ext/r_colors.py
  18. +0 −1 python/plugins/processing/algs/grass7/ext/r_colors_stddev.py
  19. +0 −1 python/plugins/processing/algs/grass7/ext/r_null.py
  20. +0 −1 python/plugins/processing/algs/grass7/ext/r_shade.py
  21. +0 −1 python/plugins/processing/algs/grass7/ext/r_statistics.py
  22. +0 −1 python/plugins/processing/algs/grass7/ext/r_stats_quantile_rast.py
  23. +0 −1 python/plugins/processing/algs/grass7/ext/r_what_color.py
  24. +0 −1 python/plugins/processing/algs/grass7/ext/v_net_connectivity.py
  25. +0 −196 python/plugins/processing/algs/grass7/nviz7.py
  26. +1 −2 python/plugins/processing/algs/qgis/Aspect.py
  27. +0 −1 python/plugins/processing/algs/qgis/ConcaveHull.py
  28. +0 −1 python/plugins/processing/algs/qgis/Datasources2Vrt.py
  29. +0 −1 python/plugins/processing/algs/qgis/Delaunay.py
  30. +0 −1 python/plugins/processing/algs/qgis/DensifyGeometries.py
  31. +0 −1 python/plugins/processing/algs/qgis/DensifyGeometriesInterval.py
  32. +0 −1 python/plugins/processing/algs/qgis/EliminateSelection.py
  33. +0 −1 python/plugins/processing/algs/qgis/Explode.py
  34. +0 −1 python/plugins/processing/algs/qgis/FieldPyculator.py
  35. +1 −2 python/plugins/processing/algs/qgis/Hillshade.py
  36. +1 −1 python/plugins/processing/algs/qgis/HubDistanceLines.py
  37. +0 −1 python/plugins/processing/algs/qgis/HubDistancePoints.py
  38. +1 −3 python/plugins/processing/algs/qgis/HypsometricCurves.py
  39. +0 −1 python/plugins/processing/algs/qgis/MinimumBoundingGeometry.py
  40. +0 −2 python/plugins/processing/algs/qgis/NearestNeighbourAnalysis.py
  41. +0 −1 python/plugins/processing/algs/qgis/PointsDisplacement.py
  42. +1 −4 python/plugins/processing/algs/qgis/PointsFromLines.py
  43. +1 −4 python/plugins/processing/algs/qgis/PointsFromPolygons.py
  44. +0 −1 python/plugins/processing/algs/qgis/PointsToPaths.py
  45. +0 −1 python/plugins/processing/algs/qgis/PostGISExecuteSQL.py
  46. +0 −1 python/plugins/processing/algs/qgis/RandomExtract.py
  47. +0 −1 python/plugins/processing/algs/qgis/RandomExtractWithinSubsets.py
  48. +0 −1 python/plugins/processing/algs/qgis/RandomPointsAlongLines.py
  49. +0 −1 python/plugins/processing/algs/qgis/RandomPointsExtent.py
  50. +0 −1 python/plugins/processing/algs/qgis/RandomSelection.py
  51. +0 −1 python/plugins/processing/algs/qgis/RandomSelectionWithinSubsets.py
  52. +0 −1 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsFixed.py
  53. +0 −1 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsVariable.py
  54. +0 −1 python/plugins/processing/algs/qgis/RegularPoints.py
  55. +1 −2 python/plugins/processing/algs/qgis/Relief.py
  56. +1 −2 python/plugins/processing/algs/qgis/Ruggedness.py
  57. +1 −3 python/plugins/processing/algs/qgis/Slope.py
  58. +0 −3 python/plugins/processing/algs/qgis/SpatialJoin.py
  59. +0 −1 python/plugins/processing/algs/qgis/SpatialJoinSummary.py
  60. +0 −1 python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
  61. +0 −1 python/plugins/processing/algs/qgis/StatisticsByCategories.py
  62. +0 −1 python/plugins/processing/algs/qgis/UniqueValues.py
  63. +0 −1 python/plugins/processing/algs/qgis/VectorSplit.py
  64. +0 −1 python/plugins/processing/algs/qgis/VoronoiPolygons.py
  65. +0 −1 python/plugins/processing/algs/qgis/scripts/Keep_n_biggest_parts.py
  66. +0 −1 python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py
  67. +15 −12 python/plugins/processing/algs/qgis/ui/RasterCalculatorWidgets.py
  68. +0 −343 python/plugins/processing/core/GeoAlgorithm.py
  69. +0 −1 python/plugins/processing/core/Processing.py
  70. +2 −4 python/plugins/processing/core/ProcessingConfig.py
  71. +2 −4 python/plugins/processing/core/ProcessingLog.py
  72. +1 −2 python/plugins/processing/core/ProcessingResults.py
  73. +0 −346 python/plugins/processing/core/outputs.py
  74. +5 −538 python/plugins/processing/core/parameters.py
  75. +0 −6 python/plugins/processing/gui/AlgorithmDialog.py
  76. +1 −1 python/plugins/processing/gui/AlgorithmDialogBase.py
  77. +0 −2 python/plugins/processing/gui/AlgorithmExecutor.py
  78. +0 −1 python/plugins/processing/gui/BatchAlgorithmDialog.py
  79. +0 −2 python/plugins/processing/gui/BatchInputSelectionPanel.py
  80. +1 −12 python/plugins/processing/gui/BatchPanel.py
  81. +0 −1 python/plugins/processing/gui/CheckboxesPanel.py
  82. +0 −2 python/plugins/processing/gui/ConfigDialog.py
  83. +1 −2 python/plugins/processing/gui/ContextAction.py
  84. +0 −1 python/plugins/processing/gui/DestinationSelectionPanel.py
  85. +0 −1 python/plugins/processing/gui/DirectorySelectorDialog.py
  86. +0 −1 python/plugins/processing/gui/EditRenderingStylesDialog.py
  87. +0 −1 python/plugins/processing/gui/ExtentSelectionPanel.py
  88. +0 −2 python/plugins/processing/gui/FixedTableDialog.py
  89. +0 −1 python/plugins/processing/gui/FixedTablePanel.py
  90. +0 −3 python/plugins/processing/gui/GetScriptsAndModels.py
  91. +0 −2 python/plugins/processing/gui/Help2Html.py
  92. +0 −1 python/plugins/processing/gui/HelpEditionDialog.py
  93. +22 −10 python/plugins/processing/gui/ListMultiselectWidget.py
  94. +0 −1 python/plugins/processing/gui/MultipleFileInputDialog.py
  95. +1 −3 python/plugins/processing/gui/MultipleInputDialog.py
  96. +0 −1 python/plugins/processing/gui/NumberInputPanel.py
  97. +0 −1 python/plugins/processing/gui/PointSelectionPanel.py
  98. +0 −2 python/plugins/processing/gui/ProcessingToolbox.py
  99. +1 −2 python/plugins/processing/gui/RenderingStyles.py
  100. +0 −1 python/plugins/processing/gui/TestTools.py
  101. +1 −2 python/plugins/processing/gui/ToolboxAction.py
  102. +8 −21 python/plugins/processing/gui/wrappers.py
  103. +0 −1 python/plugins/processing/modeler/ModelerDialog.py
  104. +0 −1 python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py
  105. +1 −2 python/plugins/processing/modeler/ModelerParametersDialog.py
  106. +1 −3 python/plugins/processing/modeler/ModelerUtils.py
  107. +0 −2 python/plugins/processing/modeler/MultilineTextPanel.py
  108. +0 −1 python/plugins/processing/preconfigured/PreconfiguredUtils.py
  109. +0 −2 python/plugins/processing/script/ScriptAlgorithm.py
  110. +0 −1 python/plugins/processing/script/ScriptSelector.py
  111. +1 −3 python/plugins/processing/script/ScriptUtils.py
  112. +0 −1 python/plugins/processing/tests/CMakeLists.txt
  113. +0 −124 python/plugins/processing/tests/ParametersTest.py
  114. +2 −2 python/plugins/processing/tests/testdata/scripts/centroids.py
  115. +0 −124 python/plugins/processing/tools/dataobjects.py
  116. +1 −5 python/plugins/processing/tools/general.py
  117. +0 −118 python/plugins/processing/tools/help.py
  118. +0 −4 python/plugins/processing/tools/raster.py
  119. +1 −3 python/plugins/processing/tools/spatialite.py
  120. +0 −2 python/plugins/processing/tools/system.py
  121. +0 −83 python/plugins/processing/tools/translation.py
  122. +0 −35 python/plugins/processing/tools/vector.py
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -160,7 +159,7 @@ def createDataItem(self, path, parentItem):
return None


class ProcessingPlugin(object):
class ProcessingPlugin:

def __init__(self, iface):
self.iface = iface
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'July 2013'
@@ -40,7 +39,7 @@
sys.path.insert(0, cmd_folder)


class ProcessingExampleProviderPlugin(object):
class ProcessingExampleProviderPlugin:

def __init__(self):
self.provider = ExampleAlgorithmProvider()
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'May 2016'
@@ -31,7 +30,7 @@
from processing.core.Processing import Processing


class ProcessingExampleScriptsPlugin(object):
class ProcessingExampleScriptsPlugin:

def initGui(self):
Processing.addScripts(os.path.join(os.path.dirname(__file__), "scripts"))
@@ -16,9 +16,6 @@
* *
***************************************************************************
"""
from builtins import str
from builtins import range
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -57,7 +54,7 @@
gdalAvailable = False


class GdalUtils(object):
class GdalUtils:
GDAL_HELP_PATH = 'GDAL_HELP_PATH'

supportedRasters = None
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Alexander Bruy'
__date__ = 'September 2013'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Giovanni Manghi'
__date__ = 'January 2015'
@@ -27,15 +26,10 @@
__revision__ = '$Format:%H$'

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterRaster
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputRaster
from processing.algs.gdal.GdalUtils import GdalUtils

from processing.tools.system import isWindows

from processing.algs.gdal.GdalUtils import GdalUtils


class gdalcalc(GdalAlgorithm):

@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Victor Olaya'
__date__ = 'November 2012'
@@ -28,12 +27,6 @@

from qgis.core import QgsSettings

from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterTable
from processing.core.parameters import ParameterSelection
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterTableField

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.algs.gdal.GdalUtils import GdalUtils

@@ -25,15 +25,6 @@

__revision__ = '$Format:%H$'


from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterCrs
from processing.core.parameters import ParameterSelection
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterExtent
from processing.core.parameters import ParameterTableField

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.algs.gdal.GdalUtils import GdalUtils

@@ -16,7 +16,7 @@
* *
***************************************************************************
"""
from builtins import str


__author__ = 'Alexander Bruy'
__date__ = 'September 2013'
@@ -30,14 +30,6 @@

from qgis.PyQt.QtGui import QIcon

from processing.core.parameters import (ParameterVector,
ParameterExtent,
ParameterTableField,
ParameterSelection,
ParameterNumber,
ParameterString)
from processing.core.outputs import OutputRaster

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.algs.gdal.GdalUtils import GdalUtils

@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Alexander Bruy'
__date__ = 'September 2013'
@@ -32,10 +31,6 @@

from qgis.PyQt.QtGui import QIcon

from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterRaster
from processing.core.parameters import ParameterTableField

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.algs.gdal.GdalUtils import GdalUtils

@@ -16,8 +16,6 @@
* *
***************************************************************************
"""
from builtins import str
from builtins import range

__author__ = 'Victor Olaya'
__date__ = 'February 2015'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Victor Olaya'
__date__ = 'April 2014'
@@ -37,7 +36,6 @@
from .Grass7Utils import Grass7Utils
from .Grass7Algorithm import Grass7Algorithm
from processing.tools.system import isWindows, isMac
#from .nviz7 import nviz7

pluginPath = os.path.normpath(os.path.join(
os.path.split(os.path.dirname(__file__))[0], os.pardir))
@@ -110,7 +108,6 @@ def createAlgsList(self):
except Exception as e:
QgsMessageLog.logMessage(
self.tr('Could not open GRASS GIS 7 algorithm: {0}\n{1}').format(descriptionFile, str(e)), self.tr('Processing'), QgsMessageLog.CRITICAL)
#algs.append(nviz7())
return algs

def loadAlgorithms(self):
@@ -16,8 +16,6 @@
* *
***************************************************************************
"""
from builtins import str
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'February 2015'
@@ -43,7 +41,7 @@
from processing.algs.gdal.GdalUtils import GdalUtils


class Grass7Utils(object):
class Grass7Utils:

GRASS_REGION_XMIN = 'GRASS7_REGION_XMIN'
GRASS_REGION_YMIN = 'GRASS7_REGION_YMIN'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'September 2017'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Médéric Ribreux'
__date__ = 'December 2015'

0 comments on commit e0290a9

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