Skip to content

Commit 4eab185

Browse files
committedJun 2, 2014
[processing] all gdal algs now have the same icon
Did some code cleaning in gdal package
1 parent 45c0be1 commit 4eab185

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+74
-233
lines changed
 
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
FILE(GLOB PY_FILES *.py)
2-
FILE(GLOB ICON_FILES icons/*.png)
32

4-
ADD_SUBDIRECTORY(scripts)
53
ADD_SUBDIRECTORY(pyogr)
64

7-
PLUGIN_INSTALL(processing ./algs/gdal ${PY_FILES})
8-
PLUGIN_INSTALL(processing ./algs/gdal/icons ${ICON_FILES})
5+
PLUGIN_INSTALL(processing ./algs/gdal ${PY_FILES})

‎python/plugins/processing/algs/gdal/ClipByExtent.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from PyQt4 import QtGui
3030
from qgis.core import *
3131

32-
from processing.core.GeoAlgorithm import GeoAlgorithm
32+
from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
3333

3434
from processing.parameters.ParameterRaster import ParameterRaster
3535
from processing.parameters.ParameterExtent import ParameterExtent
@@ -39,18 +39,14 @@
3939
from processing.algs.gdal.GdalUtils import GdalUtils
4040

4141

42-
class ClipByExtent(GeoAlgorithm):
42+
class ClipByExtent(GdalAlgorithm):
4343

4444
INPUT = 'INPUT'
4545
OUTPUT = 'OUTPUT'
4646
NO_DATA = 'NO_DATA'
4747
PROJWIN = 'PROJWIN'
4848
EXTRA = 'EXTRA'
4949

50-
def getIcon(self):
51-
filepath = os.path.dirname(__file__) + '/icons/raster-clip.png'
52-
return QtGui.QIcon(filepath)
53-
5450
def defineCharacteristics(self):
5551
self.name = 'Clip raster by extent'
5652
self.group = '[GDAL] Extraction'

0 commit comments

Comments
 (0)
Please sign in to comment.