Skip to content

Commit 2708f17

Browse files
committedFeb 11, 2012
add -allow_projection_difference option (fix #4888)
1 parent dfbd0d1 commit 2708f17

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 

‎python/plugins/GdalTools/tools/doBuildVRT.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def __init__(self, iface):
3030
(self.srcNoDataSpin, SIGNAL("valueChanged(int)"), self.srcNoDataCheck, "1.7.0"),
3131
(self.inputDirCheck, SIGNAL("stateChanged(int)")),
3232
(self.separateCheck, SIGNAL("stateChanged(int)"), None, "1.7.0"),
33+
(self.allowProjDiffCheck, SIGNAL("stateChanged(int)"), None, "1.7.0"),
3334
(self.recurseCheck, SIGNAL("stateChanged(int)"), self.inputDirCheck)
3435
]
3536
)
@@ -84,6 +85,8 @@ def getArguments(self):
8485
if self.srcNoDataCheck.isChecked():
8586
arguments << "-srcnodata"
8687
arguments << str(self.srcNoDataSpin.value())
88+
if self.allowProjDiffCheck.isChecked():
89+
arguments << "-allow_projection_difference"
8790
arguments << self.getOutputFileName()
8891
if self.inputDirCheck.isChecked():
8992
arguments << Utils.getRasterFiles( self.getInputFileName(), self.recurseCheck.isChecked() )

‎python/plugins/GdalTools/tools/widgetBuildVRT.ui

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>348</width>
10-
<height>216</height>
10+
<height>238</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
@@ -124,6 +124,13 @@
124124
<item row="3" column="1">
125125
<widget class="GdalToolsInOutSelector" name="outSelector" native="true"/>
126126
</item>
127+
<item row="7" column="0" colspan="2">
128+
<widget class="QCheckBox" name="allowProjDiffCheck">
129+
<property name="text">
130+
<string>Allow projection difference</string>
131+
</property>
132+
</widget>
133+
</item>
127134
</layout>
128135
</item>
129136
</layout>

0 commit comments

Comments
 (0)
Please sign in to comment.