Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add -allow_projection_difference option (fix #4888)
  • Loading branch information
brushtyler committed Feb 11, 2012
1 parent dfbd0d1 commit 2708f17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions python/plugins/GdalTools/tools/doBuildVRT.py
Expand Up @@ -30,6 +30,7 @@ def __init__(self, iface):
(self.srcNoDataSpin, SIGNAL("valueChanged(int)"), self.srcNoDataCheck, "1.7.0"),
(self.inputDirCheck, SIGNAL("stateChanged(int)")),
(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)
]
)
Expand Down Expand Up @@ -84,6 +85,8 @@ def getArguments(self):
if self.srcNoDataCheck.isChecked():
arguments << "-srcnodata"
arguments << str(self.srcNoDataSpin.value())
if self.allowProjDiffCheck.isChecked():
arguments << "-allow_projection_difference"
arguments << self.getOutputFileName()
if self.inputDirCheck.isChecked():
arguments << Utils.getRasterFiles( self.getInputFileName(), self.recurseCheck.isChecked() )
Expand Down
9 changes: 8 additions & 1 deletion python/plugins/GdalTools/tools/widgetBuildVRT.ui
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>348</width>
<height>216</height>
<height>238</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -124,6 +124,13 @@
<item row="3" column="1">
<widget class="GdalToolsInOutSelector" name="outSelector" native="true"/>
</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>
</item>
</layout>
Expand Down

0 comments on commit 2708f17

Please sign in to comment.