Skip to content
Permalink
Browse files

[processing] add icons for fTools and GDALTools algorithms

  • Loading branch information
alexbruy committed Jan 25, 2016
1 parent 9b9c692 commit 11a9a661041551dc460039aa1815fd581888f5c8
Showing with 657 additions and 29 deletions.
  1. +9 −0 python/plugins/processing/algs/gdal/ClipByExtent.py
  2. +9 −0 python/plugins/processing/algs/gdal/ClipByMask.py
  3. +7 −0 python/plugins/processing/algs/gdal/GridAverage.py
  4. +7 −0 python/plugins/processing/algs/gdal/GridDataMetrics.py
  5. +7 −0 python/plugins/processing/algs/gdal/GridInvDist.py
  6. +7 −0 python/plugins/processing/algs/gdal/GridNearest.py
  7. +6 −2 python/plugins/processing/algs/gdal/aspect.py
  8. +7 −1 python/plugins/processing/algs/gdal/buildvrt.py
  9. +9 −0 python/plugins/processing/algs/gdal/contour.py
  10. +7 −0 python/plugins/processing/algs/gdal/extractprojection.py
  11. +8 −0 python/plugins/processing/algs/gdal/fillnodata.py
  12. +9 −0 python/plugins/processing/algs/gdal/gdaladdo.py
  13. +7 −1 python/plugins/processing/algs/gdal/gdaltindex.py
  14. +9 −0 python/plugins/processing/algs/gdal/hillshade.py
  15. +9 −0 python/plugins/processing/algs/gdal/information.py
  16. +8 −0 python/plugins/processing/algs/gdal/merge.py
  17. +9 −0 python/plugins/processing/algs/gdal/nearblack.py
  18. +8 −0 python/plugins/processing/algs/gdal/pct2rgb.py
  19. +11 −2 python/plugins/processing/algs/gdal/polygonize.py
  20. +9 −0 python/plugins/processing/algs/gdal/proximity.py
  21. +7 −0 python/plugins/processing/algs/gdal/rasterize.py
  22. +7 −0 python/plugins/processing/algs/gdal/rasterize_over.py
  23. +9 −0 python/plugins/processing/algs/gdal/rgb2pct.py
  24. +8 −0 python/plugins/processing/algs/gdal/roughness.py
  25. +8 −0 python/plugins/processing/algs/gdal/sieve.py
  26. +9 −0 python/plugins/processing/algs/gdal/slope.py
  27. +9 −0 python/plugins/processing/algs/gdal/tpi.py
  28. +9 −0 python/plugins/processing/algs/gdal/translate.py
  29. +9 −0 python/plugins/processing/algs/gdal/tri.py
  30. +9 −0 python/plugins/processing/algs/gdal/warp.py
  31. +10 −0 python/plugins/processing/algs/qgis/BasicStatisticsNumbers.py
  32. +8 −0 python/plugins/processing/algs/qgis/BasicStatisticsStrings.py
  33. +10 −0 python/plugins/processing/algs/qgis/Centroids.py
  34. +13 −5 python/plugins/processing/algs/qgis/CheckValidity.py
  35. +9 −0 python/plugins/processing/algs/qgis/Clip.py
  36. +9 −0 python/plugins/processing/algs/qgis/ConvexHull.py
  37. +10 −0 python/plugins/processing/algs/qgis/Delaunay.py
  38. +6 −0 python/plugins/processing/algs/qgis/DensifyGeometries.py
  39. +9 −5 python/plugins/processing/algs/qgis/Difference.py
  40. +9 −4 python/plugins/processing/algs/qgis/Dissolve.py
  41. +10 −0 python/plugins/processing/algs/qgis/Eliminate.py
  42. +11 −1 python/plugins/processing/algs/qgis/ExportGeometryInfo.py
  43. +10 −0 python/plugins/processing/algs/qgis/ExtentFromLayer.py
  44. +10 −0 python/plugins/processing/algs/qgis/ExtractNodes.py
  45. +10 −0 python/plugins/processing/algs/qgis/FixedDistanceBuffer.py
  46. +9 −0 python/plugins/processing/algs/qgis/Intersection.py
  47. +6 −0 python/plugins/processing/algs/qgis/JoinAttributes.py
  48. +10 −0 python/plugins/processing/algs/qgis/LinesIntersection.py
  49. +9 −0 python/plugins/processing/algs/qgis/LinesToPolygons.py
  50. +10 −0 python/plugins/processing/algs/qgis/MeanCoords.py
  51. +9 −4 python/plugins/processing/algs/qgis/MultipartToSingleparts.py
  52. +10 −2 python/plugins/processing/algs/qgis/NearestNeighbourAnalysis.py
  53. +10 −0 python/plugins/processing/algs/qgis/PointDistance.py
  54. +10 −0 python/plugins/processing/algs/qgis/PointsInPolygon.py
  55. +9 −0 python/plugins/processing/algs/qgis/PolygonsToLines.py
  56. +7 −0 python/plugins/processing/algs/qgis/RandomPointsExtent.py
  57. +7 −0 python/plugins/processing/algs/qgis/RandomPointsLayer.py
  58. +7 −0 python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py
  59. +7 −0 python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py
  60. +8 −0 python/plugins/processing/algs/qgis/RandomSelection.py
  61. +10 −0 python/plugins/processing/algs/qgis/RandomSelectionWithinSubsets.py
  62. +7 −0 python/plugins/processing/algs/qgis/RegularPoints.py
  63. +10 −0 python/plugins/processing/algs/qgis/SelectByLocation.py
  64. +9 −0 python/plugins/processing/algs/qgis/SimplifyGeometries.py
  65. +10 −0 python/plugins/processing/algs/qgis/SinglePartsToMultiparts.py
  66. +11 −0 python/plugins/processing/algs/qgis/SpatialJoin.py
  67. +10 −0 python/plugins/processing/algs/qgis/SumLines.py
  68. +10 −1 python/plugins/processing/algs/qgis/SymmetricalDifference.py
  69. +10 −0 python/plugins/processing/algs/qgis/Union.py
  70. +9 −0 python/plugins/processing/algs/qgis/UniqueValues.py
  71. +9 −0 python/plugins/processing/algs/qgis/VariableDistanceBuffer.py
  72. +8 −0 python/plugins/processing/algs/qgis/VectorGrid.py
  73. +7 −0 python/plugins/processing/algs/qgis/VectorSplit.py
  74. +10 −1 python/plugins/processing/algs/qgis/VoronoiPolygons.py
  75. +3 −0 python/plugins/processing/images/CMakeLists.txt
  76. +3 −0 python/plugins/processing/images/ftools/CMakeLists.txt
  77. BIN python/plugins/processing/images/ftools/basic_statistics.png
  78. BIN python/plugins/processing/images/ftools/buffer.png
  79. BIN python/plugins/processing/images/ftools/centroids.png
  80. BIN python/plugins/processing/images/ftools/check_geometry.png
  81. BIN python/plugins/processing/images/ftools/clip.png
  82. BIN python/plugins/processing/images/ftools/convex_hull.png
  83. BIN python/plugins/processing/images/ftools/delaunay.png
  84. BIN python/plugins/processing/images/ftools/difference.png
  85. BIN python/plugins/processing/images/ftools/dissolve.png
  86. BIN python/plugins/processing/images/ftools/eliminate.png
  87. BIN python/plugins/processing/images/ftools/export_geometry.png
  88. BIN python/plugins/processing/images/ftools/extract_nodes.png
  89. BIN python/plugins/processing/images/ftools/intersect.png
  90. BIN python/plugins/processing/images/ftools/join_attributes.png
  91. BIN python/plugins/processing/images/ftools/join_location.png
  92. BIN python/plugins/processing/images/ftools/layer_extent.png
  93. BIN python/plugins/processing/images/ftools/lines_intersection.png
  94. BIN python/plugins/processing/images/ftools/matrix.png
  95. BIN python/plugins/processing/images/ftools/mean.png
  96. BIN python/plugins/processing/images/ftools/multi_to_single.png
  97. BIN python/plugins/processing/images/ftools/neighbour.png
  98. BIN python/plugins/processing/images/ftools/random_points.png
  99. BIN python/plugins/processing/images/ftools/random_selection.png
  100. BIN python/plugins/processing/images/ftools/regular_points.png
  101. BIN python/plugins/processing/images/ftools/select_location.png
  102. BIN python/plugins/processing/images/ftools/simplify.png
  103. BIN python/plugins/processing/images/ftools/single_to_multi.png
  104. BIN python/plugins/processing/images/ftools/split_layer.png
  105. BIN python/plugins/processing/images/ftools/sub_selection.png
  106. BIN python/plugins/processing/images/ftools/sum_lines.png
  107. BIN python/plugins/processing/images/ftools/sum_points.png
  108. BIN python/plugins/processing/images/ftools/sym_difference.png
  109. BIN python/plugins/processing/images/ftools/to_lines.png
  110. BIN python/plugins/processing/images/ftools/union.png
  111. BIN python/plugins/processing/images/ftools/unique.png
  112. BIN python/plugins/processing/images/ftools/vector_grid.png
  113. BIN python/plugins/processing/images/ftools/voronoi.png
  114. BIN python/plugins/processing/images/gdaltools/24-to-8-bits.png
  115. BIN python/plugins/processing/images/gdaltools/8-to-24-bits.png
  116. +3 −0 python/plugins/processing/images/gdaltools/CMakeLists.txt
  117. BIN python/plugins/processing/images/gdaltools/contour.png
  118. BIN python/plugins/processing/images/gdaltools/grid.png
  119. BIN python/plugins/processing/images/gdaltools/merge.png
  120. BIN python/plugins/processing/images/gdaltools/nearblack.png
  121. BIN python/plugins/processing/images/gdaltools/polygonize.png
  122. BIN python/plugins/processing/images/gdaltools/projection-add.png
  123. BIN python/plugins/processing/images/gdaltools/projection-export.png
  124. BIN python/plugins/processing/images/gdaltools/proximity.png
  125. BIN python/plugins/processing/images/gdaltools/raster-clip.png
  126. BIN python/plugins/processing/images/gdaltools/raster-info.png
  127. BIN python/plugins/processing/images/gdaltools/raster-overview.png
  128. BIN python/plugins/processing/images/gdaltools/rasterize.png
  129. BIN python/plugins/processing/images/gdaltools/sieve.png
  130. BIN python/plugins/processing/images/gdaltools/tiles.png
  131. BIN python/plugins/processing/images/gdaltools/translate.png
  132. BIN python/plugins/processing/images/gdaltools/vrt.png
  133. BIN python/plugins/processing/images/gdaltools/warp.png
@@ -25,6 +25,10 @@

__revision__ = '$Format:%H$'

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm

from processing.core.parameters import ParameterRaster
@@ -37,6 +41,8 @@

from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class ClipByExtent(GdalAlgorithm):

@@ -57,6 +63,9 @@ class ClipByExtent(GdalAlgorithm):
COMPRESSTYPE = ['NONE', 'JPEG', 'LZW', 'PACKBITS', 'DEFLATE']
TFW = 'TFW'

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-clip.png'))

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Clip raster by extent')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
@@ -25,6 +25,10 @@

__revision__ = '$Format:%H$'

import os

from PyQt4.QtGui import QIcon

from osgeo import gdal

from processing.core.parameters import ParameterRaster
@@ -42,6 +46,8 @@
from processing.tools import dataobjects
from processing.tools.vector import ogrConnectionString

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class ClipByMask(GdalAlgorithm):

@@ -65,6 +71,9 @@ class ClipByMask(GdalAlgorithm):
COMPRESSTYPE = ['NONE', 'JPEG', 'LZW', 'PACKBITS', 'DEFLATE']
TFW = 'TFW'

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-clip.png'))

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Clip raster by mask layer')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
@@ -27,6 +27,8 @@

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTableField
@@ -35,6 +37,8 @@
from processing.core.outputs import OutputRaster
from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class GridAverage(GdalAlgorithm):

@@ -50,6 +54,9 @@ class GridAverage(GdalAlgorithm):

TYPE = ['Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64']

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

def commandLineName(self):
return "gdalogr:gridaverage"

@@ -27,6 +27,8 @@

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTableField
@@ -35,6 +37,8 @@
from processing.core.outputs import OutputRaster
from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class GridDataMetrics(GdalAlgorithm):

@@ -54,6 +58,9 @@ class GridDataMetrics(GdalAlgorithm):
DATA_METRICS = ['Minimum', 'Maximum', 'Range', 'Count', 'Average distance',
'Average distance between points']

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

def commandLineName(self):
return "gdalogr:griddatametrics"

@@ -28,6 +28,8 @@

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTableField
@@ -36,6 +38,8 @@
from processing.core.outputs import OutputRaster
from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class GridInvDist(GdalAlgorithm):

@@ -54,6 +58,9 @@ class GridInvDist(GdalAlgorithm):

TYPE = ['Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64']

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

def commandLineName(self):
return "gdalogr:gridinvdist"

@@ -28,6 +28,8 @@

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTableField
@@ -36,6 +38,8 @@
from processing.core.outputs import OutputRaster
from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class GridNearest(GdalAlgorithm):

@@ -50,6 +54,9 @@ class GridNearest(GdalAlgorithm):

TYPE = ['Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64']

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

def commandLineName(self):
return "gdalogr:gridnearestneighbor"

@@ -25,6 +25,9 @@

__revision__ = '$Format:%H$'

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.parameters import ParameterRaster
@@ -33,6 +36,8 @@
from processing.core.outputs import OutputRaster
from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class aspect(GdalAlgorithm):

@@ -45,8 +50,7 @@ class aspect(GdalAlgorithm):
OUTPUT = 'OUTPUT'

#def getIcon(self):
# filepath = os.path.dirname(__file__) + '/icons/dem.png'
# return QIcon(filepath)
# return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'dem.png'))

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Aspect')
@@ -25,6 +25,9 @@

__revision__ = '$Format:%H$'

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.outputs import OutputRaster
@@ -34,7 +37,7 @@
from processing.algs.gdal.GdalUtils import GdalUtils
from processing.tools.system import tempFolder

import os
pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class buildvrt(GdalAlgorithm):
@@ -47,6 +50,9 @@ class buildvrt(GdalAlgorithm):

RESOLUTION_OPTIONS = ['average', 'highest', 'lowest']

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'vrt.png'))

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Build Virtual Raster')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
@@ -25,6 +25,10 @@

__revision__ = '$Format:%H$'

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm

from processing.core.parameters import ParameterRaster
@@ -35,6 +39,8 @@

from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class contour(GdalAlgorithm):

@@ -44,6 +50,9 @@ class contour(GdalAlgorithm):
FIELD_NAME = 'FIELD_NAME'
EXTRA = 'EXTRA'

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'contour.png'))

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Contour')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
@@ -27,18 +27,25 @@

import os

from PyQt4.QtGui import QIcon

from osgeo import gdal, osr

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.parameters import ParameterRaster
from processing.core.parameters import ParameterBoolean

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class ExtractProjection(GdalAlgorithm):

INPUT = 'INPUT'
PRJ_FILE = 'PRJ_FILE'

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'projection-export.png'))

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Extract projection')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Projections')
@@ -25,6 +25,9 @@

__revision__ = '$Format:%H$'

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm

@@ -37,6 +40,8 @@

from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class fillnodata(GdalAlgorithm):

@@ -48,6 +53,9 @@ class fillnodata(GdalAlgorithm):
NO_DEFAULT_MASK = 'NO_DEFAULT_MASK'
OUTPUT = 'OUTPUT'

#def getIcon(self):
# return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'fillnodata.png'))

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Fill nodata')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
@@ -25,6 +25,10 @@

__revision__ = '$Format:%H$'

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.parameters import ParameterRaster
from processing.core.parameters import ParameterBoolean
@@ -34,6 +38,8 @@

from processing.algs.gdal.GdalUtils import GdalUtils

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class gdaladdo(GdalAlgorithm):

@@ -57,6 +63,9 @@ class gdaladdo(GdalAlgorithm):
FORMATS = ['Internal (if possible)', 'External (GTiff .ovr)',
'External (ERDAS Imagine .aux)']

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-overview.png'))

def commandLineName(self):
return "gdalogr:overviews"

@@ -25,6 +25,9 @@

__revision__ = '$Format:%H$'

import os

from PyQt4.QtGui import QIcon

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
from processing.core.outputs import OutputVector
@@ -33,7 +36,7 @@
from processing.core.parameters import ParameterString
from processing.algs.gdal.GdalUtils import GdalUtils

import os
pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class gdaltindex(GdalAlgorithm):
@@ -43,6 +46,9 @@ class gdaltindex(GdalAlgorithm):
FIELD_NAME = 'FIELD_NAME'
PROJ_DIFFERENCE = 'PROJ_DIFFERENCE'

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'tiles.png'))

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Tile Index')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')

0 comments on commit 11a9a66

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