mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Added the default color configuration file for DEM tool
git-svn-id: http://svn.osgeo.org/qgis/trunk@15582 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
f1527c7f1a
commit
653de0ed14
@ -22,7 +22,7 @@ def name():
|
|||||||
def description():
|
def description():
|
||||||
return "Integrate gdal tools into qgis"
|
return "Integrate gdal tools into qgis"
|
||||||
def version():
|
def version():
|
||||||
return "Version 1.2.24"
|
return "Version 1.2.25"
|
||||||
def qgisMinimumVersion():
|
def qgisMinimumVersion():
|
||||||
return "1.0"
|
return "1.0"
|
||||||
def icon():
|
def icon():
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
FILE(GLOB INIT_FILE __init__.py)
|
|
||||||
FILE(GLOB PY_FILES *.py)
|
FILE(GLOB PY_FILES *.py)
|
||||||
FILE(GLOB UI_FILES *.ui)
|
FILE(GLOB UI_FILES *.ui)
|
||||||
|
FILE(GLOB COLOR_CONFIG_FILES terrain.txt)
|
||||||
|
|
||||||
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})
|
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(gdaltools_tools ALL DEPENDS ${PYUI_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 ${PY_FILES} DESTINATION ${QGIS_DATA_DIR}/python/plugins/GdalTools/tools)
|
||||||
INSTALL(FILES ${PYUI_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 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
|||||||
self.hillshadeAzimuthSpin.setValue(315.0)
|
self.hillshadeAzimuthSpin.setValue(315.0)
|
||||||
self.slopeScaleSpin.setValue(1)
|
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.outputFormat = Utils.fillRasterOutputFormat()
|
||||||
|
|
||||||
self.setParamsStatus(
|
self.setParamsStatus(
|
||||||
@ -88,7 +93,7 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
|||||||
self.outputFileEdit.setText(outputFile)
|
self.outputFileEdit.setText(outputFile)
|
||||||
|
|
||||||
def fillColorConfigFileEdit(self):
|
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():
|
if configFile.isEmpty():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
18
python/plugins/GdalTools/tools/terrain.txt
Normal file
18
python/plugins/GdalTools/tools/terrain.txt
Normal file
@ -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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user