Skip to content
Permalink
Browse files
Added the default color configuration file for DEM tool
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15582 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Mar 23, 2011
1 parent 37f8037 commit eaa11d3bbfebd84a940ea448f8ac24f3cc42848c
@@ -22,7 +22,7 @@ def name():
def description():
return "Integrate gdal tools into qgis"
def version():
return "Version 1.2.24"
return "Version 1.2.25"
def qgisMinimumVersion():
return "1.0"
def icon():
@@ -1,11 +1,11 @@
FILE(GLOB INIT_FILE __init__.py)
FILE(GLOB PY_FILES *.py)
FILE(GLOB UI_FILES *.ui)
FILE(GLOB COLOR_CONFIG_FILES terrain.txt)

PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})

ADD_CUSTOM_TARGET(gdaltools_tools ALL DEPENDS ${PYUI_FILES})

INSTALL(FILES ${INIT_FILE} DESTINATION ${QGIS_DATA_DIR}/python/plugins/GdalTools/tools)
INSTALL(FILES ${PY_FILES} DESTINATION ${QGIS_DATA_DIR}/python/plugins/GdalTools/tools)
INSTALL(FILES ${PYUI_FILES} DESTINATION ${QGIS_DATA_DIR}/python/plugins/GdalTools/tools)
INSTALL(FILES ${COLOR_CONFIG_FILES} DESTINATION ${QGIS_DATA_DIR}/python/plugins/GdalTools/tools)
@@ -27,6 +27,11 @@ def __init__(self, iface):
self.hillshadeAzimuthSpin.setValue(315.0)
self.slopeScaleSpin.setValue(1)

# set the default color configuration file to terrain
import os.path
colorConfigFile = os.path.join(os.path.dirname(__file__), "terrain.txt")
self.colorConfigFileEdit.setText(colorConfigFile)

self.outputFormat = Utils.fillRasterOutputFormat()

self.setParamsStatus(
@@ -88,7 +93,7 @@ def fillOutputFileEdit(self):
self.outputFileEdit.setText(outputFile)

def fillColorConfigFileEdit(self):
configFile = Utils.FileDialog.getOpenFileName(self, self.tr( "Select the color configuration file" ), "*")
configFile = Utils.FileDialog.getOpenFileName(self, self.tr( "Select the color configuration file" ))
if configFile.isEmpty():
return

@@ -0,0 +1,18 @@
-11000 0 0 0
-500 0 0 30
-100 0 0 200
-1 150 150 255
0 0 120 0
100 0 150 0
270 90 165 90
300 90 175 90
500 50 180 50
500 70 170 70
1000 70 145 75
1000 70 155 75
2000 150 156 100
2800 220 220 220
3000 255 255 255
8850 255 255 255
nv white

0 comments on commit eaa11d3

Please sign in to comment.