Skip to content

Commit 6cd0f0e

Browse files
author
mmassing
committedJul 25, 2010
Patch by Luiz Motta: Do not translate gdal compression arguments, fixes #2881. Thanks.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13959 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0d74e28 commit 6cd0f0e

File tree

3 files changed

+18
-23
lines changed

3 files changed

+18
-23
lines changed
 

‎src/plugins/georeferencer/qgstransformsettingsdialog.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ QgsTransformSettingsDialog::QgsTransformSettingsDialog( const QString &raster, c
4646
mRegExpValidator = new QRegExpValidator( QRegExp( "(^epsg:{1}\\s*\\d+)|(^\\+proj.*)", Qt::CaseInsensitive ), leTargetSRS );
4747
leTargetSRS->setValidator( mRegExpValidator );
4848

49+
// Populate CompressionComboBox
50+
mListCompression.append("NONE");
51+
mListCompression.append("LZW");
52+
mListCompression.append("PACKBITS");
53+
mListCompression.append("DEFLATE");
54+
QStringList listCompressionTr;
55+
foreach ( QString item, mListCompression)
56+
{
57+
listCompressionTr.append(tr(item.toAscii().data()));
58+
}
59+
cmbCompressionComboBox->addItems(listCompressionTr);
60+
61+
4962
QSettings s;
5063
cmbTransformType->setCurrentIndex( s.value( "/Plugin-GeoReferencer/lasttransformation", -1 ).toInt() );
5164
cmbResampling->setCurrentIndex( s.value( "/Plugin-GeoReferencer/lastresampling", 0 ).toInt() );
@@ -86,7 +99,7 @@ void QgsTransformSettingsDialog::getTransformSettings( QgsGeorefTransform::Trans
8699
tp = ( QgsGeorefTransform::TransformParametrisation )cmbTransformType->currentIndex();
87100

88101
rm = ( QgsImageWarper::ResamplingMethod )cmbResampling->currentIndex();
89-
comprMethod = cmbCompressionComboBox->currentText();
102+
comprMethod = mListCompression.at( cmbCompressionComboBox->currentIndex() );
90103
if ( mWorldFileCheckBox->isChecked() )
91104
{
92105
raster = "";

‎src/plugins/georeferencer/qgstransformsettingsdialog.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* (at your option) any later version. *
1313
* *
1414
***************************************************************************/
15-
/* $Id$ */
15+
/* $Id: qgstransformsettingsdialog.h 13764 2010-06-21 12:11:11Z mhugent $ */
1616

1717
#ifndef QGSTRANSFORMSETTINGSDIALOG_H
1818
#define QGSTRANSFORMSETTINGSDIALOG_H
@@ -57,6 +57,8 @@ class QgsTransformSettingsDialog : public QDialog, private Ui::QgsTransformSetti
5757
QString mModifiedRaster;
5858

5959
int mCountGCPpoints;
60+
61+
QStringList mListCompression;
6062
};
6163

6264
#endif // QGSTRANSFORMSETTINGSDIALOG_H

‎src/plugins/georeferencer/qgstransformsettingsdialogbase.ui

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>356</width>
10-
<height>381</height>
10+
<height>429</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -93,26 +93,6 @@
9393
<verstretch>0</verstretch>
9494
</sizepolicy>
9595
</property>
96-
<item>
97-
<property name="text">
98-
<string>NONE</string>
99-
</property>
100-
</item>
101-
<item>
102-
<property name="text">
103-
<string>LZW</string>
104-
</property>
105-
</item>
106-
<item>
107-
<property name="text">
108-
<string>PACKBITS</string>
109-
</property>
110-
</item>
111-
<item>
112-
<property name="text">
113-
<string>DEFLATE</string>
114-
</property>
115-
</item>
11696
</widget>
11797
</item>
11898
<item row="4" column="0">

0 commit comments

Comments
 (0)
Please sign in to comment.