File tree Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def name():
22
22
def description ():
23
23
return "Integrate gdal tools into qgis"
24
24
def version ():
25
- return "Version 1.2.24 "
25
+ return "Version 1.2.25 "
26
26
def qgisMinimumVersion ():
27
27
return "1.0"
28
28
def icon ():
Original file line number Diff line number Diff line change 1
- FILE (GLOB INIT_FILE __init__.py)
2
1
FILE (GLOB PY_FILES *.py)
3
2
FILE (GLOB UI_FILES *.ui)
3
+ FILE (GLOB COLOR_CONFIG_FILES terrain.txt)
4
4
5
5
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES} )
6
6
7
7
ADD_CUSTOM_TARGET (gdaltools_tools ALL DEPENDS ${PYUI_FILES} )
8
8
9
- INSTALL (FILES ${INIT_FILE} DESTINATION ${QGIS_DATA_DIR} /python/plugins/GdalTools/tools)
10
9
INSTALL (FILES ${PY_FILES} DESTINATION ${QGIS_DATA_DIR} /python/plugins/GdalTools/tools)
11
10
INSTALL (FILES ${PYUI_FILES} DESTINATION ${QGIS_DATA_DIR} /python/plugins/GdalTools/tools)
11
+ INSTALL (FILES ${COLOR_CONFIG_FILES} DESTINATION ${QGIS_DATA_DIR} /python/plugins/GdalTools/tools)
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ def __init__(self, iface):
27
27
self .hillshadeAzimuthSpin .setValue (315.0 )
28
28
self .slopeScaleSpin .setValue (1 )
29
29
30
+ # set the default color configuration file to terrain
31
+ import os .path
32
+ colorConfigFile = os .path .join (os .path .dirname (__file__ ), "terrain.txt" )
33
+ self .colorConfigFileEdit .setText (colorConfigFile )
34
+
30
35
self .outputFormat = Utils .fillRasterOutputFormat ()
31
36
32
37
self .setParamsStatus (
@@ -88,7 +93,7 @@ def fillOutputFileEdit(self):
88
93
self .outputFileEdit .setText (outputFile )
89
94
90
95
def fillColorConfigFileEdit (self ):
91
- configFile = Utils .FileDialog .getOpenFileName (self , self .tr ( "Select the color configuration file" ), "*" )
96
+ configFile = Utils .FileDialog .getOpenFileName (self , self .tr ( "Select the color configuration file" ))
92
97
if configFile .isEmpty ():
93
98
return
94
99
Original file line number Diff line number Diff line change
1
+ -11000 0 0 0
2
+ -500 0 0 30
3
+ -100 0 0 200
4
+ -1 150 150 255
5
+ 0 0 120 0
6
+ 100 0 150 0
7
+ 270 90 165 90
8
+ 300 90 175 90
9
+ 500 50 180 50
10
+ 500 70 170 70
11
+ 1000 70 145 75
12
+ 1000 70 155 75
13
+ 2000 150 156 100
14
+ 2800 220 220 220
15
+ 3000 255 255 255
16
+ 8850 255 255 255
17
+ nv white
18
+
You can’t perform that action at this time.
0 commit comments