Skip to content
Permalink
Browse files

[processing] add icons for interpolation tools

  • Loading branch information
alexbruy committed Oct 19, 2016
1 parent 774965c commit ca66951ab1bfbef387aaf9c96c6672d2c9203a31
@@ -25,6 +25,10 @@

__revision__ = '$Format:%H$'

import os

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsRectangle
from qgis.analysis import (QgsInterpolator,
QgsIDWInterpolator,
@@ -40,6 +44,8 @@
from processing.core.outputs import OutputRaster
from processing.tools import dataobjects

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


class IdwInterpolationAttribute(GeoAlgorithm):

@@ -54,6 +60,9 @@ class IdwInterpolationAttribute(GeoAlgorithm):
EXTENT = 'EXTENT'
OUTPUT_LAYER = 'OUTPUT_LAYER'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('IDW interpolation (using attribute)')
self.group, self.i18n_group = self.trAlgorithm('Interpolation')
@@ -25,6 +25,10 @@

__revision__ = '$Format:%H$'

import os

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsRectangle, QgsWkbTypes
from qgis.analysis import (QgsInterpolator,
QgsIDWInterpolator,
@@ -39,6 +43,8 @@
from processing.core.outputs import OutputRaster
from processing.tools import dataobjects

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


class IdwInterpolationZValue(GeoAlgorithm):

@@ -52,6 +58,9 @@ class IdwInterpolationZValue(GeoAlgorithm):
EXTENT = 'EXTENT'
OUTPUT_LAYER = 'OUTPUT_LAYER'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('IDW interpolation (using Z-values)')
self.group, self.i18n_group = self.trAlgorithm('Interpolation')
@@ -25,6 +25,10 @@

__revision__ = '$Format:%H$'

import os

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsRectangle
from qgis.analysis import (QgsInterpolator,
QgsTINInterpolator,
@@ -41,6 +45,8 @@
from processing.core.outputs import OutputVector
from processing.tools import dataobjects

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


class TinInterpolationAttribute(GeoAlgorithm):

@@ -56,6 +62,9 @@ class TinInterpolationAttribute(GeoAlgorithm):
OUTPUT_LAYER = 'OUTPUT_LAYER'
TRIANULATION_FILE = 'TRIANULATION_FILE'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('TIN interpolation (using attribute)')
self.group, self.i18n_group = self.trAlgorithm('Interpolation')
@@ -25,6 +25,10 @@

__revision__ = '$Format:%H$'

import os

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsRectangle, QgsWkbTypes
from qgis.analysis import (QgsInterpolator,
QgsTINInterpolator,
@@ -40,6 +44,8 @@
from processing.core.outputs import OutputVector
from processing.tools import dataobjects

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


class TinInterpolationZValue(GeoAlgorithm):

@@ -54,6 +60,9 @@ class TinInterpolationZValue(GeoAlgorithm):
OUTPUT_LAYER = 'OUTPUT_LAYER'
TRIANULATION_FILE = 'TRIANULATION_FILE'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('TIN interpolation (using Z-values)')
self.group, self.i18n_group = self.trAlgorithm('Interpolation')
Binary file not shown.

0 comments on commit ca66951

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