mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-05 00:03:43 -04:00
add -allow_projection_difference option (fix #4888)
This commit is contained in:
parent
dfbd0d1855
commit
2708f173fc
@ -30,6 +30,7 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
|||||||
(self.srcNoDataSpin, SIGNAL("valueChanged(int)"), self.srcNoDataCheck, "1.7.0"),
|
(self.srcNoDataSpin, SIGNAL("valueChanged(int)"), self.srcNoDataCheck, "1.7.0"),
|
||||||
(self.inputDirCheck, SIGNAL("stateChanged(int)")),
|
(self.inputDirCheck, SIGNAL("stateChanged(int)")),
|
||||||
(self.separateCheck, SIGNAL("stateChanged(int)"), None, "1.7.0"),
|
(self.separateCheck, SIGNAL("stateChanged(int)"), None, "1.7.0"),
|
||||||
|
(self.allowProjDiffCheck, SIGNAL("stateChanged(int)"), None, "1.7.0"),
|
||||||
(self.recurseCheck, SIGNAL("stateChanged(int)"), self.inputDirCheck)
|
(self.recurseCheck, SIGNAL("stateChanged(int)"), self.inputDirCheck)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@ -84,6 +85,8 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
|||||||
if self.srcNoDataCheck.isChecked():
|
if self.srcNoDataCheck.isChecked():
|
||||||
arguments << "-srcnodata"
|
arguments << "-srcnodata"
|
||||||
arguments << str(self.srcNoDataSpin.value())
|
arguments << str(self.srcNoDataSpin.value())
|
||||||
|
if self.allowProjDiffCheck.isChecked():
|
||||||
|
arguments << "-allow_projection_difference"
|
||||||
arguments << self.getOutputFileName()
|
arguments << self.getOutputFileName()
|
||||||
if self.inputDirCheck.isChecked():
|
if self.inputDirCheck.isChecked():
|
||||||
arguments << Utils.getRasterFiles( self.getInputFileName(), self.recurseCheck.isChecked() )
|
arguments << Utils.getRasterFiles( self.getInputFileName(), self.recurseCheck.isChecked() )
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>348</width>
|
<width>348</width>
|
||||||
<height>216</height>
|
<height>238</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -124,6 +124,13 @@
|
|||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="GdalToolsInOutSelector" name="outSelector" native="true"/>
|
<widget class="GdalToolsInOutSelector" name="outSelector" native="true"/>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="7" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="allowProjDiffCheck">
|
||||||
|
<property name="text">
|
||||||
|
<string>Allow projection difference</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user