-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3885 from alexbruy/processing-relief
[processing] add missed functionality from Raster Terrain Analysis plugin
- ltr-3_40
- ltr-3_34
- ltr-3_28
- ltr-3_22
- ltr-3_16
- ltr-3_10
- ltr-3_4
- final-3_40_2
- final-3_40_1
- final-3_40_0
- final-3_38_3
- final-3_38_2
- final-3_38_1
- final-3_38_0
- final-3_36_3
- final-3_36_2
- final-3_36_1
- final-3_36_0
- final-3_34_14
- final-3_34_13
- final-3_34_12
- final-3_34_11
- final-3_34_10
- final-3_34_9
- final-3_34_8
- final-3_34_7
- final-3_34_6
- final-3_34_5
- final-3_34_4
- final-3_34_3
- final-3_34_2
- final-3_34_1
- final-3_34_0
- final-3_32_3
- final-3_32_2
- final-3_32_1
- final-3_32_0
- final-3_30_3
- final-3_30_2
- final-3_30_1
- final-3_30_0
- final-3_28_15
- final-3_28_14
- final-3_28_13
- final-3_28_12
- final-3_28_11
- final-3_28_10
- final-3_28_9
- final-3_28_8
- final-3_28_7
- final-3_28_6
- final-3_28_5
- final-3_28_4
- final-3_28_3
- final-3_28_2
- final-3_28_1
- final-3_28_0
- final-3_26_3
- final-3_26_2
- final-3_26_1
- final-3_26_0
- final-3_24_3
- final-3_24_2
- final-3_24_1
- final-3_24_0
- final-3_22_16
- final-3_22_15
- final-3_22_14
- final-3_22_13
- final-3_22_12
- final-3_22_11
- final-3_22_10
- final-3_22_9
- final-3_22_8
- final-3_22_7
- final-3_22_6
- final-3_22_5
- final-3_22_4
- final-3_22_3
- final-3_22_2
- final-3_22_1
- final-3_22_0
- final-3_20_3
- final-3_20_2
- final-3_20_1
- final-3_20_0
- final-3_18_3
- final-3_18_2
- final-3_18_1
- final-3_18_0
- final-3_16_16
- final-3_16_15
- final-3_16_14
- final-3_16_13
- final-3_16_12
- final-3_16_11
- final-3_16_10
- final-3_16_9
- final-3_16_8
- final-3_16_7
- final-3_16_6
- final-3_16_5
- final-3_16_4
- final-3_16_3
- final-3_16_2
- final-3_16_1
- final-3_16_0
- final-3_14_16
- final-3_14_15
- final-3_14_1
- final-3_14_0
- final-3_12_3
- final-3_12_2
- final-3_12_1
- final-3_12_0
- final-3_10_14
- final-3_10_13
- final-3_10_12
- final-3_10_11
- final-3_10_10
- final-3_10_9
- final-3_10_8
- final-3_10_7
- final-3_10_6
- final-3_10_5
- final-3_10_4
- final-3_10_3
- final-3_10_2
- final-3_10_1
- final-3_10_0
- final-3_8_3
- final-3_8_2
- final-3_8_1
- final-3_8_0
- final-3_6_3
- final-3_6_2
- final-3_6_1
- final-3_6_0
- final-3_4_15
- final-3_4_14
- final-3_4_13
- final-3_4_12
- final-3_4_11
- final-3_4_10
- final-3_4_9
- final-3_4_8
- final-3_4_7
- final-3_4_6
- final-3_4_5
- final-3_4_4
- final-3_4_3
- final-3_4_2
- final-3_4_1
- final-3_4_0
- final-3_2_3
- final-3_2_2
- final-3_2_1
- final-3_2_0
- final-3_0_3
- final-3_0_2
- final-3_0_1
- final-3_0_0
Showing
19 changed files
with
585 additions
and
1,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
*************************************************************************** | ||
Relief.py | ||
--------------------- | ||
Date : December 2016 | ||
Copyright : (C) 2016 by Alexander Bruy | ||
Email : alexander dot bruy at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
*************************************************************************** | ||
""" | ||
|
||
__author__ = 'Alexander Bruy' | ||
__date__ = 'December 2016' | ||
__copyright__ = '(C) 2016, Alexander Bruy' | ||
|
||
# This will get replaced with a git SHA1 when you do a git archive | ||
|
||
__revision__ = '$Format:%H$' | ||
|
||
import os | ||
|
||
from qgis.PyQt.QtGui import QIcon, QColor | ||
|
||
from qgis.analysis import QgsRelief | ||
|
||
from processing.core.GeoAlgorithm import GeoAlgorithm | ||
from processing.core.parameters import (Parameter, | ||
ParameterRaster, | ||
ParameterNumber, | ||
ParameterBoolean, | ||
_splitParameterOptions) | ||
from processing.core.outputs import OutputRaster, OutputTable | ||
from processing.tools import raster | ||
|
||
pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0] | ||
|
||
|
||
class Relief(GeoAlgorithm): | ||
|
||
INPUT_LAYER = 'INPUT_LAYER' | ||
Z_FACTOR = 'Z_FACTOR' | ||
AUTO_COLORS = 'AUTO_COLORS' | ||
COLORS = 'COLORS' | ||
OUTPUT_LAYER = 'OUTPUT_LAYER' | ||
FREQUENCY_DISTRIBUTION = 'FREQUENCY_DISTRIBUTION' | ||
|
||
def getIcon(self): | ||
return QIcon(os.path.join(pluginPath, 'images', 'dem.png')) | ||
|
||
def defineCharacteristics(self): | ||
self.name, self.i18n_name = self.trAlgorithm('Relief') | ||
self.group, self.i18n_group = self.trAlgorithm('Raster terrain analysis') | ||
|
||
class ParameterReliefColors(Parameter): | ||
default_metadata = { | ||
'widget_wrapper': 'processing.algs.qgis.ui.ReliefColorsWidget.ReliefColorsWidgetWrapper' | ||
} | ||
|
||
def __init__(self, name='', description='', parent=None, optional=True): | ||
Parameter.__init__(self, name, description, None, optional) | ||
self.parent = parent | ||
|
||
def setValue(self, value): | ||
if value is None: | ||
if not self.optional: | ||
return False | ||
self.value = None | ||
return True | ||
|
||
if value == '': | ||
if not self.optional: | ||
return False | ||
|
||
if isinstance(value, str): | ||
self.value = value if value != '' else None | ||
else: | ||
self.value = ParameterReliefColors.colorsToString(value) | ||
return True | ||
|
||
def getValueAsCommandLineParameter(self): | ||
return '"{}"'.format(self.value) | ||
|
||
def getAsScriptCode(self): | ||
param_type = '' | ||
param_type += 'relief colors ' | ||
return '##' + self.name + '=' + param_type | ||
|
||
@classmethod | ||
def fromScriptCode(self, line): | ||
isOptional, name, definition = _splitParameterOptions(line) | ||
descName = _createDescriptiveName(name) | ||
parent = definition.lower().strip()[len('relief colors') + 1:] | ||
return ParameterReliefColors(name, description, parent) | ||
|
||
@staticmethod | ||
def colorsToString(colors): | ||
s = '' | ||
for c in colors: | ||
s += '{:f}, {:f}, {:d}, {:d}, {:d};'.format(c[0], | ||
c[1], | ||
c[2], | ||
c[3], | ||
c[4]) | ||
return s[:-1] | ||
|
||
self.addParameter(ParameterRaster(self.INPUT_LAYER, | ||
self.tr('Elevation layer'))) | ||
self.addParameter(ParameterNumber(self.Z_FACTOR, | ||
self.tr('Z factor'), | ||
1.0, 999999.99, 1.0)) | ||
self.addParameter(ParameterBoolean(self.AUTO_COLORS, | ||
self.tr('Generate relief classes automaticaly'), | ||
False)) | ||
self.addParameter(ParameterReliefColors(self.COLORS, | ||
self.tr('Relief colors'), | ||
self.INPUT_LAYER, | ||
True)) | ||
self.addOutput(OutputRaster(self.OUTPUT_LAYER, | ||
self.tr('Relief'))) | ||
self.addOutput(OutputTable(self.FREQUENCY_DISTRIBUTION, | ||
self.tr('Frequency distribution'))) | ||
|
||
def processAlgorithm(self, progress): | ||
inputFile = self.getParameterValue(self.INPUT_LAYER) | ||
zFactor = self.getParameterValue(self.Z_FACTOR) | ||
automaticColors = self.getParameterValue(self.AUTO_COLORS) | ||
colors = self.getParameterValue(self.COLORS) | ||
outputFile = self.getOutputValue(self.OUTPUT_LAYER) | ||
frequencyDistribution = self.getOutputValue(self.FREQUENCY_DISTRIBUTION) | ||
|
||
outputFormat = raster.formatShortNameFromFileName(outputFile) | ||
|
||
relief = QgsRelief(inputFile, outputFile, outputFormat) | ||
|
||
if automaticColors: | ||
reliefColors = relief.calculateOptimizedReliefClasses() | ||
else: | ||
if colors is None: | ||
raise GeoAlgorithmExecutionException( | ||
self.tr('Specify relief colors or activate "Generate relief classes automaticaly" option.')) | ||
|
||
reliefColors = [] | ||
for c in colors.split(';'): | ||
v = c.split(',') | ||
color = QgsRelief.ReliefColor(QColor(int(v[2]), int(v[3]), int(v[4])), | ||
float(v[0]), | ||
float(v[1])) | ||
reliefColors.append(color) | ||
|
||
relief.setReliefColors(reliefColors) | ||
relief.setZFactor(zFactor) | ||
relief.exportFrequencyDistributionToCsv(frequencyDistribution) | ||
relief.processRaster(None) |
This file was deleted.
Oops, something went wrong.
274 changes: 274 additions & 0 deletions
274
python/plugins/processing/algs/qgis/ui/ReliefColorsWidget.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,274 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
*************************************************************************** | ||
ReliefColorsWidget.py | ||
--------------------- | ||
Date : December 2016 | ||
Copyright : (C) 2016 by Alexander Bruy | ||
Email : alexander dot bruy at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
*************************************************************************** | ||
""" | ||
|
||
__author__ = 'Alexander Bruy' | ||
__date__ = 'December 2016' | ||
__copyright__ = '(C) 2016, Alexander Bruy' | ||
|
||
# This will get replaced with a git SHA1 when you do a git archive | ||
|
||
__revision__ = '$Format:%H$' | ||
|
||
import os | ||
import codecs | ||
|
||
from qgis.PyQt import uic | ||
from qgis.PyQt.QtCore import pyqtSlot, QDir | ||
from qgis.PyQt.QtGui import (QIcon, | ||
QBrush, | ||
QColor) | ||
from qgis.PyQt.QtWidgets import (QTreeWidgetItem, | ||
QFileDialog, | ||
QMessageBox, | ||
QInputDialog, | ||
QColorDialog | ||
) | ||
from qgis.PyQt.QtXml import QDomDocument | ||
|
||
from qgis.core import QgsApplication, QgsMapLayer | ||
from qgis.analysis import QgsRelief | ||
|
||
from processing.gui.wrappers import WidgetWrapper | ||
from processing.tools import system | ||
|
||
pluginPath = os.path.dirname(__file__) | ||
WIDGET, BASE = uic.loadUiType(os.path.join(pluginPath, 'reliefcolorswidgetbase.ui')) | ||
|
||
|
||
class ReliefColorsWidget(BASE, WIDGET): | ||
|
||
def __init__(self): | ||
super(ReliefColorsWidget, self).__init__(None) | ||
self.setupUi(self) | ||
|
||
self.btnAdd.setIcon(QgsApplication.getThemeIcon('/symbologyAdd.svg')) | ||
self.btnRemove.setIcon(QgsApplication.getThemeIcon('/symbologyRemove.svg')) | ||
self.btnUp.setIcon(QgsApplication.getThemeIcon('/symbologyUp.svg')) | ||
self.btnDown.setIcon(QgsApplication.getThemeIcon('/symbologyDown.svg')) | ||
self.btnLoad.setIcon(QgsApplication.getThemeIcon('/mActionFileOpen.svg')) | ||
self.btnSave.setIcon(QgsApplication.getThemeIcon('/mActionFileSave.svg')) | ||
self.btnAuto.setIcon(QgsApplication.getThemeIcon('/mActionDraw.svg')) | ||
|
||
self.layer = None | ||
|
||
@pyqtSlot() | ||
def on_btnAdd_clicked(self): | ||
item = QTreeWidgetItem() | ||
item.setText(0, '0.00') | ||
item.setText(1, '0.00') | ||
item.setBackground(2, QBrush(QColor(127, 127, 127))) | ||
self.reliefClassTree.addTopLevelItem(item) | ||
|
||
@pyqtSlot() | ||
def on_btnRemove_clicked(self): | ||
selectedItems = self.reliefClassTree.selectedItems() | ||
for item in selectedItems: | ||
self.reliefClassTree.invisibleRootItem().removeChild(item) | ||
item = None | ||
|
||
@pyqtSlot() | ||
def on_btnDown_clicked(self): | ||
selectedItems = self.reliefClassTree.selectedItems() | ||
for item in selectedItems: | ||
currentIndex = self.reliefClassTree.indexOfTopLevelItem(item) | ||
if currentIndex < self.reliefClassTree.topLevelItemCount() - 1: | ||
self.reliefClassTree.takeTopLevelItem(currentIndex) | ||
self.reliefClassTree.insertTopLevelItem(currentIndex + 1, item) | ||
self.reliefClassTree.setCurrentItem(item) | ||
|
||
@pyqtSlot() | ||
def on_btnUp_clicked(self): | ||
selectedItems = self.reliefClassTree.selectedItems() | ||
for item in selectedItems: | ||
currentIndex = self.reliefClassTree.indexOfTopLevelItem(item) | ||
if currentIndex > 0: | ||
self.reliefClassTree.takeTopLevelItem(currentIndex) | ||
self.reliefClassTree.insertTopLevelItem(currentIndex - 1, item) | ||
self.reliefClassTree.setCurrentItem(item) | ||
|
||
@pyqtSlot() | ||
def on_btnLoad_clicked(self): | ||
fileName, _ = QFileDialog.getOpenFileName(None, | ||
self.tr('Import Colors and elevations from XML'), | ||
QDir.homePath(), | ||
self.tr('XML files (*.xml *.XML)')) | ||
if fileName == '': | ||
return | ||
|
||
doc = QDomDocument() | ||
with codecs.open(fileName, 'r', encoding='utf-8') as f: | ||
content = f.read() | ||
|
||
if not doc.setContent(content): | ||
QMessageBox.critical(None, | ||
self.tr('Error parsing XML'), | ||
self.tr('The XML file could not be loaded')) | ||
return | ||
|
||
self.reliefClassTree.clear() | ||
reliefColorList = doc.elementsByTagName('ReliefColor') | ||
for i in range(reliefColorList.length()): | ||
elem = reliefColorList.at(i).toElement() | ||
item = QTreeWidgetItem() | ||
item.setText(0, elem.attribute('MinElevation')) | ||
item.setText(1, elem.attribute('MaxElevation')) | ||
item.setBackground(2, QBrush(QColor(int(elem.attribute('red')), | ||
int(elem.attribute('green')), | ||
int(elem.attribute('blue'))))) | ||
self.reliefClassTree.addTopLevelItem(item) | ||
|
||
@pyqtSlot() | ||
def on_btnSave_clicked(self): | ||
fileName, _ = QFileDialog.getSaveFileName(None, | ||
self.tr('Export Colors and elevations as XML'), | ||
QDir.homePath(), | ||
self.tr('XML files (*.xml *.XML)')) | ||
|
||
if fileName == '': | ||
return | ||
|
||
if not fileName.lower().endswith('.xml'): | ||
fileName += '.xml' | ||
|
||
doc = QDomDocument() | ||
colorsElem = doc.createElement('ReliefColors') | ||
doc.appendChild(colorsElem) | ||
|
||
colors = self.reliefColors() | ||
for c in colors: | ||
elem = doc.createElement('ReliefColor') | ||
elem.setAttribute('MinElevation', str(c.minElevation)) | ||
elem.setAttribute('MaxElevation', str(c.maxElevation)) | ||
elem.setAttribute('red', str(c.color.red())) | ||
elem.setAttribute('green', str(c.color.green())) | ||
elem.setAttribute('blue', str(c.color.blue())) | ||
colorsElem.appendChild(elem) | ||
|
||
with codecs.open(fileName, 'w', encoding='utf-8') as f: | ||
f.write(doc.toString(2)) | ||
|
||
@pyqtSlot() | ||
def on_btnAuto_clicked(self): | ||
if self.layer is None: | ||
return | ||
|
||
relief = QgsRelief(self.layer, system.getTempFilename(), 'GTiff') | ||
colors = relief.calculateOptimizedReliefClasses() | ||
self.populateColors(colors) | ||
|
||
@pyqtSlot(QTreeWidgetItem, int) | ||
def on_reliefClassTree_itemDoubleClicked(self, item, column): | ||
if not item: | ||
return | ||
|
||
if column == 0: | ||
d, ok = QInputDialog.getDouble(None, | ||
self.tr('Enter lower elevation class bound'), | ||
self.tr('Elevation'), | ||
float(item.text(0)), | ||
decimals=2) | ||
if ok: | ||
item.setText(0, str(d)) | ||
elif column == 1: | ||
d, ok = QInputDialog.getDouble(None, | ||
self.tr('Enter upper elevation class bound'), | ||
self.tr('Elevation'), | ||
float(item.text(1)), | ||
decimals=2) | ||
if ok: | ||
item.setText(1, str(d)) | ||
elif column == 2: | ||
c = QColorDialog.getColor(item.background(2).color(), | ||
None, | ||
self.tr('Select color for relief class')) | ||
if c.isValid(): | ||
item.setBackground(2, QBrush(c)) | ||
|
||
def reliefColors(self): | ||
colors = [] | ||
for i in range(self.reliefClassTree.topLevelItemCount()): | ||
item = self.reliefClassTree.topLevelItem(i) | ||
if item: | ||
c = QgsRelief.ReliefColor(item.background(2).color(), | ||
float(item.text(0)), | ||
float(item.text(1))) | ||
colors.append(c) | ||
return colors | ||
|
||
def populateColors(self, colors): | ||
self.reliefClassTree.clear() | ||
for c in colors: | ||
item = QTreeWidgetItem() | ||
item.setText(0, str(c.minElevation)) | ||
item.setText(1, str(c.maxElevation)) | ||
item.setBackground(2, QBrush(c.color)) | ||
self.reliefClassTree.addTopLevelItem(item) | ||
|
||
def setLayer(self, layer): | ||
self.layer = layer | ||
|
||
def setValue(self, value): | ||
self.reliefClassTree.clear() | ||
rows = value.split(';') | ||
for r in rows: | ||
v = r.split(',') | ||
item = QTreeWidgetItem() | ||
item.setText(0, v[0]) | ||
item.setText(1, v[1]) | ||
color = QColor(int(v[2]), int(v[3]), int(v[4])) | ||
item.setBackground(2, QBrush(color)) | ||
self.reliefClassTree.addTopLevelItem(item) | ||
|
||
def value(self): | ||
rColors = self.reliefColors() | ||
colors = '' | ||
for c in rColors: | ||
colors += '{:f}, {:f}, {:d}, {:d}, {:d};'.format(c.minElevation, | ||
c.maxElevation, | ||
c.color.red(), | ||
c.color.green(), | ||
c.color.blue()) | ||
return colors[:-1] | ||
|
||
|
||
class ReliefColorsWidgetWrapper(WidgetWrapper): | ||
|
||
def createWidget(self): | ||
return ReliefColorsWidget() | ||
|
||
def postInitialize(self, wrappers): | ||
for wrapper in wrappers: | ||
if wrapper.param.name == self.param.parent: | ||
self.setLayer(wrapper.value()) | ||
wrapper.widgetValueHasChanged.connect(self.parentValueChanged) | ||
break | ||
|
||
def parentValueChanged(self, wrapper): | ||
self.setLayer(wrapper.value()) | ||
|
||
def setLayer(self, layer): | ||
if isinstance(layer, QgsMapLayer): | ||
layer = layer.source() | ||
self.widget.setLayer(layer) | ||
|
||
def setValue(self, value): | ||
self.widget.setValue(value) | ||
|
||
def value(self): | ||
return self.widget.value() |
127 changes: 127 additions & 0 deletions
127
python/plugins/processing/algs/qgis/ui/reliefcolorswidgetbase.ui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Form</class> | ||
<widget class="QWidget" name="Form"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>505</width> | ||
<height>209</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="0" column="0"> | ||
<widget class="QTreeWidget" name="reliefClassTree"> | ||
<column> | ||
<property name="text"> | ||
<string>Lower bound</string> | ||
</property> | ||
</column> | ||
<column> | ||
<property name="text"> | ||
<string>Upper bound</string> | ||
</property> | ||
</column> | ||
<column> | ||
<property name="text"> | ||
<string>Color</string> | ||
</property> | ||
</column> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QToolButton" name="btnAdd"> | ||
<property name="toolTip"> | ||
<string>Add row</string> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="btnRemove"> | ||
<property name="toolTip"> | ||
<string>Remove row</string> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="btnUp"> | ||
<property name="toolTip"> | ||
<string>Move up</string> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="btnDown"> | ||
<property name="toolTip"> | ||
<string>Move down</string> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="btnLoad"> | ||
<property name="toolTip"> | ||
<string>Load colors from file</string> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="btnSave"> | ||
<property name="toolTip"> | ||
<string>Save colors to file</string> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="btnAuto"> | ||
<property name="toolTip"> | ||
<string>Generate color table automatically</string> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
421 changes: 0 additions & 421 deletions
421
src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.cpp
This file was deleted.
Oops, something went wrong.
65 changes: 0 additions & 65 deletions
65
src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.h
This file was deleted.
Oops, something went wrong.
261 changes: 0 additions & 261 deletions
261
src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialogbase.ui
This file was deleted.
Oops, something went wrong.
255 changes: 0 additions & 255 deletions
255
src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisplugin.cpp
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisplugin.h
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/plugins/raster_terrain_analysis/qgsruggednessindex.cpp
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.