class Ui_GdalToolsDialog(object): def setupUi(self, GdalToolsDialog): GdalToolsDialog.setObjectName(_fromUtf8("GdalToolsDialog")) GdalToolsDialog.resize(400, 192) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsDialog) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsDialog) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.verticalLayout.addWidget(self.batchCheck) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(GdalToolsDialog) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.inSelector = GdalToolsInOutSelector(GdalToolsDialog) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.horizontalLayout.addWidget(self.inSelector) self.verticalLayout.addLayout(self.horizontalLayout) self.recurseCheck = QtGui.QCheckBox(GdalToolsDialog) self.recurseCheck.setObjectName(_fromUtf8("recurseCheck")) self.verticalLayout.addWidget(self.recurseCheck) self.prjCheck = QtGui.QCheckBox(GdalToolsDialog) self.prjCheck.setObjectName(_fromUtf8("prjCheck")) self.verticalLayout.addWidget(self.prjCheck) self.progressBar = QtGui.QProgressBar(GdalToolsDialog) self.progressBar.setProperty("value", 0) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout.addWidget(self.progressBar) self.buttonBox = QtGui.QDialogButtonBox(GdalToolsDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.label.setBuddy(self.inSelector) self.retranslateUi(GdalToolsDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), GdalToolsDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), GdalToolsDialog.reject) QtCore.QMetaObject.connectSlotsByName(GdalToolsDialog) def retranslateUi(self, GdalToolsDialog): GdalToolsDialog.setWindowTitle( _translate("GdalToolsDialog", "Extract projection", None)) self.batchCheck.setText( _translate("GdalToolsDialog", "Batch mode (for processing whole directory)", None)) self.label.setText(_translate("GdalToolsDialog", "&Input file", None)) self.recurseCheck.setText( _translate("GdalToolsDialog", "Recurse subdirectories", None)) self.prjCheck.setText( _translate("GdalToolsDialog", "Create also prj file", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(365, 129) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.thresholdCheck = QtGui.QCheckBox(GdalToolsWidget) self.thresholdCheck.setObjectName(_fromUtf8("thresholdCheck")) self.gridLayout.addWidget(self.thresholdCheck, 2, 0, 1, 1) self.thresholdSpin = QtGui.QSpinBox(GdalToolsWidget) self.thresholdSpin.setMaximum(65000) self.thresholdSpin.setObjectName(_fromUtf8("thresholdSpin")) self.gridLayout.addWidget(self.thresholdSpin, 2, 1, 1, 1) self.connectionsCheck = QtGui.QCheckBox(GdalToolsWidget) self.connectionsCheck.setObjectName(_fromUtf8("connectionsCheck")) self.gridLayout.addWidget(self.connectionsCheck, 3, 0, 1, 1) self.connectionsCombo = QtGui.QComboBox(GdalToolsWidget) self.connectionsCombo.setObjectName(_fromUtf8("connectionsCombo")) self.connectionsCombo.addItem(_fromUtf8("")) self.connectionsCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.connectionsCombo, 3, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Sieve", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.thresholdCheck.setText(_translate("GdalToolsWidget", "&Threshold", None)) self.connectionsCheck.setText(_translate("GdalToolsWidget", "&Pixel connections", None)) self.connectionsCombo.setItemText(0, _translate("GdalToolsWidget", "4", None)) self.connectionsCombo.setItemText(1, _translate("GdalToolsWidget", "8", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(426, 292) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.rasterInfoList = QtGui.QListWidget(GdalToolsWidget) self.rasterInfoList.setEditTriggers( QtGui.QAbstractItemView.NoEditTriggers) self.rasterInfoList.setAlternatingRowColors(True) self.rasterInfoList.setSelectionMode( QtGui.QAbstractItemView.ExtendedSelection) self.rasterInfoList.setObjectName(_fromUtf8("rasterInfoList")) self.verticalLayout.addWidget(self.rasterInfoList) self.suppressGCPCheck = QtGui.QCheckBox(GdalToolsWidget) self.suppressGCPCheck.setObjectName(_fromUtf8("suppressGCPCheck")) self.verticalLayout.addWidget(self.suppressGCPCheck) self.suppressMDCheck = QtGui.QCheckBox(GdalToolsWidget) self.suppressMDCheck.setObjectName(_fromUtf8("suppressMDCheck")) self.verticalLayout.addWidget(self.suppressMDCheck) self.label.setBuddy(self.inSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Info", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText(_translate("GdalToolsWidget", "Raster info", None)) self.suppressGCPCheck.setText( _translate("GdalToolsWidget", "Suppress GCP printing", None)) self.suppressMDCheck.setText( _translate("GdalToolsWidget", "Suppress metadata printing", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(400, 181) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.recurseCheck = QtGui.QCheckBox(GdalToolsWidget) self.recurseCheck.setObjectName(_fromUtf8("recurseCheck")) self.gridLayout.addWidget(self.recurseCheck, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.indexFieldCheck = QtGui.QCheckBox(GdalToolsWidget) self.indexFieldCheck.setObjectName(_fromUtf8("indexFieldCheck")) self.gridLayout.addWidget(self.indexFieldCheck, 3, 0, 1, 1) self.indexFieldEdit = QtGui.QLineEdit(GdalToolsWidget) self.indexFieldEdit.setEnabled(True) self.indexFieldEdit.setObjectName(_fromUtf8("indexFieldEdit")) self.gridLayout.addWidget(self.indexFieldEdit, 3, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 2, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.absolutePathCheck = QtGui.QCheckBox(GdalToolsWidget) self.absolutePathCheck.setObjectName(_fromUtf8("absolutePathCheck")) self.verticalLayout.addWidget(self.absolutePathCheck) self.skipDifferentProjCheck = QtGui.QCheckBox(GdalToolsWidget) self.skipDifferentProjCheck.setObjectName(_fromUtf8("skipDifferentProjCheck")) self.verticalLayout.addWidget(self.skipDifferentProjCheck) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Raster tile index", None)) self.label.setText(_translate("GdalToolsWidget", "Input directory", None)) self.recurseCheck.setText(_translate("GdalToolsWidget", "Recurse subdirectories", None)) self.label_2.setText(_translate("GdalToolsWidget", "Output shapefile", None)) self.indexFieldCheck.setText(_translate("GdalToolsWidget", "Tile index field", None)) self.indexFieldEdit.setText(_translate("GdalToolsWidget", "location", None)) self.absolutePathCheck.setText(_translate("GdalToolsWidget", "Write absolute path", None)) self.skipDifferentProjCheck.setText(_translate("GdalToolsWidget", "Skip files with different projection ref", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(376, 342) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setEnabled(True) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.verticalLayout.addWidget(self.batchCheck) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.cleanCheck = QtGui.QCheckBox(GdalToolsWidget) self.cleanCheck.setObjectName(_fromUtf8("cleanCheck")) self.verticalLayout.addWidget(self.cleanCheck) self.mPyramidOptionsWidget = QgsRasterPyramidsOptionsWidget(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.mPyramidOptionsWidget.sizePolicy().hasHeightForWidth()) self.mPyramidOptionsWidget.setSizePolicy(sizePolicy) self.mPyramidOptionsWidget.setObjectName(_fromUtf8("mPyramidOptionsWidget")) self.verticalLayout.addWidget(self.mPyramidOptionsWidget) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout.addWidget(self.progressBar) self.label.setBuddy(self.inSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Build overviews (Pyramids)", None)) self.batchCheck.setText(_translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.cleanCheck.setToolTip(_translate("GdalToolsWidget", "Remove all overviews.", None)) self.cleanCheck.setText(_translate("GdalToolsWidget", "Clean", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(443, 125) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.nearCheck = QtGui.QCheckBox(GdalToolsWidget) self.nearCheck.setObjectName(_fromUtf8("nearCheck")) self.gridLayout.addWidget(self.nearCheck, 2, 0, 1, 1) self.nearSpin = QtGui.QSpinBox(GdalToolsWidget) self.nearSpin.setMaximum(255) self.nearSpin.setObjectName(_fromUtf8("nearSpin")) self.gridLayout.addWidget(self.nearSpin, 2, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.whiteCheckBox = QtGui.QCheckBox(GdalToolsWidget) self.whiteCheckBox.setObjectName(_fromUtf8("whiteCheckBox")) self.verticalLayout.addWidget(self.whiteCheckBox) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Near Black", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.nearCheck.setText(_translate("GdalToolsWidget", "How &far from black (or white)", None)) self.whiteCheckBox.setText(_translate("GdalToolsWidget", "Search for nearly &white (255) pixels instead of black ones", None))
class Ui_GdalToolsDialog(object): def setupUi(self, GdalToolsDialog): GdalToolsDialog.setObjectName(_fromUtf8("GdalToolsDialog")) GdalToolsDialog.resize(400, 192) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsDialog) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsDialog) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.verticalLayout.addWidget(self.batchCheck) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(GdalToolsDialog) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.inSelector = GdalToolsInOutSelector(GdalToolsDialog) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.horizontalLayout.addWidget(self.inSelector) self.verticalLayout.addLayout(self.horizontalLayout) self.recurseCheck = QtGui.QCheckBox(GdalToolsDialog) self.recurseCheck.setObjectName(_fromUtf8("recurseCheck")) self.verticalLayout.addWidget(self.recurseCheck) self.prjCheck = QtGui.QCheckBox(GdalToolsDialog) self.prjCheck.setObjectName(_fromUtf8("prjCheck")) self.verticalLayout.addWidget(self.prjCheck) self.progressBar = QtGui.QProgressBar(GdalToolsDialog) self.progressBar.setProperty("value", 0) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout.addWidget(self.progressBar) self.buttonBox = QtGui.QDialogButtonBox(GdalToolsDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.label.setBuddy(self.inSelector) self.retranslateUi(GdalToolsDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), GdalToolsDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), GdalToolsDialog.reject) QtCore.QMetaObject.connectSlotsByName(GdalToolsDialog) def retranslateUi(self, GdalToolsDialog): GdalToolsDialog.setWindowTitle(_translate("GdalToolsDialog", "Extract projection", None)) self.batchCheck.setText(_translate("GdalToolsDialog", "Batch mode (for processing whole directory)", None)) self.label.setText(_translate("GdalToolsDialog", "&Input file", None)) self.recurseCheck.setText(_translate("GdalToolsDialog", "Recurse subdirectories", None)) self.prjCheck.setText(_translate("GdalToolsDialog", "Create also prj file", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(426, 292) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.rasterInfoList = QtGui.QListWidget(GdalToolsWidget) self.rasterInfoList.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) self.rasterInfoList.setAlternatingRowColors(True) self.rasterInfoList.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection) self.rasterInfoList.setObjectName(_fromUtf8("rasterInfoList")) self.verticalLayout.addWidget(self.rasterInfoList) self.suppressGCPCheck = QtGui.QCheckBox(GdalToolsWidget) self.suppressGCPCheck.setObjectName(_fromUtf8("suppressGCPCheck")) self.verticalLayout.addWidget(self.suppressGCPCheck) self.suppressMDCheck = QtGui.QCheckBox(GdalToolsWidget) self.suppressMDCheck.setObjectName(_fromUtf8("suppressMDCheck")) self.verticalLayout.addWidget(self.suppressMDCheck) self.label.setBuddy(self.inSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Info", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText(_translate("GdalToolsWidget", "Raster info", None)) self.suppressGCPCheck.setText(_translate("GdalToolsWidget", "Suppress GCP printing", None)) self.suppressMDCheck.setText(_translate("GdalToolsWidget", "Suppress metadata printing", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(446, 121) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.gridLayout = QtGui.QGridLayout(GdalToolsWidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.fieldCheck = QtGui.QCheckBox(GdalToolsWidget) self.fieldCheck.setObjectName(_fromUtf8("fieldCheck")) self.gridLayout.addWidget(self.fieldCheck, 2, 0, 1, 1) self.fieldEdit = QtGui.QLineEdit(GdalToolsWidget) self.fieldEdit.setObjectName(_fromUtf8("fieldEdit")) self.gridLayout.addWidget(self.fieldEdit, 2, 1, 1, 1) self.maskCheck = QtGui.QCheckBox(GdalToolsWidget) self.maskCheck.setObjectName(_fromUtf8("maskCheck")) self.gridLayout.addWidget(self.maskCheck, 3, 0, 1, 1) self.maskSelector = GdalToolsInOutSelector(GdalToolsWidget) self.maskSelector.setObjectName(_fromUtf8("maskSelector")) self.gridLayout.addWidget(self.maskSelector, 3, 1, 1, 1) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Polygonize (Raster to vector)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file (raster)", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file for polygons (shapefile)", None)) self.fieldCheck.setText(_translate("GdalToolsWidget", "&Field name", None)) self.fieldEdit.setText(_translate("GdalToolsWidget", "DN", None)) self.maskCheck.setText(_translate("GdalToolsWidget", "Use mask", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(348, 266) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSizeConstraint(QtGui.QLayout.SetNoConstraint) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.inputSelLayersCheck = QtGui.QCheckBox(GdalToolsWidget) self.inputSelLayersCheck.setObjectName(_fromUtf8("inputSelLayersCheck")) self.gridLayout.addWidget(self.inputSelLayersCheck, 0, 0, 1, 2) self.inputDirCheck = QtGui.QCheckBox(GdalToolsWidget) self.inputDirCheck.setObjectName(_fromUtf8("inputDirCheck")) self.gridLayout.addWidget(self.inputDirCheck, 1, 0, 1, 2) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 2, 0, 1, 1) self.recurseCheck = QtGui.QCheckBox(GdalToolsWidget) self.recurseCheck.setObjectName(_fromUtf8("recurseCheck")) self.gridLayout.addWidget(self.recurseCheck, 3, 1, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 4, 0, 1, 1) self.resolutionCheck = QtGui.QCheckBox(GdalToolsWidget) self.resolutionCheck.setObjectName(_fromUtf8("resolutionCheck")) self.gridLayout.addWidget(self.resolutionCheck, 5, 0, 1, 1) self.resolutionComboBox = QtGui.QComboBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.resolutionComboBox.sizePolicy().hasHeightForWidth()) self.resolutionComboBox.setSizePolicy(sizePolicy) self.resolutionComboBox.setObjectName(_fromUtf8("resolutionComboBox")) self.resolutionComboBox.addItem(_fromUtf8("")) self.resolutionComboBox.addItem(_fromUtf8("")) self.resolutionComboBox.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.resolutionComboBox, 5, 1, 1, 1) self.srcNoDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.srcNoDataCheck.setObjectName(_fromUtf8("srcNoDataCheck")) self.gridLayout.addWidget(self.srcNoDataCheck, 6, 0, 1, 1) self.srcNoDataSpin = QtGui.QSpinBox(GdalToolsWidget) self.srcNoDataSpin.setMinimum(-100000) self.srcNoDataSpin.setMaximum(65000) self.srcNoDataSpin.setObjectName(_fromUtf8("srcNoDataSpin")) self.gridLayout.addWidget(self.srcNoDataSpin, 6, 1, 1, 1) self.separateCheck = QtGui.QCheckBox(GdalToolsWidget) self.separateCheck.setObjectName(_fromUtf8("separateCheck")) self.gridLayout.addWidget(self.separateCheck, 7, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 2, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 4, 1, 1, 1) self.allowProjDiffCheck = QtGui.QCheckBox(GdalToolsWidget) self.allowProjDiffCheck.setObjectName(_fromUtf8("allowProjDiffCheck")) self.gridLayout.addWidget(self.allowProjDiffCheck, 8, 0, 1, 2) self.verticalLayout.addLayout(self.gridLayout) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) self.resolutionComboBox.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Build Virtual Raster (Catalog)", None)) self.inputSelLayersCheck.setText(_translate("GdalToolsWidget", "Use visible raster layers for input", None)) self.inputDirCheck.setText(_translate("GdalToolsWidget", "Choose input directory instead of files", None)) self.label.setText(_translate("GdalToolsWidget", "&Input files", None)) self.recurseCheck.setText(_translate("GdalToolsWidget", "Recurse subdirectories", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.resolutionCheck.setText(_translate("GdalToolsWidget", "&Resolution", None)) self.resolutionComboBox.setItemText(0, _translate("GdalToolsWidget", "Highest", None)) self.resolutionComboBox.setItemText(1, _translate("GdalToolsWidget", "Average", None)) self.resolutionComboBox.setItemText(2, _translate("GdalToolsWidget", "Lowest", None)) self.srcNoDataCheck.setText(_translate("GdalToolsWidget", "&Source No Data", None)) self.separateCheck.setText(_translate("GdalToolsWidget", "Se¶te", None)) self.allowProjDiffCheck.setText(_translate("GdalToolsWidget", "Allow projection difference", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(327, 229) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.valuesCheck = QtGui.QCheckBox(GdalToolsWidget) self.valuesCheck.setObjectName(_fromUtf8("valuesCheck")) self.gridLayout.addWidget(self.valuesCheck, 2, 0, 1, 1) self.distUnitsCheck = QtGui.QCheckBox(GdalToolsWidget) self.distUnitsCheck.setChecked(True) self.distUnitsCheck.setObjectName(_fromUtf8("distUnitsCheck")) self.gridLayout.addWidget(self.distUnitsCheck, 3, 0, 1, 1) self.distUnitsCombo = QtGui.QComboBox(GdalToolsWidget) self.distUnitsCombo.setObjectName(_fromUtf8("distUnitsCombo")) self.distUnitsCombo.addItem(_fromUtf8("")) self.distUnitsCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.distUnitsCombo, 3, 1, 1, 1) self.maxDistCheck = QtGui.QCheckBox(GdalToolsWidget) self.maxDistCheck.setObjectName(_fromUtf8("maxDistCheck")) self.gridLayout.addWidget(self.maxDistCheck, 4, 0, 1, 1) self.maxDistSpin = QtGui.QSpinBox(GdalToolsWidget) self.maxDistSpin.setMaximum(65000) self.maxDistSpin.setObjectName(_fromUtf8("maxDistSpin")) self.gridLayout.addWidget(self.maxDistSpin, 4, 1, 1, 1) self.noDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.noDataCheck.setObjectName(_fromUtf8("noDataCheck")) self.gridLayout.addWidget(self.noDataCheck, 5, 0, 1, 1) self.noDataSpin = QtGui.QSpinBox(GdalToolsWidget) self.noDataSpin.setMinimum(-100000) self.noDataSpin.setMaximum(65000) self.noDataSpin.setObjectName(_fromUtf8("noDataSpin")) self.gridLayout.addWidget(self.noDataSpin, 5, 1, 1, 1) self.fixedBufValCheck = QtGui.QCheckBox(GdalToolsWidget) self.fixedBufValCheck.setObjectName(_fromUtf8("fixedBufValCheck")) self.gridLayout.addWidget(self.fixedBufValCheck, 6, 0, 1, 1) self.fixedBufValSpin = QtGui.QSpinBox(GdalToolsWidget) self.fixedBufValSpin.setMaximum(65000) self.fixedBufValSpin.setObjectName(_fromUtf8("fixedBufValSpin")) self.gridLayout.addWidget(self.fixedBufValSpin, 6, 1, 1, 1) self.valuesEdit = QtGui.QLineEdit(GdalToolsWidget) self.valuesEdit.setObjectName(_fromUtf8("valuesEdit")) self.gridLayout.addWidget(self.valuesEdit, 2, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Proximity (Raster distance)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText( _translate("GdalToolsWidget", "&Output file", None)) self.valuesCheck.setText(_translate("GdalToolsWidget", "&Values", None)) self.distUnitsCheck.setText( _translate("GdalToolsWidget", "&Dist units", None)) self.distUnitsCombo.setItemText( 0, _translate("GdalToolsWidget", "GEO", None)) self.distUnitsCombo.setItemText( 1, _translate("GdalToolsWidget", "PIXEL", None)) self.maxDistCheck.setText( _translate("GdalToolsWidget", "&Max dist", None)) self.noDataCheck.setText( _translate("GdalToolsWidget", "&No data", None)) self.fixedBufValCheck.setText( _translate("GdalToolsWidget", "&Fixed buf val", None)) self.valuesEdit.setText(_translate("GdalToolsWidget", "0", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(338, 226) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.noDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.noDataCheck.setObjectName(_fromUtf8("noDataCheck")) self.gridLayout.addWidget(self.noDataCheck, 2, 0, 1, 1) self.noDataSpin = QtGui.QSpinBox(GdalToolsWidget) self.noDataSpin.setMinimum(-100000) self.noDataSpin.setMaximum(65000) self.noDataSpin.setObjectName(_fromUtf8("noDataSpin")) self.gridLayout.addWidget(self.noDataSpin, 2, 1, 1, 1) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.extentGroup = QtGui.QGroupBox(GdalToolsWidget) self.extentGroup.setObjectName(_fromUtf8("extentGroup")) self.gridLayout_2 = QtGui.QGridLayout(self.extentGroup) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.extentModeRadio = QtGui.QRadioButton(self.extentGroup) self.extentModeRadio.setChecked(True) self.extentModeRadio.setObjectName(_fromUtf8("extentModeRadio")) self.gridLayout_2.addWidget(self.extentModeRadio, 0, 0, 1, 1) self.maskModeRadio = QtGui.QRadioButton(self.extentGroup) self.maskModeRadio.setObjectName(_fromUtf8("maskModeRadio")) self.gridLayout_2.addWidget(self.maskModeRadio, 0, 1, 1, 1) self.modeStackedWidget = QtGui.QStackedWidget(self.extentGroup) self.modeStackedWidget.setObjectName(_fromUtf8("modeStackedWidget")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.gridLayout_3 = QtGui.QGridLayout(self.page) self.gridLayout_3.setMargin(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.extentSelector = GdalToolsExtentSelector(self.page) self.extentSelector.setObjectName(_fromUtf8("extentSelector")) self.gridLayout_3.addWidget(self.extentSelector, 0, 0, 1, 1) self.modeStackedWidget.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.gridLayout_4 = QtGui.QGridLayout(self.page_2) self.gridLayout_4.setMargin(0) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem, 2, 0, 1, 1) self.label = QtGui.QLabel(self.page_2) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_4.addWidget(self.label, 0, 0, 1, 1) self.maskSelector = GdalToolsInOutSelector(self.page_2) self.maskSelector.setObjectName(_fromUtf8("maskSelector")) self.gridLayout_4.addWidget(self.maskSelector, 0, 1, 1, 1) self.alphaBandCheck = QtGui.QCheckBox(self.page_2) self.alphaBandCheck.setObjectName(_fromUtf8("alphaBandCheck")) self.gridLayout_4.addWidget(self.alphaBandCheck, 1, 0, 1, 1) self.modeStackedWidget.addWidget(self.page_2) self.gridLayout_2.addWidget(self.modeStackedWidget, 1, 0, 1, 2) self.verticalLayout.addWidget(self.extentGroup) self.label_2.setBuddy(self.outSelector) self.label_3.setBuddy(self.inSelector) self.retranslateUi(GdalToolsWidget) self.modeStackedWidget.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Clipper", None)) self.label_2.setText( _translate("GdalToolsWidget", "&Output file", None)) self.noDataCheck.setText( _translate("GdalToolsWidget", "&No data value", None)) self.label_3.setText( _translate("GdalToolsWidget", "&Input file (raster)", None)) self.extentGroup.setTitle( _translate("GdalToolsWidget", "Clipping mode", None)) self.extentModeRadio.setText( _translate("GdalToolsWidget", "Extent", None)) self.maskModeRadio.setText( _translate("GdalToolsWidget", "Mask layer", None)) self.label.setText(_translate("GdalToolsWidget", "Mask layer", None)) self.alphaBandCheck.setText( _translate("GdalToolsWidget", "Create an output alpha band", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(356, 191) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.verticalLayout.addWidget(self.batchCheck) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.colorsCheck = QtGui.QCheckBox(GdalToolsWidget) self.colorsCheck.setObjectName(_fromUtf8("colorsCheck")) self.gridLayout.addWidget(self.colorsCheck, 2, 0, 1, 1) self.colorsSpin = QtGui.QSpinBox(GdalToolsWidget) self.colorsSpin.setMinimum(2) self.colorsSpin.setMaximum(256) self.colorsSpin.setObjectName(_fromUtf8("colorsSpin")) self.gridLayout.addWidget(self.colorsSpin, 2, 1, 1, 1) self.bandSpin = QtGui.QSpinBox(GdalToolsWidget) self.bandSpin.setMinimum(1) self.bandSpin.setMaximum(256) self.bandSpin.setObjectName(_fromUtf8("bandSpin")) self.gridLayout.addWidget(self.bandSpin, 3, 1, 1, 1) self.bandCheck = QtGui.QCheckBox(GdalToolsWidget) self.bandCheck.setObjectName(_fromUtf8("bandCheck")) self.gridLayout.addWidget(self.bandCheck, 3, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout.addWidget(self.progressBar) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Convert RGB image to paletted", None)) self.batchCheck.setText( _translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText( _translate("GdalToolsWidget", "&Output file", None)) self.colorsCheck.setText( _translate("GdalToolsWidget", "Number of colors", None)) self.bandCheck.setText( _translate("GdalToolsWidget", "Band to convert", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(335, 429) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout_2 = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.verticalLayout_2.addWidget(self.batchCheck) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.formatLabel = QtGui.QLabel(GdalToolsWidget) self.formatLabel.setObjectName(_fromUtf8("formatLabel")) self.gridLayout.addWidget(self.formatLabel, 2, 0, 1, 1) self.formatCombo = QtGui.QComboBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.formatCombo.sizePolicy().hasHeightForWidth()) self.formatCombo.setSizePolicy(sizePolicy) self.formatCombo.setObjectName(_fromUtf8("formatCombo")) self.gridLayout.addWidget(self.formatCombo, 2, 1, 1, 1) self.targetSRSCheck = QtGui.QCheckBox(GdalToolsWidget) self.targetSRSCheck.setObjectName(_fromUtf8("targetSRSCheck")) self.gridLayout.addWidget(self.targetSRSCheck, 3, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.targetSRSEdit = QtGui.QLineEdit(GdalToolsWidget) self.targetSRSEdit.setMinimumSize(QtCore.QSize(100, 0)) self.targetSRSEdit.setObjectName(_fromUtf8("targetSRSEdit")) self.horizontalLayout.addWidget(self.targetSRSEdit) self.selectTargetSRSButton = QtGui.QPushButton(GdalToolsWidget) self.selectTargetSRSButton.setObjectName(_fromUtf8("selectTargetSRSButton")) self.horizontalLayout.addWidget(self.selectTargetSRSButton) self.gridLayout.addLayout(self.horizontalLayout, 3, 1, 1, 1) self.outsizeCheck = QtGui.QCheckBox(GdalToolsWidget) self.outsizeCheck.setMaximumSize(QtCore.QSize(100, 16777215)) self.outsizeCheck.setObjectName(_fromUtf8("outsizeCheck")) self.gridLayout.addWidget(self.outsizeCheck, 4, 0, 1, 1) self.outsizeSpin = QtGui.QSpinBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.outsizeSpin.sizePolicy().hasHeightForWidth()) self.outsizeSpin.setSizePolicy(sizePolicy) self.outsizeSpin.setMinimum(1) self.outsizeSpin.setMaximum(1000) self.outsizeSpin.setObjectName(_fromUtf8("outsizeSpin")) self.gridLayout.addWidget(self.outsizeSpin, 4, 1, 1, 1) self.nodataCheck = QtGui.QCheckBox(GdalToolsWidget) self.nodataCheck.setObjectName(_fromUtf8("nodataCheck")) self.gridLayout.addWidget(self.nodataCheck, 5, 0, 1, 1) self.expandCheck = QtGui.QCheckBox(GdalToolsWidget) self.expandCheck.setObjectName(_fromUtf8("expandCheck")) self.gridLayout.addWidget(self.expandCheck, 6, 0, 1, 1) self.expandCombo = QtGui.QComboBox(GdalToolsWidget) self.expandCombo.setObjectName(_fromUtf8("expandCombo")) self.expandCombo.addItem(_fromUtf8("")) self.expandCombo.addItem(_fromUtf8("")) self.expandCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.expandCombo, 6, 1, 1, 1) self.srcwinCheck = QtGui.QCheckBox(GdalToolsWidget) self.srcwinCheck.setObjectName(_fromUtf8("srcwinCheck")) self.gridLayout.addWidget(self.srcwinCheck, 7, 0, 1, 1) self.srcwinEdit = QtGui.QLineEdit(GdalToolsWidget) self.srcwinEdit.setObjectName(_fromUtf8("srcwinEdit")) self.gridLayout.addWidget(self.srcwinEdit, 7, 1, 1, 1) self.prjwinCheck = QtGui.QCheckBox(GdalToolsWidget) self.prjwinCheck.setObjectName(_fromUtf8("prjwinCheck")) self.gridLayout.addWidget(self.prjwinCheck, 8, 0, 1, 1) self.prjwinEdit = QtGui.QLineEdit(GdalToolsWidget) self.prjwinEdit.setObjectName(_fromUtf8("prjwinEdit")) self.gridLayout.addWidget(self.prjwinEdit, 8, 1, 1, 1) self.sdsCheck = QtGui.QCheckBox(GdalToolsWidget) self.sdsCheck.setObjectName(_fromUtf8("sdsCheck")) self.gridLayout.addWidget(self.sdsCheck, 9, 0, 1, 1) self.nodataSpin = QtGui.QSpinBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.nodataSpin.sizePolicy().hasHeightForWidth()) self.nodataSpin.setSizePolicy(sizePolicy) self.nodataSpin.setMinimum(-999999999) self.nodataSpin.setMaximum(999999999) self.nodataSpin.setObjectName(_fromUtf8("nodataSpin")) self.gridLayout.addWidget(self.nodataSpin, 5, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.creationOptionsGroupBox = QgsCollapsibleGroupBox(GdalToolsWidget) self.creationOptionsGroupBox.setProperty("collapsed", False) self.creationOptionsGroupBox.setProperty("saveCollapsedState", True) self.creationOptionsGroupBox.setCheckable(True) self.creationOptionsGroupBox.setChecked(False) self.creationOptionsGroupBox.setObjectName(_fromUtf8("creationOptionsGroupBox")) self.verticalLayout = QtGui.QVBoxLayout(self.creationOptionsGroupBox) self.verticalLayout.setContentsMargins(9, -1, -1, 9) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.creationOptionsWidget = QgsRasterFormatSaveOptionsWidget(self.creationOptionsGroupBox) self.creationOptionsWidget.setObjectName(_fromUtf8("creationOptionsWidget")) self.verticalLayout.addWidget(self.creationOptionsWidget) self.verticalLayout_2.addWidget(self.creationOptionsGroupBox) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout_2.addWidget(self.progressBar) self.label_3.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Translate (Convert format)", None)) self.batchCheck.setText(_translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label_3.setText(_translate("GdalToolsWidget", "&Input Layer", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.formatLabel.setText(_translate("GdalToolsWidget", "Output format", None)) self.targetSRSCheck.setText(_translate("GdalToolsWidget", "&Target SRS", None)) self.selectTargetSRSButton.setText(_translate("GdalToolsWidget", "Select...", None)) self.outsizeCheck.setToolTip(_translate("GdalToolsWidget", "Percentage to resize image. This will change pixel size/image resolution accordingly: 25% will create an image with pixels 4x larger.", None)) self.outsizeCheck.setText(_translate("GdalToolsWidget", "Outsize", None)) self.outsizeSpin.setToolTip(_translate("GdalToolsWidget", "Percentage to resize image. This will change pixel size/image resolution accordingly: 25% will create an image with pixels 4x larger.", None)) self.outsizeSpin.setSuffix(_translate("GdalToolsWidget", "%", None)) self.nodataCheck.setToolTip(_translate("GdalToolsWidget", "Assign a specified nodata value to output bands.", None)) self.nodataCheck.setText(_translate("GdalToolsWidget", "No data", None)) self.expandCheck.setToolTip(_translate("GdalToolsWidget", "To expose a dataset with 1 band with a color table as a dataset with 3 (RGB) or 4 (RGBA) bands. \n" "Useful for output drivers such as JPEG, JPEG2000, MrSID, ECW that don\'t support color indexed datasets. \n" "The \'gray\' value (from GDAL 1.7.0) enables to expand a dataset with a color table that only contains gray levels to a gray indexed dataset.", None)) self.expandCheck.setText(_translate("GdalToolsWidget", "Expand", None)) self.expandCombo.setToolTip(_translate("GdalToolsWidget", "To expose a dataset with 1 band with a color table as a dataset with 3 (RGB) or 4 (RGBA) bands. \n" "Useful for output drivers such as JPEG, JPEG2000, MrSID, ECW that don\'t support color indexed datasets. \n" "The \'gray\' value (from GDAL 1.7.0) enables to expand a dataset with a color table that only contains gray levels to a gray indexed dataset.", None)) self.expandCombo.setItemText(0, _translate("GdalToolsWidget", "Gray", None)) self.expandCombo.setItemText(1, _translate("GdalToolsWidget", "RGB", None)) self.expandCombo.setItemText(2, _translate("GdalToolsWidget", "RGBA", None)) self.srcwinCheck.setToolTip(_translate("GdalToolsWidget", "Selects a subwindow from the source image for copying based on pixel/line location. (Enter Xoff Yoff Xsize Ysize)", None)) self.srcwinCheck.setText(_translate("GdalToolsWidget", "Srcwin", None)) self.srcwinEdit.setToolTip(_translate("GdalToolsWidget", "Selects a subwindow from the source image for copying based on pixel/line location. (Enter Xoff Yoff Xsize Ysize)", None)) self.prjwinCheck.setToolTip(_translate("GdalToolsWidget", "Selects a subwindow from the source image for copying (like -srcwin) but with the corners given in georeferenced coordinates. (Enter ulx uly lrx lry)", None)) self.prjwinCheck.setText(_translate("GdalToolsWidget", "Prjwin", None)) self.prjwinEdit.setToolTip(_translate("GdalToolsWidget", "Selects a subwindow from the source image for copying (like -srcwin) but with the corners given in georeferenced coordinates. (Enter ulx uly lrx lry)", None)) self.sdsCheck.setToolTip(_translate("GdalToolsWidget", "Copy all subdatasets of this file to individual output files. Use with formats like HDF or OGDI that have subdatasets.", None)) self.sdsCheck.setText(_translate("GdalToolsWidget", "Sds", None)) self.nodataSpin.setToolTip(_translate("GdalToolsWidget", "Assign a specified nodata value to output bands.", None)) self.creationOptionsGroupBox.setTitle(_translate("GdalToolsWidget", "&Creation Options", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(369, 244) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.verticalLayout.addWidget(self.batchCheck) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.verticalLayout.addWidget(self.label_3) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.recurseCheck = QtGui.QCheckBox(GdalToolsWidget) self.recurseCheck.setObjectName(_fromUtf8("recurseCheck")) self.gridLayout.addWidget(self.recurseCheck, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.label_4 = QtGui.QLabel(GdalToolsWidget) self.label_4.setTextFormat(QtCore.Qt.AutoText) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 3, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.desiredSRSEdit = QtGui.QLineEdit(GdalToolsWidget) self.desiredSRSEdit.setObjectName(_fromUtf8("desiredSRSEdit")) self.horizontalLayout_2.addWidget(self.desiredSRSEdit) self.selectDesiredSRSButton = QtGui.QPushButton(GdalToolsWidget) self.selectDesiredSRSButton.setObjectName(_fromUtf8("selectDesiredSRSButton")) self.horizontalLayout_2.addWidget(self.selectDesiredSRSButton) self.gridLayout.addLayout(self.horizontalLayout_2, 2, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout.addWidget(self.progressBar) self.label.setBuddy(self.inSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Assign projection", None)) self.batchCheck.setText(_translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label_3.setText(_translate("GdalToolsWidget", "WARNING: current projection definition will be cleared", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.recurseCheck.setText(_translate("GdalToolsWidget", "Recurse subdirectories", None)) self.label_2.setText(_translate("GdalToolsWidget", "Desired SRS", None)) self.label_4.setText(_translate("GdalToolsWidget", "Output will be:\n" "- new GeoTiff if input file is not GeoTiff\n" "- overwritten if input is GeoTiff", None)) self.selectDesiredSRSButton.setText(_translate("GdalToolsWidget", "Select...", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(368, 300) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.gridLayout = QtGui.QGridLayout(GdalToolsWidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.gridLayout.addWidget(self.batchCheck, 0, 0, 1, 2) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 1, 1, 1, 1) self.label_1 = QtGui.QLabel(GdalToolsWidget) self.label_1.setObjectName(_fromUtf8("label_1")) self.gridLayout.addWidget(self.label_1, 2, 0, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 2, 1, 1, 1) self.formatLabel = QtGui.QLabel(GdalToolsWidget) self.formatLabel.setFrameShape(QtGui.QFrame.NoFrame) self.formatLabel.setObjectName(_fromUtf8("formatLabel")) self.gridLayout.addWidget(self.formatLabel, 3, 0, 1, 1) self.formatCombo = QtGui.QComboBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.formatCombo.sizePolicy().hasHeightForWidth()) self.formatCombo.setSizePolicy(sizePolicy) self.formatCombo.setObjectName(_fromUtf8("formatCombo")) self.gridLayout.addWidget(self.formatCombo, 3, 1, 1, 1) self.distanceCheck = QtGui.QCheckBox(GdalToolsWidget) self.distanceCheck.setObjectName(_fromUtf8("distanceCheck")) self.gridLayout.addWidget(self.distanceCheck, 4, 0, 1, 1) self.distanceSpin = QtGui.QSpinBox(GdalToolsWidget) self.distanceSpin.setMinimum(1) self.distanceSpin.setMaximum(1000000) self.distanceSpin.setProperty("value", 100) self.distanceSpin.setObjectName(_fromUtf8("distanceSpin")) self.gridLayout.addWidget(self.distanceSpin, 4, 1, 1, 1) self.smoothCheck = QtGui.QCheckBox(GdalToolsWidget) self.smoothCheck.setObjectName(_fromUtf8("smoothCheck")) self.gridLayout.addWidget(self.smoothCheck, 5, 0, 1, 1) self.smoothSpin = QtGui.QSpinBox(GdalToolsWidget) self.smoothSpin.setMinimum(0) self.smoothSpin.setProperty("value", 0) self.smoothSpin.setObjectName(_fromUtf8("smoothSpin")) self.gridLayout.addWidget(self.smoothSpin, 5, 1, 1, 1) self.bandCheck = QtGui.QCheckBox(GdalToolsWidget) self.bandCheck.setObjectName(_fromUtf8("bandCheck")) self.gridLayout.addWidget(self.bandCheck, 6, 0, 1, 1) self.bandSpin = QtGui.QSpinBox(GdalToolsWidget) self.bandSpin.setMinimum(1) self.bandSpin.setObjectName(_fromUtf8("bandSpin")) self.gridLayout.addWidget(self.bandSpin, 6, 1, 1, 1) self.maskCheck = QtGui.QCheckBox(GdalToolsWidget) self.maskCheck.setObjectName(_fromUtf8("maskCheck")) self.gridLayout.addWidget(self.maskCheck, 7, 0, 1, 1) self.maskSelector = GdalToolsInOutSelector(GdalToolsWidget) self.maskSelector.setObjectName(_fromUtf8("maskSelector")) self.gridLayout.addWidget(self.maskSelector, 7, 1, 1, 1) self.nomaskCheck = QtGui.QCheckBox(GdalToolsWidget) self.nomaskCheck.setObjectName(_fromUtf8("nomaskCheck")) self.gridLayout.addWidget(self.nomaskCheck, 8, 0, 1, 2) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.gridLayout.addWidget(self.progressBar, 9, 0, 1, 2) self.label.setBuddy(self.inSelector) self.label_1.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Fill Nodata", None)) self.batchCheck.setText(_translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input Layer", None)) self.label_1.setText(_translate("GdalToolsWidget", "&Output file", None)) self.formatLabel.setText(_translate("GdalToolsWidget", "Output format", None)) self.distanceCheck.setText(_translate("GdalToolsWidget", "Search distance", None)) self.smoothCheck.setText(_translate("GdalToolsWidget", "Smooth iterations", None)) self.bandCheck.setText(_translate("GdalToolsWidget", "Band to operate on", None)) self.maskCheck.setText(_translate("GdalToolsWidget", "Validity mask", None)) self.nomaskCheck.setText(_translate("GdalToolsWidget", "Do not use the default validity mask", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(356, 191) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.verticalLayout.addWidget(self.batchCheck) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.colorsCheck = QtGui.QCheckBox(GdalToolsWidget) self.colorsCheck.setObjectName(_fromUtf8("colorsCheck")) self.gridLayout.addWidget(self.colorsCheck, 2, 0, 1, 1) self.colorsSpin = QtGui.QSpinBox(GdalToolsWidget) self.colorsSpin.setMinimum(2) self.colorsSpin.setMaximum(256) self.colorsSpin.setObjectName(_fromUtf8("colorsSpin")) self.gridLayout.addWidget(self.colorsSpin, 2, 1, 1, 1) self.bandSpin = QtGui.QSpinBox(GdalToolsWidget) self.bandSpin.setMinimum(1) self.bandSpin.setMaximum(256) self.bandSpin.setObjectName(_fromUtf8("bandSpin")) self.gridLayout.addWidget(self.bandSpin, 3, 1, 1, 1) self.bandCheck = QtGui.QCheckBox(GdalToolsWidget) self.bandCheck.setObjectName(_fromUtf8("bandCheck")) self.gridLayout.addWidget(self.bandCheck, 3, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout.addWidget(self.progressBar) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Convert RGB image to paletted", None)) self.batchCheck.setText(_translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.colorsCheck.setText(_translate("GdalToolsWidget", "Number of colors", None)) self.bandCheck.setText(_translate("GdalToolsWidget", "Band to convert", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(509, 261) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1) self.attributeComboBox = QtGui.QComboBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.attributeComboBox.sizePolicy().hasHeightForWidth()) self.attributeComboBox.setSizePolicy(sizePolicy) self.attributeComboBox.setObjectName(_fromUtf8("attributeComboBox")) self.gridLayout_2.addWidget(self.attributeComboBox, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 2, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout_2.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout_2.addWidget(self.outSelector, 2, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout_2) self.radioKeepSize = QtGui.QRadioButton(GdalToolsWidget) self.radioKeepSize.setChecked(True) self.radioKeepSize.setObjectName(_fromUtf8("radioKeepSize")) self.verticalLayout.addWidget(self.radioKeepSize) self.radioSetSize = QtGui.QRadioButton(GdalToolsWidget) self.radioSetSize.setChecked(False) self.radioSetSize.setObjectName(_fromUtf8("radioSetSize")) self.verticalLayout.addWidget(self.radioSetSize) self.widgetSize = QtGui.QWidget(GdalToolsWidget) self.widgetSize.setEnabled(False) self.widgetSize.setObjectName(_fromUtf8("widgetSize")) self.horizontalLayout = QtGui.QHBoxLayout(self.widgetSize) self.horizontalLayout.setContentsMargins(30, 0, 0, -1) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.labelWidth = QtGui.QLabel(self.widgetSize) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.labelWidth.sizePolicy().hasHeightForWidth()) self.labelWidth.setSizePolicy(sizePolicy) self.labelWidth.setObjectName(_fromUtf8("labelWidth")) self.horizontalLayout.addWidget(self.labelWidth) self.widthSpin = QtGui.QSpinBox(self.widgetSize) self.widthSpin.setMaximum(999999) self.widthSpin.setObjectName(_fromUtf8("widthSpin")) self.horizontalLayout.addWidget(self.widthSpin) self.labelHeight = QtGui.QLabel(self.widgetSize) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.labelHeight.sizePolicy().hasHeightForWidth()) self.labelHeight.setSizePolicy(sizePolicy) self.labelHeight.setIndent(40) self.labelHeight.setObjectName(_fromUtf8("labelHeight")) self.horizontalLayout.addWidget(self.labelHeight) self.heightSpin = QtGui.QSpinBox(self.widgetSize) self.heightSpin.setMaximum(999999) self.heightSpin.setObjectName(_fromUtf8("heightSpin")) self.horizontalLayout.addWidget(self.heightSpin) self.verticalLayout.addWidget(self.widgetSize) self.radioSetResolution = QtGui.QRadioButton(GdalToolsWidget) self.radioSetResolution.setObjectName(_fromUtf8("radioSetResolution")) self.verticalLayout.addWidget(self.radioSetResolution) self.widgetResolution = QtGui.QWidget(GdalToolsWidget) self.widgetResolution.setEnabled(False) self.widgetResolution.setObjectName(_fromUtf8("widgetResolution")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widgetResolution) self.horizontalLayout_2.setContentsMargins(30, 0, 0, -1) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.labelHorizontal = QtGui.QLabel(self.widgetResolution) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.labelHorizontal.sizePolicy().hasHeightForWidth()) self.labelHorizontal.setSizePolicy(sizePolicy) self.labelHorizontal.setObjectName(_fromUtf8("labelHorizontal")) self.horizontalLayout_2.addWidget(self.labelHorizontal) self.horizresSpin = QtGui.QDoubleSpinBox(self.widgetResolution) self.horizresSpin.setDecimals(8) self.horizresSpin.setMaximum(999999999.99) self.horizresSpin.setProperty("value", 1.0) self.horizresSpin.setObjectName(_fromUtf8("horizresSpin")) self.horizontalLayout_2.addWidget(self.horizresSpin) self.labelVertical = QtGui.QLabel(self.widgetResolution) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.labelVertical.sizePolicy().hasHeightForWidth()) self.labelVertical.setSizePolicy(sizePolicy) self.labelVertical.setIndent(40) self.labelVertical.setObjectName(_fromUtf8("labelVertical")) self.horizontalLayout_2.addWidget(self.labelVertical) self.vertresSpin = QtGui.QDoubleSpinBox(self.widgetResolution) self.vertresSpin.setInputMethodHints(QtCore.Qt.ImhNone) self.vertresSpin.setDecimals(8) self.vertresSpin.setMaximum(999999999.99) self.vertresSpin.setSingleStep(1.0) self.vertresSpin.setProperty("value", 2.0) self.vertresSpin.setObjectName(_fromUtf8("vertresSpin")) self.horizontalLayout_2.addWidget(self.vertresSpin) self.verticalLayout.addWidget(self.widgetResolution) self.label.setBuddy(self.inSelector) self.label_3.setBuddy(self.attributeComboBox) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QObject.connect(self.radioSetSize, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.widgetSize.setEnabled) QtCore.QObject.connect(self.radioSetResolution, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.widgetResolution.setEnabled) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Rasterize (Vector to raster)", None)) self.label.setText( _translate("GdalToolsWidget", "&Input file (shapefile)", None)) self.label_3.setText( _translate("GdalToolsWidget", "&Attribute field", None)) self.label_2.setText( _translate("GdalToolsWidget", "&Output file for rasterized vectors (raster)", None)) self.radioKeepSize.setText( _translate("GdalToolsWidget", "Keep existing raster size and resolution", None)) self.radioSetSize.setText( _translate("GdalToolsWidget", "Raster size in pixels", None)) self.labelWidth.setText(_translate("GdalToolsWidget", "Width", None)) self.labelHeight.setText(_translate("GdalToolsWidget", "Height", None)) self.radioSetResolution.setText( _translate("GdalToolsWidget", "Raster resolution in map units per pixel", None)) self.labelHorizontal.setText( _translate("GdalToolsWidget", "Horizontal", None)) self.labelVertical.setText( _translate("GdalToolsWidget", "Vertical", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(415, 422) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.gridLayout = QtGui.QGridLayout(GdalToolsWidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.gridLayout.addWidget(self.batchCheck, 0, 0, 1, 1) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.sourceSRSCheck = QtGui.QCheckBox(GdalToolsWidget) self.sourceSRSCheck.setObjectName(_fromUtf8("sourceSRSCheck")) self.gridLayout_2.addWidget(self.sourceSRSCheck, 2, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.sourceSRSEdit = QtGui.QLineEdit(GdalToolsWidget) self.sourceSRSEdit.setMinimumSize(QtCore.QSize(100, 0)) self.sourceSRSEdit.setObjectName(_fromUtf8("sourceSRSEdit")) self.horizontalLayout.addWidget(self.sourceSRSEdit) self.selectSourceSRSButton = QtGui.QPushButton(GdalToolsWidget) self.selectSourceSRSButton.setObjectName(_fromUtf8("selectSourceSRSButton")) self.horizontalLayout.addWidget(self.selectSourceSRSButton) self.gridLayout_2.addLayout(self.horizontalLayout, 2, 1, 1, 1) self.targetSRSCheck = QtGui.QCheckBox(GdalToolsWidget) self.targetSRSCheck.setObjectName(_fromUtf8("targetSRSCheck")) self.gridLayout_2.addWidget(self.targetSRSCheck, 3, 0, 1, 1) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.targetSRSEdit = QtGui.QLineEdit(GdalToolsWidget) self.targetSRSEdit.setMinimumSize(QtCore.QSize(100, 0)) self.targetSRSEdit.setObjectName(_fromUtf8("targetSRSEdit")) self.horizontalLayout_4.addWidget(self.targetSRSEdit) self.selectTargetSRSButton = QtGui.QPushButton(GdalToolsWidget) self.selectTargetSRSButton.setObjectName(_fromUtf8("selectTargetSRSButton")) self.horizontalLayout_4.addWidget(self.selectTargetSRSButton) self.gridLayout_2.addLayout(self.horizontalLayout_4, 3, 1, 1, 1) self.resamplingCheck = QtGui.QCheckBox(GdalToolsWidget) self.resamplingCheck.setObjectName(_fromUtf8("resamplingCheck")) self.gridLayout_2.addWidget(self.resamplingCheck, 4, 0, 1, 1) self.resamplingCombo = QtGui.QComboBox(GdalToolsWidget) self.resamplingCombo.setObjectName(_fromUtf8("resamplingCombo")) self.resamplingCombo.addItem(_fromUtf8("")) self.resamplingCombo.addItem(_fromUtf8("")) self.resamplingCombo.addItem(_fromUtf8("")) self.resamplingCombo.addItem(_fromUtf8("")) self.resamplingCombo.addItem(_fromUtf8("")) self.gridLayout_2.addWidget(self.resamplingCombo, 4, 1, 1, 1) self.noDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.noDataCheck.setObjectName(_fromUtf8("noDataCheck")) self.gridLayout_2.addWidget(self.noDataCheck, 5, 0, 1, 1) self.noDataEdit = QtGui.QLineEdit(GdalToolsWidget) self.noDataEdit.setObjectName(_fromUtf8("noDataEdit")) self.gridLayout_2.addWidget(self.noDataEdit, 5, 1, 1, 1) self.cacheCheck = QtGui.QCheckBox(GdalToolsWidget) self.cacheCheck.setObjectName(_fromUtf8("cacheCheck")) self.gridLayout_2.addWidget(self.cacheCheck, 7, 0, 1, 1) self.cacheSpin = QtGui.QSpinBox(GdalToolsWidget) self.cacheSpin.setMinimum(20) self.cacheSpin.setMaximum(1024) self.cacheSpin.setObjectName(_fromUtf8("cacheSpin")) self.gridLayout_2.addWidget(self.cacheSpin, 7, 1, 1, 1) self.maskCheck = QtGui.QCheckBox(GdalToolsWidget) self.maskCheck.setObjectName(_fromUtf8("maskCheck")) self.gridLayout_2.addWidget(self.maskCheck, 6, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout_2.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout_2.addWidget(self.outSelector, 1, 1, 1, 1) self.maskSelector = GdalToolsInOutSelector(GdalToolsWidget) self.maskSelector.setObjectName(_fromUtf8("maskSelector")) self.gridLayout_2.addWidget(self.maskSelector, 6, 1, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 1, 0, 1, 1) self.resizeGroupBox = QtGui.QGroupBox(GdalToolsWidget) self.resizeGroupBox.setCheckable(True) self.resizeGroupBox.setChecked(False) self.resizeGroupBox.setObjectName(_fromUtf8("resizeGroupBox")) self.gridLayout_7 = QtGui.QGridLayout(self.resizeGroupBox) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.label_11 = QtGui.QLabel(self.resizeGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth()) self.label_11.setSizePolicy(sizePolicy) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout_7.addWidget(self.label_11, 0, 0, 1, 1) self.widthSpin = QtGui.QSpinBox(self.resizeGroupBox) self.widthSpin.setMaximum(999999) self.widthSpin.setObjectName(_fromUtf8("widthSpin")) self.gridLayout_7.addWidget(self.widthSpin, 0, 1, 1, 1) self.label_12 = QtGui.QLabel(self.resizeGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth()) self.label_12.setSizePolicy(sizePolicy) self.label_12.setIndent(40) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_7.addWidget(self.label_12, 0, 2, 1, 1) self.heightSpin = QtGui.QSpinBox(self.resizeGroupBox) self.heightSpin.setMaximum(999999) self.heightSpin.setObjectName(_fromUtf8("heightSpin")) self.gridLayout_7.addWidget(self.heightSpin, 0, 3, 1, 1) self.gridLayout.addWidget(self.resizeGroupBox, 2, 0, 1, 1) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.gridLayout.addWidget(self.progressBar, 3, 0, 1, 1) self.multithreadCheck = QtGui.QCheckBox(GdalToolsWidget) self.multithreadCheck.setObjectName(_fromUtf8("multithreadCheck")) self.gridLayout.addWidget(self.multithreadCheck, 4, 0, 1, 1) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Warp (Reproject)", None)) self.batchCheck.setText(_translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.sourceSRSCheck.setText(_translate("GdalToolsWidget", "&Source SRS", None)) self.selectSourceSRSButton.setText(_translate("GdalToolsWidget", "Select...", None)) self.targetSRSCheck.setText(_translate("GdalToolsWidget", "&Target SRS", None)) self.selectTargetSRSButton.setText(_translate("GdalToolsWidget", "Select...", None)) self.resamplingCheck.setText(_translate("GdalToolsWidget", "&Resampling method", None)) self.resamplingCombo.setItemText(0, _translate("GdalToolsWidget", "Near", None)) self.resamplingCombo.setItemText(1, _translate("GdalToolsWidget", "Bilinear", None)) self.resamplingCombo.setItemText(2, _translate("GdalToolsWidget", "Cubic", None)) self.resamplingCombo.setItemText(3, _translate("GdalToolsWidget", "Cubic spline", None)) self.resamplingCombo.setItemText(4, _translate("GdalToolsWidget", "Lanczos", None)) self.noDataCheck.setText(_translate("GdalToolsWidget", "No data values", None)) self.noDataEdit.setText(_translate("GdalToolsWidget", "0", None)) self.cacheCheck.setText(_translate("GdalToolsWidget", "&Memory used for caching", None)) self.cacheSpin.setSuffix(_translate("GdalToolsWidget", "MB", None)) self.maskCheck.setText(_translate("GdalToolsWidget", "Mask layer", None)) self.resizeGroupBox.setTitle(_translate("GdalToolsWidget", "Resize", None)) self.label_11.setText(_translate("GdalToolsWidget", "Width", None)) self.label_12.setText(_translate("GdalToolsWidget", "Height", None)) self.multithreadCheck.setText(_translate("GdalToolsWidget", "Use m&ultithreaded warping implementation", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(338, 226) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.noDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.noDataCheck.setObjectName(_fromUtf8("noDataCheck")) self.gridLayout.addWidget(self.noDataCheck, 2, 0, 1, 1) self.noDataSpin = QtGui.QSpinBox(GdalToolsWidget) self.noDataSpin.setMinimum(-100000) self.noDataSpin.setMaximum(65000) self.noDataSpin.setObjectName(_fromUtf8("noDataSpin")) self.gridLayout.addWidget(self.noDataSpin, 2, 1, 1, 1) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.extentGroup = QtGui.QGroupBox(GdalToolsWidget) self.extentGroup.setObjectName(_fromUtf8("extentGroup")) self.gridLayout_2 = QtGui.QGridLayout(self.extentGroup) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.extentModeRadio = QtGui.QRadioButton(self.extentGroup) self.extentModeRadio.setChecked(True) self.extentModeRadio.setObjectName(_fromUtf8("extentModeRadio")) self.gridLayout_2.addWidget(self.extentModeRadio, 0, 0, 1, 1) self.maskModeRadio = QtGui.QRadioButton(self.extentGroup) self.maskModeRadio.setObjectName(_fromUtf8("maskModeRadio")) self.gridLayout_2.addWidget(self.maskModeRadio, 0, 1, 1, 1) self.modeStackedWidget = QtGui.QStackedWidget(self.extentGroup) self.modeStackedWidget.setObjectName(_fromUtf8("modeStackedWidget")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.gridLayout_3 = QtGui.QGridLayout(self.page) self.gridLayout_3.setMargin(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.extentSelector = GdalToolsExtentSelector(self.page) self.extentSelector.setObjectName(_fromUtf8("extentSelector")) self.gridLayout_3.addWidget(self.extentSelector, 0, 0, 1, 1) self.modeStackedWidget.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.gridLayout_4 = QtGui.QGridLayout(self.page_2) self.gridLayout_4.setMargin(0) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem, 2, 0, 1, 1) self.label = QtGui.QLabel(self.page_2) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_4.addWidget(self.label, 0, 0, 1, 1) self.maskSelector = GdalToolsInOutSelector(self.page_2) self.maskSelector.setObjectName(_fromUtf8("maskSelector")) self.gridLayout_4.addWidget(self.maskSelector, 0, 1, 1, 1) self.alphaBandCheck = QtGui.QCheckBox(self.page_2) self.alphaBandCheck.setObjectName(_fromUtf8("alphaBandCheck")) self.gridLayout_4.addWidget(self.alphaBandCheck, 1, 0, 1, 1) self.modeStackedWidget.addWidget(self.page_2) self.gridLayout_2.addWidget(self.modeStackedWidget, 1, 0, 1, 2) self.verticalLayout.addWidget(self.extentGroup) self.label_2.setBuddy(self.outSelector) self.label_3.setBuddy(self.inSelector) self.retranslateUi(GdalToolsWidget) self.modeStackedWidget.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Clipper", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.noDataCheck.setText(_translate("GdalToolsWidget", "&No data value", None)) self.label_3.setText(_translate("GdalToolsWidget", "&Input file (raster)", None)) self.extentGroup.setTitle(_translate("GdalToolsWidget", "Clipping mode", None)) self.extentModeRadio.setText(_translate("GdalToolsWidget", "Extent", None)) self.maskModeRadio.setText(_translate("GdalToolsWidget", "Mask layer", None)) self.label.setText(_translate("GdalToolsWidget", "Mask layer", None)) self.alphaBandCheck.setText(_translate("GdalToolsWidget", "Create an output alpha band", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(777, 348) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.zfieldCheck = QtGui.QCheckBox(GdalToolsWidget) self.zfieldCheck.setObjectName(_fromUtf8("zfieldCheck")) self.gridLayout.addWidget(self.zfieldCheck, 1, 0, 1, 1) self.zfieldCombo = QtGui.QComboBox(GdalToolsWidget) self.zfieldCombo.setObjectName(_fromUtf8("zfieldCombo")) self.gridLayout.addWidget(self.zfieldCombo, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.algorithmCheck = QtGui.QCheckBox(GdalToolsWidget) self.algorithmCheck.setObjectName(_fromUtf8("algorithmCheck")) self.gridLayout.addWidget(self.algorithmCheck, 3, 0, 1, 1) self.algorithmCombo = QtGui.QComboBox(GdalToolsWidget) self.algorithmCombo.setObjectName(_fromUtf8("algorithmCombo")) self.algorithmCombo.addItem(_fromUtf8("")) self.algorithmCombo.addItem(_fromUtf8("")) self.algorithmCombo.addItem(_fromUtf8("")) self.algorithmCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.algorithmCombo, 3, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 2, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.stackedWidget = QtGui.QStackedWidget(GdalToolsWidget) self.stackedWidget.setFrameShape(QtGui.QFrame.NoFrame) self.stackedWidget.setObjectName(_fromUtf8("stackedWidget")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.gridLayout_3 = QtGui.QGridLayout(self.page) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.label_3 = QtGui.QLabel(self.page) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1) self.invdistPowerSpin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.invdistPowerSpin.sizePolicy().hasHeightForWidth()) self.invdistPowerSpin.setSizePolicy(sizePolicy) self.invdistPowerSpin.setDecimals(1) self.invdistPowerSpin.setObjectName(_fromUtf8("invdistPowerSpin")) self.gridLayout_3.addWidget(self.invdistPowerSpin, 0, 1, 1, 1) self.label_4 = QtGui.QLabel(self.page) self.label_4.setIndent(30) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 0, 2, 1, 1) self.invdistSmothingSpin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.invdistSmothingSpin.sizePolicy().hasHeightForWidth()) self.invdistSmothingSpin.setSizePolicy(sizePolicy) self.invdistSmothingSpin.setDecimals(1) self.invdistSmothingSpin.setMaximum(65000.0) self.invdistSmothingSpin.setObjectName( _fromUtf8("invdistSmothingSpin")) self.gridLayout_3.addWidget(self.invdistSmothingSpin, 0, 3, 1, 1) self.label_5 = QtGui.QLabel(self.page) self.label_5.setIndent(30) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_3.addWidget(self.label_5, 0, 4, 1, 1) self.invdistRadius1Spin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.invdistRadius1Spin.sizePolicy().hasHeightForWidth()) self.invdistRadius1Spin.setSizePolicy(sizePolicy) self.invdistRadius1Spin.setDecimals(1) self.invdistRadius1Spin.setMaximum(65000.0) self.invdistRadius1Spin.setObjectName(_fromUtf8("invdistRadius1Spin")) self.gridLayout_3.addWidget(self.invdistRadius1Spin, 0, 5, 1, 1) self.label_6 = QtGui.QLabel(self.page) self.label_6.setIndent(30) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_3.addWidget(self.label_6, 0, 6, 1, 1) self.invdistRadius2Spin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.invdistRadius2Spin.sizePolicy().hasHeightForWidth()) self.invdistRadius2Spin.setSizePolicy(sizePolicy) self.invdistRadius2Spin.setDecimals(1) self.invdistRadius2Spin.setMaximum(65000.0) self.invdistRadius2Spin.setObjectName(_fromUtf8("invdistRadius2Spin")) self.gridLayout_3.addWidget(self.invdistRadius2Spin, 0, 7, 1, 1) self.label_8 = QtGui.QLabel(self.page) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_3.addWidget(self.label_8, 1, 0, 1, 1) self.invdistMaxPointsSpin = QtGui.QSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.invdistMaxPointsSpin.sizePolicy().hasHeightForWidth()) self.invdistMaxPointsSpin.setSizePolicy(sizePolicy) self.invdistMaxPointsSpin.setMaximum(65000) self.invdistMaxPointsSpin.setObjectName( _fromUtf8("invdistMaxPointsSpin")) self.gridLayout_3.addWidget(self.invdistMaxPointsSpin, 1, 1, 1, 1) self.label_9 = QtGui.QLabel(self.page) self.label_9.setIndent(30) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout_3.addWidget(self.label_9, 1, 2, 1, 1) self.invdistMinPointsSpin = QtGui.QSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.invdistMinPointsSpin.sizePolicy().hasHeightForWidth()) self.invdistMinPointsSpin.setSizePolicy(sizePolicy) self.invdistMinPointsSpin.setMaximum(65000) self.invdistMinPointsSpin.setObjectName( _fromUtf8("invdistMinPointsSpin")) self.gridLayout_3.addWidget(self.invdistMinPointsSpin, 1, 3, 1, 1) self.label_7 = QtGui.QLabel(self.page) self.label_7.setIndent(30) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_3.addWidget(self.label_7, 1, 4, 1, 1) self.invdistAngleSpin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.invdistAngleSpin.sizePolicy().hasHeightForWidth()) self.invdistAngleSpin.setSizePolicy(sizePolicy) self.invdistAngleSpin.setDecimals(1) self.invdistAngleSpin.setMaximum(359.0) self.invdistAngleSpin.setObjectName(_fromUtf8("invdistAngleSpin")) self.gridLayout_3.addWidget(self.invdistAngleSpin, 1, 5, 1, 1) self.label_10 = QtGui.QLabel(self.page) self.label_10.setIndent(30) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout_3.addWidget(self.label_10, 1, 6, 1, 1) self.invdistNoDataSpin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.invdistNoDataSpin.sizePolicy().hasHeightForWidth()) self.invdistNoDataSpin.setSizePolicy(sizePolicy) self.invdistNoDataSpin.setDecimals(1) self.invdistNoDataSpin.setMinimum(-100000.0) self.invdistNoDataSpin.setMaximum(65000.0) self.invdistNoDataSpin.setObjectName(_fromUtf8("invdistNoDataSpin")) self.gridLayout_3.addWidget(self.invdistNoDataSpin, 1, 7, 1, 1) spacerItem = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 2, 0, 1, 1) self.stackedWidget.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.gridLayout_4 = QtGui.QGridLayout(self.page_2) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.label_21 = QtGui.QLabel(self.page_2) self.label_21.setObjectName(_fromUtf8("label_21")) self.gridLayout_4.addWidget(self.label_21, 0, 0, 1, 1) self.averageRadius1Spin = QtGui.QDoubleSpinBox(self.page_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.averageRadius1Spin.sizePolicy().hasHeightForWidth()) self.averageRadius1Spin.setSizePolicy(sizePolicy) self.averageRadius1Spin.setDecimals(1) self.averageRadius1Spin.setMaximum(65000.0) self.averageRadius1Spin.setObjectName(_fromUtf8("averageRadius1Spin")) self.gridLayout_4.addWidget(self.averageRadius1Spin, 0, 1, 1, 1) self.label_19 = QtGui.QLabel(self.page_2) self.label_19.setIndent(40) self.label_19.setObjectName(_fromUtf8("label_19")) self.gridLayout_4.addWidget(self.label_19, 0, 2, 1, 1) self.averageRadius2Spin = QtGui.QDoubleSpinBox(self.page_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.averageRadius2Spin.sizePolicy().hasHeightForWidth()) self.averageRadius2Spin.setSizePolicy(sizePolicy) self.averageRadius2Spin.setDecimals(1) self.averageRadius2Spin.setMaximum(65000.0) self.averageRadius2Spin.setObjectName(_fromUtf8("averageRadius2Spin")) self.gridLayout_4.addWidget(self.averageRadius2Spin, 0, 3, 1, 1) self.label_22 = QtGui.QLabel(self.page_2) self.label_22.setIndent(40) self.label_22.setObjectName(_fromUtf8("label_22")) self.gridLayout_4.addWidget(self.label_22, 0, 4, 1, 1) self.averageAngleSpin = QtGui.QDoubleSpinBox(self.page_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.averageAngleSpin.sizePolicy().hasHeightForWidth()) self.averageAngleSpin.setSizePolicy(sizePolicy) self.averageAngleSpin.setDecimals(1) self.averageAngleSpin.setMaximum(359.0) self.averageAngleSpin.setObjectName(_fromUtf8("averageAngleSpin")) self.gridLayout_4.addWidget(self.averageAngleSpin, 0, 5, 1, 1) self.label_20 = QtGui.QLabel(self.page_2) self.label_20.setObjectName(_fromUtf8("label_20")) self.gridLayout_4.addWidget(self.label_20, 1, 0, 1, 1) self.averageMinPointsSpin = QtGui.QSpinBox(self.page_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.averageMinPointsSpin.sizePolicy().hasHeightForWidth()) self.averageMinPointsSpin.setSizePolicy(sizePolicy) self.averageMinPointsSpin.setMaximum(65000) self.averageMinPointsSpin.setObjectName( _fromUtf8("averageMinPointsSpin")) self.gridLayout_4.addWidget(self.averageMinPointsSpin, 1, 1, 1, 1) self.label_23 = QtGui.QLabel(self.page_2) self.label_23.setIndent(40) self.label_23.setObjectName(_fromUtf8("label_23")) self.gridLayout_4.addWidget(self.label_23, 1, 2, 1, 1) self.averageNoDataSpin = QtGui.QDoubleSpinBox(self.page_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.averageNoDataSpin.sizePolicy().hasHeightForWidth()) self.averageNoDataSpin.setSizePolicy(sizePolicy) self.averageNoDataSpin.setDecimals(1) self.averageNoDataSpin.setMaximum(65000.0) self.averageNoDataSpin.setObjectName(_fromUtf8("averageNoDataSpin")) self.gridLayout_4.addWidget(self.averageNoDataSpin, 1, 3, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem1, 2, 0, 1, 1) self.stackedWidget.addWidget(self.page_2) self.page_5 = QtGui.QWidget() self.page_5.setObjectName(_fromUtf8("page_5")) self.gridLayout_5 = QtGui.QGridLayout(self.page_5) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.label_26 = QtGui.QLabel(self.page_5) self.label_26.setObjectName(_fromUtf8("label_26")) self.gridLayout_5.addWidget(self.label_26, 0, 0, 1, 1) self.nearestRadius1Spin = QtGui.QDoubleSpinBox(self.page_5) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.nearestRadius1Spin.sizePolicy().hasHeightForWidth()) self.nearestRadius1Spin.setSizePolicy(sizePolicy) self.nearestRadius1Spin.setDecimals(1) self.nearestRadius1Spin.setMaximum(65000.0) self.nearestRadius1Spin.setObjectName(_fromUtf8("nearestRadius1Spin")) self.gridLayout_5.addWidget(self.nearestRadius1Spin, 0, 1, 1, 1) self.label_24 = QtGui.QLabel(self.page_5) self.label_24.setIndent(40) self.label_24.setObjectName(_fromUtf8("label_24")) self.gridLayout_5.addWidget(self.label_24, 0, 2, 1, 1) self.nearestRadius2Spin = QtGui.QDoubleSpinBox(self.page_5) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.nearestRadius2Spin.sizePolicy().hasHeightForWidth()) self.nearestRadius2Spin.setSizePolicy(sizePolicy) self.nearestRadius2Spin.setDecimals(1) self.nearestRadius2Spin.setMaximum(65000.0) self.nearestRadius2Spin.setObjectName(_fromUtf8("nearestRadius2Spin")) self.gridLayout_5.addWidget(self.nearestRadius2Spin, 0, 3, 1, 1) self.label_27 = QtGui.QLabel(self.page_5) self.label_27.setIndent(40) self.label_27.setObjectName(_fromUtf8("label_27")) self.gridLayout_5.addWidget(self.label_27, 0, 4, 1, 1) self.nearestAngleSpin = QtGui.QDoubleSpinBox(self.page_5) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.nearestAngleSpin.sizePolicy().hasHeightForWidth()) self.nearestAngleSpin.setSizePolicy(sizePolicy) self.nearestAngleSpin.setDecimals(1) self.nearestAngleSpin.setMaximum(359.0) self.nearestAngleSpin.setObjectName(_fromUtf8("nearestAngleSpin")) self.gridLayout_5.addWidget(self.nearestAngleSpin, 0, 5, 1, 1) self.label_28 = QtGui.QLabel(self.page_5) self.label_28.setObjectName(_fromUtf8("label_28")) self.gridLayout_5.addWidget(self.label_28, 1, 0, 1, 1) self.nearestNoDataSpin = QtGui.QDoubleSpinBox(self.page_5) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.nearestNoDataSpin.sizePolicy().hasHeightForWidth()) self.nearestNoDataSpin.setSizePolicy(sizePolicy) self.nearestNoDataSpin.setDecimals(1) self.nearestNoDataSpin.setMaximum(65000.0) self.nearestNoDataSpin.setObjectName(_fromUtf8("nearestNoDataSpin")) self.gridLayout_5.addWidget(self.nearestNoDataSpin, 1, 1, 1, 1) spacerItem2 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_5.addItem(spacerItem2, 2, 0, 1, 1) self.stackedWidget.addWidget(self.page_5) self.page_6 = QtGui.QWidget() self.page_6.setObjectName(_fromUtf8("page_6")) self.gridLayout_6 = QtGui.QGridLayout(self.page_6) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.label_25 = QtGui.QLabel(self.page_6) self.label_25.setObjectName(_fromUtf8("label_25")) self.gridLayout_6.addWidget(self.label_25, 0, 0, 1, 1) self.datametricsCombo = QtGui.QComboBox(self.page_6) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.datametricsCombo.sizePolicy().hasHeightForWidth()) self.datametricsCombo.setSizePolicy(sizePolicy) self.datametricsCombo.setObjectName(_fromUtf8("datametricsCombo")) self.datametricsCombo.addItem(_fromUtf8("")) self.datametricsCombo.addItem(_fromUtf8("")) self.datametricsCombo.addItem(_fromUtf8("")) self.gridLayout_6.addWidget(self.datametricsCombo, 0, 1, 1, 1) self.label_31 = QtGui.QLabel(self.page_6) self.label_31.setIndent(40) self.label_31.setObjectName(_fromUtf8("label_31")) self.gridLayout_6.addWidget(self.label_31, 0, 2, 1, 1) self.datametricsRadius1Spin = QtGui.QDoubleSpinBox(self.page_6) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.datametricsRadius1Spin.sizePolicy().hasHeightForWidth()) self.datametricsRadius1Spin.setSizePolicy(sizePolicy) self.datametricsRadius1Spin.setDecimals(1) self.datametricsRadius1Spin.setMaximum(65000.0) self.datametricsRadius1Spin.setObjectName( _fromUtf8("datametricsRadius1Spin")) self.gridLayout_6.addWidget(self.datametricsRadius1Spin, 0, 3, 1, 1) self.label_29 = QtGui.QLabel(self.page_6) self.label_29.setIndent(40) self.label_29.setObjectName(_fromUtf8("label_29")) self.gridLayout_6.addWidget(self.label_29, 0, 4, 1, 1) self.datametricsRadius2Spin = QtGui.QDoubleSpinBox(self.page_6) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.datametricsRadius2Spin.sizePolicy().hasHeightForWidth()) self.datametricsRadius2Spin.setSizePolicy(sizePolicy) self.datametricsRadius2Spin.setDecimals(1) self.datametricsRadius2Spin.setMaximum(65000.0) self.datametricsRadius2Spin.setObjectName( _fromUtf8("datametricsRadius2Spin")) self.gridLayout_6.addWidget(self.datametricsRadius2Spin, 0, 5, 1, 1) self.label_32 = QtGui.QLabel(self.page_6) self.label_32.setObjectName(_fromUtf8("label_32")) self.gridLayout_6.addWidget(self.label_32, 1, 0, 1, 1) self.datametricsAngleSpin = QtGui.QDoubleSpinBox(self.page_6) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.datametricsAngleSpin.sizePolicy().hasHeightForWidth()) self.datametricsAngleSpin.setSizePolicy(sizePolicy) self.datametricsAngleSpin.setDecimals(1) self.datametricsAngleSpin.setMaximum(359.0) self.datametricsAngleSpin.setObjectName( _fromUtf8("datametricsAngleSpin")) self.gridLayout_6.addWidget(self.datametricsAngleSpin, 1, 1, 1, 1) self.label_33 = QtGui.QLabel(self.page_6) self.label_33.setIndent(40) self.label_33.setObjectName(_fromUtf8("label_33")) self.gridLayout_6.addWidget(self.label_33, 1, 2, 1, 1) self.datametricsNoDataSpin = QtGui.QDoubleSpinBox(self.page_6) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.datametricsNoDataSpin.sizePolicy().hasHeightForWidth()) self.datametricsNoDataSpin.setSizePolicy(sizePolicy) self.datametricsNoDataSpin.setDecimals(1) self.datametricsNoDataSpin.setMaximum(65000.0) self.datametricsNoDataSpin.setObjectName( _fromUtf8("datametricsNoDataSpin")) self.gridLayout_6.addWidget(self.datametricsNoDataSpin, 1, 3, 1, 1) self.label_30 = QtGui.QLabel(self.page_6) self.label_30.setIndent(40) self.label_30.setObjectName(_fromUtf8("label_30")) self.gridLayout_6.addWidget(self.label_30, 1, 4, 1, 1) self.datametricsMinPointsSpin = QtGui.QSpinBox(self.page_6) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.datametricsMinPointsSpin.sizePolicy().hasHeightForWidth()) self.datametricsMinPointsSpin.setSizePolicy(sizePolicy) self.datametricsMinPointsSpin.setMaximum(65000) self.datametricsMinPointsSpin.setObjectName( _fromUtf8("datametricsMinPointsSpin")) self.gridLayout_6.addWidget(self.datametricsMinPointsSpin, 1, 5, 1, 1) spacerItem3 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_6.addItem(spacerItem3, 2, 0, 1, 1) self.stackedWidget.addWidget(self.page_6) self.verticalLayout.addWidget(self.stackedWidget) self.resizeGroupBox = QtGui.QGroupBox(GdalToolsWidget) self.resizeGroupBox.setCheckable(True) self.resizeGroupBox.setChecked(False) self.resizeGroupBox.setObjectName(_fromUtf8("resizeGroupBox")) self.gridLayout_7 = QtGui.QGridLayout(self.resizeGroupBox) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.label_11 = QtGui.QLabel(self.resizeGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_11.sizePolicy().hasHeightForWidth()) self.label_11.setSizePolicy(sizePolicy) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout_7.addWidget(self.label_11, 0, 0, 1, 1) self.widthSpin = QtGui.QSpinBox(self.resizeGroupBox) self.widthSpin.setMaximum(999999) self.widthSpin.setObjectName(_fromUtf8("widthSpin")) self.gridLayout_7.addWidget(self.widthSpin, 0, 1, 1, 1) self.label_12 = QtGui.QLabel(self.resizeGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_12.sizePolicy().hasHeightForWidth()) self.label_12.setSizePolicy(sizePolicy) self.label_12.setIndent(40) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_7.addWidget(self.label_12, 0, 2, 1, 1) self.heightSpin = QtGui.QSpinBox(self.resizeGroupBox) self.heightSpin.setMaximum(999999) self.heightSpin.setObjectName(_fromUtf8("heightSpin")) self.gridLayout_7.addWidget(self.heightSpin, 0, 3, 1, 1) self.verticalLayout.addWidget(self.resizeGroupBox) self.extentGroup = QtGui.QGroupBox(GdalToolsWidget) self.extentGroup.setCheckable(True) self.extentGroup.setChecked(False) self.extentGroup.setObjectName(_fromUtf8("extentGroup")) self.gridLayout_2 = QtGui.QGridLayout(self.extentGroup) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.extentSelector = GdalToolsExtentSelector(self.extentGroup) self.extentSelector.setObjectName(_fromUtf8("extentSelector")) self.gridLayout_2.addWidget(self.extentSelector, 0, 0, 1, 1) self.verticalLayout.addWidget(self.extentGroup) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) self.stackedWidget.setCurrentIndex(0) QtCore.QObject.connect( self.algorithmCombo, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), self.stackedWidget.setCurrentIndex) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Grid (Interpolation)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.zfieldCheck.setText( _translate("GdalToolsWidget", "&Z Field", None)) self.label_2.setText( _translate("GdalToolsWidget", "&Output file", None)) self.algorithmCheck.setText( _translate("GdalToolsWidget", "&Algorithm", None)) self.algorithmCombo.setItemText( 0, _translate("GdalToolsWidget", "Inverse distance to a power", None)) self.algorithmCombo.setItemText( 1, _translate("GdalToolsWidget", "Moving average", None)) self.algorithmCombo.setItemText( 2, _translate("GdalToolsWidget", "Nearest neighbor", None)) self.algorithmCombo.setItemText( 3, _translate("GdalToolsWidget", "Data metrics", None)) self.label_3.setText(_translate("GdalToolsWidget", "Power", None)) self.label_4.setText(_translate("GdalToolsWidget", "Smoothing", None)) self.label_5.setText(_translate("GdalToolsWidget", "Radius1", None)) self.label_6.setText(_translate("GdalToolsWidget", "Radius2", None)) self.label_8.setText(_translate("GdalToolsWidget", "Max points", None)) self.label_9.setText(_translate("GdalToolsWidget", "Min points", None)) self.label_7.setText(_translate("GdalToolsWidget", "Angle", None)) self.label_10.setText(_translate("GdalToolsWidget", "No data", None)) self.label_21.setText(_translate("GdalToolsWidget", "Radius1", None)) self.label_19.setText(_translate("GdalToolsWidget", "Radius2", None)) self.label_22.setText(_translate("GdalToolsWidget", "Angle", None)) self.label_20.setText(_translate("GdalToolsWidget", "Min points", None)) self.label_23.setText(_translate("GdalToolsWidget", "No data", None)) self.label_26.setText(_translate("GdalToolsWidget", "Radius1", None)) self.label_24.setText(_translate("GdalToolsWidget", "Radius2", None)) self.label_27.setText(_translate("GdalToolsWidget", "Angle", None)) self.label_28.setText(_translate("GdalToolsWidget", "No data", None)) self.label_25.setText(_translate("GdalToolsWidget", "Metrics", None)) self.datametricsCombo.setItemText( 0, _translate("GdalToolsWidget", "Minimum", None)) self.datametricsCombo.setItemText( 1, _translate("GdalToolsWidget", "Maximum", None)) self.datametricsCombo.setItemText( 2, _translate("GdalToolsWidget", "Range", None)) self.label_31.setText(_translate("GdalToolsWidget", "Radius1", None)) self.label_29.setText(_translate("GdalToolsWidget", "Radius2", None)) self.label_32.setText(_translate("GdalToolsWidget", "Angle", None)) self.label_33.setText(_translate("GdalToolsWidget", "No data", None)) self.label_30.setText(_translate("GdalToolsWidget", "Min points", None)) self.resizeGroupBox.setTitle( _translate("GdalToolsWidget", "Resize", None)) self.label_11.setText(_translate("GdalToolsWidget", "Width", None)) self.label_12.setText(_translate("GdalToolsWidget", "Height", None)) self.extentGroup.setTitle(_translate("GdalToolsWidget", "Extent", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(509, 261) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1) self.attributeComboBox = QtGui.QComboBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.attributeComboBox.sizePolicy().hasHeightForWidth()) self.attributeComboBox.setSizePolicy(sizePolicy) self.attributeComboBox.setObjectName(_fromUtf8("attributeComboBox")) self.gridLayout_2.addWidget(self.attributeComboBox, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 2, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout_2.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout_2.addWidget(self.outSelector, 2, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout_2) self.radioKeepSize = QtGui.QRadioButton(GdalToolsWidget) self.radioKeepSize.setChecked(True) self.radioKeepSize.setObjectName(_fromUtf8("radioKeepSize")) self.verticalLayout.addWidget(self.radioKeepSize) self.radioSetSize = QtGui.QRadioButton(GdalToolsWidget) self.radioSetSize.setChecked(False) self.radioSetSize.setObjectName(_fromUtf8("radioSetSize")) self.verticalLayout.addWidget(self.radioSetSize) self.widgetSize = QtGui.QWidget(GdalToolsWidget) self.widgetSize.setEnabled(False) self.widgetSize.setObjectName(_fromUtf8("widgetSize")) self.horizontalLayout = QtGui.QHBoxLayout(self.widgetSize) self.horizontalLayout.setContentsMargins(30, 0, 0, -1) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.labelWidth = QtGui.QLabel(self.widgetSize) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.labelWidth.sizePolicy().hasHeightForWidth()) self.labelWidth.setSizePolicy(sizePolicy) self.labelWidth.setObjectName(_fromUtf8("labelWidth")) self.horizontalLayout.addWidget(self.labelWidth) self.widthSpin = QtGui.QSpinBox(self.widgetSize) self.widthSpin.setMaximum(999999) self.widthSpin.setObjectName(_fromUtf8("widthSpin")) self.horizontalLayout.addWidget(self.widthSpin) self.labelHeight = QtGui.QLabel(self.widgetSize) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.labelHeight.sizePolicy().hasHeightForWidth()) self.labelHeight.setSizePolicy(sizePolicy) self.labelHeight.setIndent(40) self.labelHeight.setObjectName(_fromUtf8("labelHeight")) self.horizontalLayout.addWidget(self.labelHeight) self.heightSpin = QtGui.QSpinBox(self.widgetSize) self.heightSpin.setMaximum(999999) self.heightSpin.setObjectName(_fromUtf8("heightSpin")) self.horizontalLayout.addWidget(self.heightSpin) self.verticalLayout.addWidget(self.widgetSize) self.radioSetResolution = QtGui.QRadioButton(GdalToolsWidget) self.radioSetResolution.setObjectName(_fromUtf8("radioSetResolution")) self.verticalLayout.addWidget(self.radioSetResolution) self.widgetResolution = QtGui.QWidget(GdalToolsWidget) self.widgetResolution.setEnabled(False) self.widgetResolution.setObjectName(_fromUtf8("widgetResolution")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widgetResolution) self.horizontalLayout_2.setContentsMargins(30, 0, 0, -1) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.labelHorizontal = QtGui.QLabel(self.widgetResolution) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.labelHorizontal.sizePolicy().hasHeightForWidth()) self.labelHorizontal.setSizePolicy(sizePolicy) self.labelHorizontal.setObjectName(_fromUtf8("labelHorizontal")) self.horizontalLayout_2.addWidget(self.labelHorizontal) self.horizresSpin = QtGui.QDoubleSpinBox(self.widgetResolution) self.horizresSpin.setDecimals(8) self.horizresSpin.setMaximum(999999999.99) self.horizresSpin.setProperty("value", 1.0) self.horizresSpin.setObjectName(_fromUtf8("horizresSpin")) self.horizontalLayout_2.addWidget(self.horizresSpin) self.labelVertical = QtGui.QLabel(self.widgetResolution) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.labelVertical.sizePolicy().hasHeightForWidth()) self.labelVertical.setSizePolicy(sizePolicy) self.labelVertical.setIndent(40) self.labelVertical.setObjectName(_fromUtf8("labelVertical")) self.horizontalLayout_2.addWidget(self.labelVertical) self.vertresSpin = QtGui.QDoubleSpinBox(self.widgetResolution) self.vertresSpin.setInputMethodHints(QtCore.Qt.ImhNone) self.vertresSpin.setDecimals(8) self.vertresSpin.setMaximum(999999999.99) self.vertresSpin.setSingleStep(1.0) self.vertresSpin.setProperty("value", 2.0) self.vertresSpin.setObjectName(_fromUtf8("vertresSpin")) self.horizontalLayout_2.addWidget(self.vertresSpin) self.verticalLayout.addWidget(self.widgetResolution) self.label.setBuddy(self.inSelector) self.label_3.setBuddy(self.attributeComboBox) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QObject.connect(self.radioSetSize, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.widgetSize.setEnabled) QtCore.QObject.connect(self.radioSetResolution, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.widgetResolution.setEnabled) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Rasterize (Vector to raster)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file (shapefile)", None)) self.label_3.setText(_translate("GdalToolsWidget", "&Attribute field", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file for rasterized vectors (raster)", None)) self.radioKeepSize.setText(_translate("GdalToolsWidget", "Keep existing raster size and resolution", None)) self.radioSetSize.setText(_translate("GdalToolsWidget", "Raster size in pixels", None)) self.labelWidth.setText(_translate("GdalToolsWidget", "Width", None)) self.labelHeight.setText(_translate("GdalToolsWidget", "Height", None)) self.radioSetResolution.setText(_translate("GdalToolsWidget", "Raster resolution in map units per pixel", None)) self.labelHorizontal.setText(_translate("GdalToolsWidget", "Horizontal", None)) self.labelVertical.setText(_translate("GdalToolsWidget", "Vertical", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(415, 422) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.gridLayout = QtGui.QGridLayout(GdalToolsWidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.gridLayout.addWidget(self.batchCheck, 0, 0, 1, 1) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.sourceSRSCheck = QtGui.QCheckBox(GdalToolsWidget) self.sourceSRSCheck.setObjectName(_fromUtf8("sourceSRSCheck")) self.gridLayout_2.addWidget(self.sourceSRSCheck, 2, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.sourceSRSEdit = QtGui.QLineEdit(GdalToolsWidget) self.sourceSRSEdit.setMinimumSize(QtCore.QSize(100, 0)) self.sourceSRSEdit.setObjectName(_fromUtf8("sourceSRSEdit")) self.horizontalLayout.addWidget(self.sourceSRSEdit) self.selectSourceSRSButton = QtGui.QPushButton(GdalToolsWidget) self.selectSourceSRSButton.setObjectName( _fromUtf8("selectSourceSRSButton")) self.horizontalLayout.addWidget(self.selectSourceSRSButton) self.gridLayout_2.addLayout(self.horizontalLayout, 2, 1, 1, 1) self.targetSRSCheck = QtGui.QCheckBox(GdalToolsWidget) self.targetSRSCheck.setObjectName(_fromUtf8("targetSRSCheck")) self.gridLayout_2.addWidget(self.targetSRSCheck, 3, 0, 1, 1) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.targetSRSEdit = QtGui.QLineEdit(GdalToolsWidget) self.targetSRSEdit.setMinimumSize(QtCore.QSize(100, 0)) self.targetSRSEdit.setObjectName(_fromUtf8("targetSRSEdit")) self.horizontalLayout_4.addWidget(self.targetSRSEdit) self.selectTargetSRSButton = QtGui.QPushButton(GdalToolsWidget) self.selectTargetSRSButton.setObjectName( _fromUtf8("selectTargetSRSButton")) self.horizontalLayout_4.addWidget(self.selectTargetSRSButton) self.gridLayout_2.addLayout(self.horizontalLayout_4, 3, 1, 1, 1) self.resamplingCheck = QtGui.QCheckBox(GdalToolsWidget) self.resamplingCheck.setObjectName(_fromUtf8("resamplingCheck")) self.gridLayout_2.addWidget(self.resamplingCheck, 4, 0, 1, 1) self.resamplingCombo = QtGui.QComboBox(GdalToolsWidget) self.resamplingCombo.setObjectName(_fromUtf8("resamplingCombo")) self.resamplingCombo.addItem(_fromUtf8("")) self.resamplingCombo.addItem(_fromUtf8("")) self.resamplingCombo.addItem(_fromUtf8("")) self.resamplingCombo.addItem(_fromUtf8("")) self.resamplingCombo.addItem(_fromUtf8("")) self.gridLayout_2.addWidget(self.resamplingCombo, 4, 1, 1, 1) self.noDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.noDataCheck.setObjectName(_fromUtf8("noDataCheck")) self.gridLayout_2.addWidget(self.noDataCheck, 5, 0, 1, 1) self.noDataEdit = QtGui.QLineEdit(GdalToolsWidget) self.noDataEdit.setObjectName(_fromUtf8("noDataEdit")) self.gridLayout_2.addWidget(self.noDataEdit, 5, 1, 1, 1) self.cacheCheck = QtGui.QCheckBox(GdalToolsWidget) self.cacheCheck.setObjectName(_fromUtf8("cacheCheck")) self.gridLayout_2.addWidget(self.cacheCheck, 7, 0, 1, 1) self.cacheSpin = QtGui.QSpinBox(GdalToolsWidget) self.cacheSpin.setMinimum(20) self.cacheSpin.setMaximum(1024) self.cacheSpin.setObjectName(_fromUtf8("cacheSpin")) self.gridLayout_2.addWidget(self.cacheSpin, 7, 1, 1, 1) self.maskCheck = QtGui.QCheckBox(GdalToolsWidget) self.maskCheck.setObjectName(_fromUtf8("maskCheck")) self.gridLayout_2.addWidget(self.maskCheck, 6, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout_2.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout_2.addWidget(self.outSelector, 1, 1, 1, 1) self.maskSelector = GdalToolsInOutSelector(GdalToolsWidget) self.maskSelector.setObjectName(_fromUtf8("maskSelector")) self.gridLayout_2.addWidget(self.maskSelector, 6, 1, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 1, 0, 1, 1) self.resizeGroupBox = QtGui.QGroupBox(GdalToolsWidget) self.resizeGroupBox.setCheckable(True) self.resizeGroupBox.setChecked(False) self.resizeGroupBox.setObjectName(_fromUtf8("resizeGroupBox")) self.gridLayout_7 = QtGui.QGridLayout(self.resizeGroupBox) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.label_11 = QtGui.QLabel(self.resizeGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_11.sizePolicy().hasHeightForWidth()) self.label_11.setSizePolicy(sizePolicy) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout_7.addWidget(self.label_11, 0, 0, 1, 1) self.widthSpin = QtGui.QSpinBox(self.resizeGroupBox) self.widthSpin.setMaximum(999999) self.widthSpin.setObjectName(_fromUtf8("widthSpin")) self.gridLayout_7.addWidget(self.widthSpin, 0, 1, 1, 1) self.label_12 = QtGui.QLabel(self.resizeGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_12.sizePolicy().hasHeightForWidth()) self.label_12.setSizePolicy(sizePolicy) self.label_12.setIndent(40) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_7.addWidget(self.label_12, 0, 2, 1, 1) self.heightSpin = QtGui.QSpinBox(self.resizeGroupBox) self.heightSpin.setMaximum(999999) self.heightSpin.setObjectName(_fromUtf8("heightSpin")) self.gridLayout_7.addWidget(self.heightSpin, 0, 3, 1, 1) self.gridLayout.addWidget(self.resizeGroupBox, 2, 0, 1, 1) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.gridLayout.addWidget(self.progressBar, 3, 0, 1, 1) self.multithreadCheck = QtGui.QCheckBox(GdalToolsWidget) self.multithreadCheck.setObjectName(_fromUtf8("multithreadCheck")) self.gridLayout.addWidget(self.multithreadCheck, 4, 0, 1, 1) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Warp (Reproject)", None)) self.batchCheck.setText( _translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText( _translate("GdalToolsWidget", "&Output file", None)) self.sourceSRSCheck.setText( _translate("GdalToolsWidget", "&Source SRS", None)) self.selectSourceSRSButton.setText( _translate("GdalToolsWidget", "Select...", None)) self.targetSRSCheck.setText( _translate("GdalToolsWidget", "&Target SRS", None)) self.selectTargetSRSButton.setText( _translate("GdalToolsWidget", "Select...", None)) self.resamplingCheck.setText( _translate("GdalToolsWidget", "&Resampling method", None)) self.resamplingCombo.setItemText( 0, _translate("GdalToolsWidget", "Near", None)) self.resamplingCombo.setItemText( 1, _translate("GdalToolsWidget", "Bilinear", None)) self.resamplingCombo.setItemText( 2, _translate("GdalToolsWidget", "Cubic", None)) self.resamplingCombo.setItemText( 3, _translate("GdalToolsWidget", "Cubic spline", None)) self.resamplingCombo.setItemText( 4, _translate("GdalToolsWidget", "Lanczos", None)) self.noDataCheck.setText( _translate("GdalToolsWidget", "No data values", None)) self.noDataEdit.setText(_translate("GdalToolsWidget", "0", None)) self.cacheCheck.setText( _translate("GdalToolsWidget", "&Memory used for caching", None)) self.cacheSpin.setSuffix(_translate("GdalToolsWidget", "MB", None)) self.maskCheck.setText( _translate("GdalToolsWidget", "Mask layer", None)) self.resizeGroupBox.setTitle( _translate("GdalToolsWidget", "Resize", None)) self.label_11.setText(_translate("GdalToolsWidget", "Width", None)) self.label_12.setText(_translate("GdalToolsWidget", "Height", None)) self.multithreadCheck.setText( _translate("GdalToolsWidget", "Use m&ultithreaded warping implementation", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(335, 429) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout_2 = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.batchCheck = QtGui.QCheckBox(GdalToolsWidget) self.batchCheck.setObjectName(_fromUtf8("batchCheck")) self.verticalLayout_2.addWidget(self.batchCheck) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.formatLabel = QtGui.QLabel(GdalToolsWidget) self.formatLabel.setObjectName(_fromUtf8("formatLabel")) self.gridLayout.addWidget(self.formatLabel, 2, 0, 1, 1) self.formatCombo = QtGui.QComboBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.formatCombo.sizePolicy().hasHeightForWidth()) self.formatCombo.setSizePolicy(sizePolicy) self.formatCombo.setObjectName(_fromUtf8("formatCombo")) self.gridLayout.addWidget(self.formatCombo, 2, 1, 1, 1) self.targetSRSCheck = QtGui.QCheckBox(GdalToolsWidget) self.targetSRSCheck.setObjectName(_fromUtf8("targetSRSCheck")) self.gridLayout.addWidget(self.targetSRSCheck, 3, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.targetSRSEdit = QtGui.QLineEdit(GdalToolsWidget) self.targetSRSEdit.setMinimumSize(QtCore.QSize(100, 0)) self.targetSRSEdit.setObjectName(_fromUtf8("targetSRSEdit")) self.horizontalLayout.addWidget(self.targetSRSEdit) self.selectTargetSRSButton = QtGui.QPushButton(GdalToolsWidget) self.selectTargetSRSButton.setObjectName( _fromUtf8("selectTargetSRSButton")) self.horizontalLayout.addWidget(self.selectTargetSRSButton) self.gridLayout.addLayout(self.horizontalLayout, 3, 1, 1, 1) self.outsizeCheck = QtGui.QCheckBox(GdalToolsWidget) self.outsizeCheck.setMaximumSize(QtCore.QSize(100, 16777215)) self.outsizeCheck.setObjectName(_fromUtf8("outsizeCheck")) self.gridLayout.addWidget(self.outsizeCheck, 4, 0, 1, 1) self.outsizeSpin = QtGui.QSpinBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.outsizeSpin.sizePolicy().hasHeightForWidth()) self.outsizeSpin.setSizePolicy(sizePolicy) self.outsizeSpin.setMinimum(1) self.outsizeSpin.setMaximum(1000) self.outsizeSpin.setObjectName(_fromUtf8("outsizeSpin")) self.gridLayout.addWidget(self.outsizeSpin, 4, 1, 1, 1) self.nodataCheck = QtGui.QCheckBox(GdalToolsWidget) self.nodataCheck.setObjectName(_fromUtf8("nodataCheck")) self.gridLayout.addWidget(self.nodataCheck, 5, 0, 1, 1) self.expandCheck = QtGui.QCheckBox(GdalToolsWidget) self.expandCheck.setObjectName(_fromUtf8("expandCheck")) self.gridLayout.addWidget(self.expandCheck, 6, 0, 1, 1) self.expandCombo = QtGui.QComboBox(GdalToolsWidget) self.expandCombo.setObjectName(_fromUtf8("expandCombo")) self.expandCombo.addItem(_fromUtf8("")) self.expandCombo.addItem(_fromUtf8("")) self.expandCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.expandCombo, 6, 1, 1, 1) self.srcwinCheck = QtGui.QCheckBox(GdalToolsWidget) self.srcwinCheck.setObjectName(_fromUtf8("srcwinCheck")) self.gridLayout.addWidget(self.srcwinCheck, 7, 0, 1, 1) self.srcwinEdit = QtGui.QLineEdit(GdalToolsWidget) self.srcwinEdit.setObjectName(_fromUtf8("srcwinEdit")) self.gridLayout.addWidget(self.srcwinEdit, 7, 1, 1, 1) self.prjwinCheck = QtGui.QCheckBox(GdalToolsWidget) self.prjwinCheck.setObjectName(_fromUtf8("prjwinCheck")) self.gridLayout.addWidget(self.prjwinCheck, 8, 0, 1, 1) self.prjwinEdit = QtGui.QLineEdit(GdalToolsWidget) self.prjwinEdit.setObjectName(_fromUtf8("prjwinEdit")) self.gridLayout.addWidget(self.prjwinEdit, 8, 1, 1, 1) self.sdsCheck = QtGui.QCheckBox(GdalToolsWidget) self.sdsCheck.setObjectName(_fromUtf8("sdsCheck")) self.gridLayout.addWidget(self.sdsCheck, 9, 0, 1, 1) self.nodataSpin = QtGui.QSpinBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.nodataSpin.sizePolicy().hasHeightForWidth()) self.nodataSpin.setSizePolicy(sizePolicy) self.nodataSpin.setMinimum(-999999999) self.nodataSpin.setMaximum(999999999) self.nodataSpin.setObjectName(_fromUtf8("nodataSpin")) self.gridLayout.addWidget(self.nodataSpin, 5, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.creationOptionsGroupBox = QgsCollapsibleGroupBox(GdalToolsWidget) self.creationOptionsGroupBox.setProperty("collapsed", False) self.creationOptionsGroupBox.setProperty("saveCollapsedState", True) self.creationOptionsGroupBox.setCheckable(True) self.creationOptionsGroupBox.setChecked(False) self.creationOptionsGroupBox.setObjectName( _fromUtf8("creationOptionsGroupBox")) self.verticalLayout = QtGui.QVBoxLayout(self.creationOptionsGroupBox) self.verticalLayout.setContentsMargins(9, -1, -1, 9) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.creationOptionsWidget = QgsRasterFormatSaveOptionsWidget( self.creationOptionsGroupBox) self.creationOptionsWidget.setObjectName( _fromUtf8("creationOptionsWidget")) self.verticalLayout.addWidget(self.creationOptionsWidget) self.verticalLayout_2.addWidget(self.creationOptionsGroupBox) self.progressBar = QtGui.QProgressBar(GdalToolsWidget) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout_2.addWidget(self.progressBar) self.label_3.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Translate (Convert format)", None)) self.batchCheck.setText( _translate("GdalToolsWidget", "Batch mode (for processing whole directory)", None)) self.label_3.setText( _translate("GdalToolsWidget", "&Input Layer", None)) self.label_2.setText( _translate("GdalToolsWidget", "&Output file", None)) self.formatLabel.setText( _translate("GdalToolsWidget", "Output format", None)) self.targetSRSCheck.setText( _translate("GdalToolsWidget", "&Target SRS", None)) self.selectTargetSRSButton.setText( _translate("GdalToolsWidget", "Select...", None)) self.outsizeCheck.setToolTip( _translate( "GdalToolsWidget", "Percentage to resize image. This will change pixel size/image resolution accordingly: 25% will create an image with pixels 4x larger.", None)) self.outsizeCheck.setText( _translate("GdalToolsWidget", "Outsize", None)) self.outsizeSpin.setToolTip( _translate( "GdalToolsWidget", "Percentage to resize image. This will change pixel size/image resolution accordingly: 25% will create an image with pixels 4x larger.", None)) self.outsizeSpin.setSuffix(_translate("GdalToolsWidget", "%", None)) self.nodataCheck.setToolTip( _translate("GdalToolsWidget", "Assign a specified nodata value to output bands.", None)) self.nodataCheck.setText(_translate("GdalToolsWidget", "No data", None)) self.expandCheck.setToolTip( _translate( "GdalToolsWidget", "To expose a dataset with 1 band with a color table as a dataset with 3 (RGB) or 4 (RGBA) bands. \n" "Useful for output drivers such as JPEG, JPEG2000, MrSID, ECW that don\'t support color indexed datasets. \n" "The \'gray\' value (from GDAL 1.7.0) enables to expand a dataset with a color table that only contains gray levels to a gray indexed dataset.", None)) self.expandCheck.setText(_translate("GdalToolsWidget", "Expand", None)) self.expandCombo.setToolTip( _translate( "GdalToolsWidget", "To expose a dataset with 1 band with a color table as a dataset with 3 (RGB) or 4 (RGBA) bands. \n" "Useful for output drivers such as JPEG, JPEG2000, MrSID, ECW that don\'t support color indexed datasets. \n" "The \'gray\' value (from GDAL 1.7.0) enables to expand a dataset with a color table that only contains gray levels to a gray indexed dataset.", None)) self.expandCombo.setItemText( 0, _translate("GdalToolsWidget", "Gray", None)) self.expandCombo.setItemText( 1, _translate("GdalToolsWidget", "RGB", None)) self.expandCombo.setItemText( 2, _translate("GdalToolsWidget", "RGBA", None)) self.srcwinCheck.setToolTip( _translate( "GdalToolsWidget", "Selects a subwindow from the source image for copying based on pixel/line location. (Enter Xoff Yoff Xsize Ysize)", None)) self.srcwinCheck.setText(_translate("GdalToolsWidget", "Srcwin", None)) self.srcwinEdit.setToolTip( _translate( "GdalToolsWidget", "Selects a subwindow from the source image for copying based on pixel/line location. (Enter Xoff Yoff Xsize Ysize)", None)) self.prjwinCheck.setToolTip( _translate( "GdalToolsWidget", "Selects a subwindow from the source image for copying (like -srcwin) but with the corners given in georeferenced coordinates. (Enter ulx uly lrx lry)", None)) self.prjwinCheck.setText(_translate("GdalToolsWidget", "Prjwin", None)) self.prjwinEdit.setToolTip( _translate( "GdalToolsWidget", "Selects a subwindow from the source image for copying (like -srcwin) but with the corners given in georeferenced coordinates. (Enter ulx uly lrx lry)", None)) self.sdsCheck.setToolTip( _translate( "GdalToolsWidget", "Copy all subdatasets of this file to individual output files. Use with formats like HDF or OGDI that have subdatasets.", None)) self.sdsCheck.setText(_translate("GdalToolsWidget", "Sds", None)) self.nodataSpin.setToolTip( _translate("GdalToolsWidget", "Assign a specified nodata value to output bands.", None)) self.creationOptionsGroupBox.setTitle( _translate("GdalToolsWidget", "&Creation Options", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(371, 284) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1) self.noDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.noDataCheck.setObjectName(_fromUtf8("noDataCheck")) self.gridLayout.addWidget(self.noDataCheck, 4, 0, 1, 1) self.noDataSpin = QtGui.QSpinBox(GdalToolsWidget) self.noDataSpin.setMinimum(-100000) self.noDataSpin.setMaximum(65000) self.noDataSpin.setObjectName(_fromUtf8("noDataSpin")) self.gridLayout.addWidget(self.noDataSpin, 4, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 1, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 3, 1, 1, 1) self.inputDirCheck = QtGui.QCheckBox(GdalToolsWidget) self.inputDirCheck.setObjectName(_fromUtf8("inputDirCheck")) self.gridLayout.addWidget(self.inputDirCheck, 0, 0, 1, 2) self.recurseCheck = QtGui.QCheckBox(GdalToolsWidget) self.recurseCheck.setObjectName(_fromUtf8("recurseCheck")) self.gridLayout.addWidget(self.recurseCheck, 2, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.separateCheck = QtGui.QCheckBox(GdalToolsWidget) self.separateCheck.setObjectName(_fromUtf8("separateCheck")) self.verticalLayout.addWidget(self.separateCheck) self.intersectCheck = QtGui.QCheckBox(GdalToolsWidget) self.intersectCheck.setEnabled(False) self.intersectCheck.setObjectName(_fromUtf8("intersectCheck")) self.verticalLayout.addWidget(self.intersectCheck) self.pctCheck = QtGui.QCheckBox(GdalToolsWidget) self.pctCheck.setObjectName(_fromUtf8("pctCheck")) self.verticalLayout.addWidget(self.pctCheck) self.creationOptionsGroupBox = QgsCollapsibleGroupBox(GdalToolsWidget) self.creationOptionsGroupBox.setCheckable(True) self.creationOptionsGroupBox.setChecked(False) self.creationOptionsGroupBox.setProperty("collapsed", False) self.creationOptionsGroupBox.setProperty("saveCollapsedState", True) self.creationOptionsGroupBox.setObjectName(_fromUtf8("creationOptionsGroupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.creationOptionsGroupBox) self.verticalLayout_2.setMargin(9) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.creationOptionsWidget = QgsRasterFormatSaveOptionsWidget(self.creationOptionsGroupBox) self.creationOptionsWidget.setObjectName(_fromUtf8("creationOptionsWidget")) self.verticalLayout_2.addWidget(self.creationOptionsWidget) self.verticalLayout.addWidget(self.creationOptionsGroupBox) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Merge", None)) self.label.setText(_translate("GdalToolsWidget", "&Input files", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.noDataCheck.setText(_translate("GdalToolsWidget", "&No data value", None)) self.inputDirCheck.setText(_translate("GdalToolsWidget", "Choose input directory instead of files", None)) self.recurseCheck.setText(_translate("GdalToolsWidget", "Recurse subdirectories", None)) self.separateCheck.setText(_translate("GdalToolsWidget", "Layer stack", None)) self.intersectCheck.setText(_translate("GdalToolsWidget", "Use intersected extent", None)) self.pctCheck.setText(_translate("GdalToolsWidget", "Grab pseudocolor table from the first image", None)) self.creationOptionsGroupBox.setTitle(_translate("GdalToolsWidget", "&Creation Options", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(327, 229) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.valuesCheck = QtGui.QCheckBox(GdalToolsWidget) self.valuesCheck.setObjectName(_fromUtf8("valuesCheck")) self.gridLayout.addWidget(self.valuesCheck, 2, 0, 1, 1) self.distUnitsCheck = QtGui.QCheckBox(GdalToolsWidget) self.distUnitsCheck.setChecked(True) self.distUnitsCheck.setObjectName(_fromUtf8("distUnitsCheck")) self.gridLayout.addWidget(self.distUnitsCheck, 3, 0, 1, 1) self.distUnitsCombo = QtGui.QComboBox(GdalToolsWidget) self.distUnitsCombo.setObjectName(_fromUtf8("distUnitsCombo")) self.distUnitsCombo.addItem(_fromUtf8("")) self.distUnitsCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.distUnitsCombo, 3, 1, 1, 1) self.maxDistCheck = QtGui.QCheckBox(GdalToolsWidget) self.maxDistCheck.setObjectName(_fromUtf8("maxDistCheck")) self.gridLayout.addWidget(self.maxDistCheck, 4, 0, 1, 1) self.maxDistSpin = QtGui.QSpinBox(GdalToolsWidget) self.maxDistSpin.setMaximum(65000) self.maxDistSpin.setObjectName(_fromUtf8("maxDistSpin")) self.gridLayout.addWidget(self.maxDistSpin, 4, 1, 1, 1) self.noDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.noDataCheck.setObjectName(_fromUtf8("noDataCheck")) self.gridLayout.addWidget(self.noDataCheck, 5, 0, 1, 1) self.noDataSpin = QtGui.QSpinBox(GdalToolsWidget) self.noDataSpin.setMinimum(-100000) self.noDataSpin.setMaximum(65000) self.noDataSpin.setObjectName(_fromUtf8("noDataSpin")) self.gridLayout.addWidget(self.noDataSpin, 5, 1, 1, 1) self.fixedBufValCheck = QtGui.QCheckBox(GdalToolsWidget) self.fixedBufValCheck.setObjectName(_fromUtf8("fixedBufValCheck")) self.gridLayout.addWidget(self.fixedBufValCheck, 6, 0, 1, 1) self.fixedBufValSpin = QtGui.QSpinBox(GdalToolsWidget) self.fixedBufValSpin.setMaximum(65000) self.fixedBufValSpin.setObjectName(_fromUtf8("fixedBufValSpin")) self.gridLayout.addWidget(self.fixedBufValSpin, 6, 1, 1, 1) self.valuesEdit = QtGui.QLineEdit(GdalToolsWidget) self.valuesEdit.setObjectName(_fromUtf8("valuesEdit")) self.gridLayout.addWidget(self.valuesEdit, 2, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Proximity (Raster distance)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.valuesCheck.setText(_translate("GdalToolsWidget", "&Values", None)) self.distUnitsCheck.setText(_translate("GdalToolsWidget", "&Dist units", None)) self.distUnitsCombo.setItemText(0, _translate("GdalToolsWidget", "GEO", None)) self.distUnitsCombo.setItemText(1, _translate("GdalToolsWidget", "PIXEL", None)) self.maxDistCheck.setText(_translate("GdalToolsWidget", "&Max dist", None)) self.noDataCheck.setText(_translate("GdalToolsWidget", "&No data", None)) self.fixedBufValCheck.setText(_translate("GdalToolsWidget", "&Fixed buf val", None)) self.valuesEdit.setText(_translate("GdalToolsWidget", "0", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(348, 266) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSizeConstraint(QtGui.QLayout.SetNoConstraint) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.inputSelLayersCheck = QtGui.QCheckBox(GdalToolsWidget) self.inputSelLayersCheck.setObjectName( _fromUtf8("inputSelLayersCheck")) self.gridLayout.addWidget(self.inputSelLayersCheck, 0, 0, 1, 2) self.inputDirCheck = QtGui.QCheckBox(GdalToolsWidget) self.inputDirCheck.setObjectName(_fromUtf8("inputDirCheck")) self.gridLayout.addWidget(self.inputDirCheck, 1, 0, 1, 2) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 2, 0, 1, 1) self.recurseCheck = QtGui.QCheckBox(GdalToolsWidget) self.recurseCheck.setObjectName(_fromUtf8("recurseCheck")) self.gridLayout.addWidget(self.recurseCheck, 3, 1, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 4, 0, 1, 1) self.resolutionCheck = QtGui.QCheckBox(GdalToolsWidget) self.resolutionCheck.setObjectName(_fromUtf8("resolutionCheck")) self.gridLayout.addWidget(self.resolutionCheck, 5, 0, 1, 1) self.resolutionComboBox = QtGui.QComboBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.resolutionComboBox.sizePolicy().hasHeightForWidth()) self.resolutionComboBox.setSizePolicy(sizePolicy) self.resolutionComboBox.setObjectName(_fromUtf8("resolutionComboBox")) self.resolutionComboBox.addItem(_fromUtf8("")) self.resolutionComboBox.addItem(_fromUtf8("")) self.resolutionComboBox.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.resolutionComboBox, 5, 1, 1, 1) self.srcNoDataCheck = QtGui.QCheckBox(GdalToolsWidget) self.srcNoDataCheck.setObjectName(_fromUtf8("srcNoDataCheck")) self.gridLayout.addWidget(self.srcNoDataCheck, 6, 0, 1, 1) self.srcNoDataSpin = QtGui.QSpinBox(GdalToolsWidget) self.srcNoDataSpin.setMinimum(-100000) self.srcNoDataSpin.setMaximum(65000) self.srcNoDataSpin.setObjectName(_fromUtf8("srcNoDataSpin")) self.gridLayout.addWidget(self.srcNoDataSpin, 6, 1, 1, 1) self.separateCheck = QtGui.QCheckBox(GdalToolsWidget) self.separateCheck.setObjectName(_fromUtf8("separateCheck")) self.gridLayout.addWidget(self.separateCheck, 7, 0, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 2, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 4, 1, 1, 1) self.allowProjDiffCheck = QtGui.QCheckBox(GdalToolsWidget) self.allowProjDiffCheck.setObjectName(_fromUtf8("allowProjDiffCheck")) self.gridLayout.addWidget(self.allowProjDiffCheck, 8, 0, 1, 2) self.verticalLayout.addLayout(self.gridLayout) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.retranslateUi(GdalToolsWidget) self.resolutionComboBox.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle( _translate("GdalToolsWidget", "Build Virtual Raster (Catalog)", None)) self.inputSelLayersCheck.setText( _translate("GdalToolsWidget", "Use visible raster layers for input", None)) self.inputDirCheck.setText( _translate("GdalToolsWidget", "Choose input directory instead of files", None)) self.label.setText(_translate("GdalToolsWidget", "&Input files", None)) self.recurseCheck.setText( _translate("GdalToolsWidget", "Recurse subdirectories", None)) self.label_2.setText( _translate("GdalToolsWidget", "&Output file", None)) self.resolutionCheck.setText( _translate("GdalToolsWidget", "&Resolution", None)) self.resolutionComboBox.setItemText( 0, _translate("GdalToolsWidget", "Highest", None)) self.resolutionComboBox.setItemText( 1, _translate("GdalToolsWidget", "Average", None)) self.resolutionComboBox.setItemText( 2, _translate("GdalToolsWidget", "Lowest", None)) self.srcNoDataCheck.setText( _translate("GdalToolsWidget", "&Source No Data", None)) self.separateCheck.setText( _translate("GdalToolsWidget", "Se¶te", None)) self.allowProjDiffCheck.setText( _translate("GdalToolsWidget", "Allow projection difference", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(520, 163) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout_3 = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.intervalDSpinBox = QtGui.QDoubleSpinBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.intervalDSpinBox.sizePolicy().hasHeightForWidth()) self.intervalDSpinBox.setSizePolicy(sizePolicy) self.intervalDSpinBox.setDecimals(3) self.intervalDSpinBox.setMaximum(2140000000.0) self.intervalDSpinBox.setObjectName(_fromUtf8("intervalDSpinBox")) self.gridLayout.addWidget(self.intervalDSpinBox, 2, 1, 1, 1) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.attributeCheck = QtGui.QCheckBox(GdalToolsWidget) self.attributeCheck.setObjectName(_fromUtf8("attributeCheck")) self.verticalLayout.addWidget(self.attributeCheck) self.label_5 = QtGui.QLabel(GdalToolsWidget) font = QtGui.QFont() font.setPointSize(8) self.label_5.setFont(font) self.label_5.setIndent(16) self.label_5.setObjectName(_fromUtf8("label_5")) self.verticalLayout.addWidget(self.label_5) self.gridLayout.addLayout(self.verticalLayout, 3, 0, 1, 1) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.attributeEdit = QtGui.QLineEdit(GdalToolsWidget) self.attributeEdit.setObjectName(_fromUtf8("attributeEdit")) self.verticalLayout_2.addWidget(self.attributeEdit) spacerItem = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.verticalLayout_2.addItem(spacerItem) self.gridLayout.addLayout(self.verticalLayout_2, 3, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.verticalLayout_3.addLayout(self.gridLayout) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.label_3.setBuddy(self.intervalDSpinBox) self.retranslateUi(GdalToolsWidget) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "Contour", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file (raster)", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file for contour lines (vector)", None)) self.label_3.setText(_translate("GdalToolsWidget", "I&nterval between contour lines", None)) self.attributeCheck.setText(_translate("GdalToolsWidget", "&Attribute name", None)) self.label_5.setText(_translate("GdalToolsWidget", "If not provided, no elevation attribute is attached.", None)) self.attributeEdit.setText(_translate("GdalToolsWidget", "ELEV", None))
class Ui_GdalToolsWidget(object): def setupUi(self, GdalToolsWidget): GdalToolsWidget.setObjectName(_fromUtf8("GdalToolsWidget")) GdalToolsWidget.resize(478, 404) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GdalToolsWidget.sizePolicy().hasHeightForWidth()) GdalToolsWidget.setSizePolicy(sizePolicy) self.verticalLayout_2 = QtGui.QVBoxLayout(GdalToolsWidget) self.verticalLayout_2.setContentsMargins(5, -1, -1, -1) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(GdalToolsWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(GdalToolsWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.bandCheck = QtGui.QCheckBox(GdalToolsWidget) self.bandCheck.setObjectName(_fromUtf8("bandCheck")) self.gridLayout.addWidget(self.bandCheck, 2, 0, 1, 1) self.bandSpin = QtGui.QSpinBox(GdalToolsWidget) self.bandSpin.setMinimum(1) self.bandSpin.setObjectName(_fromUtf8("bandSpin")) self.gridLayout.addWidget(self.bandSpin, 2, 1, 1, 1) self.computeEdgesCheck = QtGui.QCheckBox(GdalToolsWidget) self.computeEdgesCheck.setObjectName(_fromUtf8("computeEdgesCheck")) self.gridLayout.addWidget(self.computeEdgesCheck, 3, 0, 1, 2) self.algorithmCheck = QtGui.QCheckBox(GdalToolsWidget) self.algorithmCheck.setObjectName(_fromUtf8("algorithmCheck")) self.gridLayout.addWidget(self.algorithmCheck, 4, 0, 1, 2) self.inSelector = GdalToolsInOutSelector(GdalToolsWidget) self.inSelector.setObjectName(_fromUtf8("inSelector")) self.gridLayout.addWidget(self.inSelector, 0, 1, 1, 1) self.outSelector = GdalToolsInOutSelector(GdalToolsWidget) self.outSelector.setObjectName(_fromUtf8("outSelector")) self.gridLayout.addWidget(self.outSelector, 1, 1, 1, 1) self.label_3 = QtGui.QLabel(GdalToolsWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 5, 0, 1, 1) self.modeCombo = QtGui.QComboBox(GdalToolsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.modeCombo.sizePolicy().hasHeightForWidth()) self.modeCombo.setSizePolicy(sizePolicy) self.modeCombo.setObjectName(_fromUtf8("modeCombo")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.modeCombo, 5, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.groupBox = QtGui.QGroupBox(GdalToolsWidget) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.stackedWidget = QtGui.QStackedWidget(self.groupBox) self.stackedWidget.setObjectName(_fromUtf8("stackedWidget")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.gridLayout_3 = QtGui.QGridLayout(self.page) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.label_4 = QtGui.QLabel(self.page) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1) self.hillshadeZFactorSpin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hillshadeZFactorSpin.sizePolicy().hasHeightForWidth()) self.hillshadeZFactorSpin.setSizePolicy(sizePolicy) self.hillshadeZFactorSpin.setDecimals(2) self.hillshadeZFactorSpin.setMaximum(100000000.0) self.hillshadeZFactorSpin.setObjectName(_fromUtf8("hillshadeZFactorSpin")) self.gridLayout_3.addWidget(self.hillshadeZFactorSpin, 0, 1, 1, 1) self.label_5 = QtGui.QLabel(self.page) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_3.addWidget(self.label_5, 1, 0, 1, 1) self.hillshadeScaleSpin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hillshadeScaleSpin.sizePolicy().hasHeightForWidth()) self.hillshadeScaleSpin.setSizePolicy(sizePolicy) self.hillshadeScaleSpin.setDecimals(2) self.hillshadeScaleSpin.setMaximum(999999.0) self.hillshadeScaleSpin.setObjectName(_fromUtf8("hillshadeScaleSpin")) self.gridLayout_3.addWidget(self.hillshadeScaleSpin, 1, 1, 1, 1) self.label_6 = QtGui.QLabel(self.page) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_3.addWidget(self.label_6, 2, 0, 1, 1) self.hillshadeAzimuthSpin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hillshadeAzimuthSpin.sizePolicy().hasHeightForWidth()) self.hillshadeAzimuthSpin.setSizePolicy(sizePolicy) self.hillshadeAzimuthSpin.setDecimals(1) self.hillshadeAzimuthSpin.setMaximum(359.0) self.hillshadeAzimuthSpin.setObjectName(_fromUtf8("hillshadeAzimuthSpin")) self.gridLayout_3.addWidget(self.hillshadeAzimuthSpin, 2, 1, 1, 1) self.label_7 = QtGui.QLabel(self.page) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_3.addWidget(self.label_7, 3, 0, 1, 1) self.hillshadeAltitudeSpin = QtGui.QDoubleSpinBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hillshadeAltitudeSpin.sizePolicy().hasHeightForWidth()) self.hillshadeAltitudeSpin.setSizePolicy(sizePolicy) self.hillshadeAltitudeSpin.setDecimals(1) self.hillshadeAltitudeSpin.setMaximum(359.0) self.hillshadeAltitudeSpin.setObjectName(_fromUtf8("hillshadeAltitudeSpin")) self.gridLayout_3.addWidget(self.hillshadeAltitudeSpin, 3, 1, 1, 1) self.stackedWidget.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.gridLayout_2 = QtGui.QGridLayout(self.page_2) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.slopePercentCheck = QtGui.QCheckBox(self.page_2) self.slopePercentCheck.setObjectName(_fromUtf8("slopePercentCheck")) self.gridLayout_2.addWidget(self.slopePercentCheck, 0, 0, 1, 2) self.label_8 = QtGui.QLabel(self.page_2) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_2.addWidget(self.label_8, 1, 0, 1, 1) self.slopeScaleSpin = QtGui.QDoubleSpinBox(self.page_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.slopeScaleSpin.sizePolicy().hasHeightForWidth()) self.slopeScaleSpin.setSizePolicy(sizePolicy) self.slopeScaleSpin.setDecimals(2) self.slopeScaleSpin.setMaximum(999999.0) self.slopeScaleSpin.setObjectName(_fromUtf8("slopeScaleSpin")) self.gridLayout_2.addWidget(self.slopeScaleSpin, 1, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem, 2, 0, 1, 1) self.stackedWidget.addWidget(self.page_2) self.page_3 = QtGui.QWidget() self.page_3.setObjectName(_fromUtf8("page_3")) self.gridLayout_4 = QtGui.QGridLayout(self.page_3) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.aspectTrigonometricCheck = QtGui.QCheckBox(self.page_3) self.aspectTrigonometricCheck.setObjectName(_fromUtf8("aspectTrigonometricCheck")) self.gridLayout_4.addWidget(self.aspectTrigonometricCheck, 0, 0, 1, 1) self.aspectZeroForFlatCheck = QtGui.QCheckBox(self.page_3) self.aspectZeroForFlatCheck.setObjectName(_fromUtf8("aspectZeroForFlatCheck")) self.gridLayout_4.addWidget(self.aspectZeroForFlatCheck, 1, 0, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem1, 2, 0, 1, 1) self.stackedWidget.addWidget(self.page_3) self.page_4 = QtGui.QWidget() self.page_4.setObjectName(_fromUtf8("page_4")) self.gridLayout_5 = QtGui.QGridLayout(self.page_4) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.label_9 = QtGui.QLabel(self.page_4) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout_5.addWidget(self.label_9, 0, 0, 1, 1) self.colorMatchGroupBox = QtGui.QGroupBox(self.page_4) self.colorMatchGroupBox.setCheckable(True) self.colorMatchGroupBox.setChecked(False) self.colorMatchGroupBox.setObjectName(_fromUtf8("colorMatchGroupBox")) self.gridLayout_6 = QtGui.QGridLayout(self.colorMatchGroupBox) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.colorExactRadio = QtGui.QRadioButton(self.colorMatchGroupBox) self.colorExactRadio.setCheckable(True) self.colorExactRadio.setChecked(True) self.colorExactRadio.setObjectName(_fromUtf8("colorExactRadio")) self.gridLayout_6.addWidget(self.colorExactRadio, 0, 0, 1, 1) self.colorNearestRadio = QtGui.QRadioButton(self.colorMatchGroupBox) self.colorNearestRadio.setObjectName(_fromUtf8("colorNearestRadio")) self.gridLayout_6.addWidget(self.colorNearestRadio, 1, 0, 1, 1) self.gridLayout_5.addWidget(self.colorMatchGroupBox, 1, 0, 1, 2) self.colorAlphaCheck = QtGui.QCheckBox(self.page_4) self.colorAlphaCheck.setObjectName(_fromUtf8("colorAlphaCheck")) self.gridLayout_5.addWidget(self.colorAlphaCheck, 2, 0, 1, 1) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_5.addItem(spacerItem2, 3, 0, 1, 1) self.configSelector = GdalToolsInOutSelector(self.page_4) self.configSelector.setObjectName(_fromUtf8("configSelector")) self.gridLayout_5.addWidget(self.configSelector, 0, 1, 1, 1) self.stackedWidget.addWidget(self.page_4) self.page_5 = QtGui.QWidget() self.page_5.setObjectName(_fromUtf8("page_5")) self.stackedWidget.addWidget(self.page_5) self.page_6 = QtGui.QWidget() self.page_6.setObjectName(_fromUtf8("page_6")) self.stackedWidget.addWidget(self.page_6) self.page_7 = QtGui.QWidget() self.page_7.setObjectName(_fromUtf8("page_7")) self.stackedWidget.addWidget(self.page_7) self.verticalLayout_3.addWidget(self.stackedWidget) self.verticalLayout_2.addWidget(self.groupBox) self.creationOptionsGroupBox = QgsCollapsibleGroupBox(GdalToolsWidget) self.creationOptionsGroupBox.setProperty("collapsed", False) self.creationOptionsGroupBox.setProperty("saveCollapsedState", True) self.creationOptionsGroupBox.setEnabled(True) self.creationOptionsGroupBox.setCheckable(True) self.creationOptionsGroupBox.setChecked(False) self.creationOptionsGroupBox.setObjectName(_fromUtf8("creationOptionsGroupBox")) self.verticalLayout = QtGui.QVBoxLayout(self.creationOptionsGroupBox) self.verticalLayout.setContentsMargins(9, -1, -1, -1) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.creationOptionsWidget = QgsRasterFormatSaveOptionsWidget(self.creationOptionsGroupBox) self.creationOptionsWidget.setObjectName(_fromUtf8("creationOptionsWidget")) self.verticalLayout.addWidget(self.creationOptionsWidget) self.verticalLayout_2.addWidget(self.creationOptionsGroupBox) self.label.setBuddy(self.inSelector) self.label_2.setBuddy(self.outSelector) self.label_3.setBuddy(self.modeCombo) self.retranslateUi(GdalToolsWidget) self.modeCombo.setCurrentIndex(0) self.stackedWidget.setCurrentIndex(0) QtCore.QObject.connect(self.modeCombo, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), self.stackedWidget.setCurrentIndex) QtCore.QMetaObject.connectSlotsByName(GdalToolsWidget) def retranslateUi(self, GdalToolsWidget): GdalToolsWidget.setWindowTitle(_translate("GdalToolsWidget", "DEM (Terrain models)", None)) self.label.setText(_translate("GdalToolsWidget", "&Input file (DEM raster)", None)) self.label_2.setText(_translate("GdalToolsWidget", "&Output file", None)) self.bandCheck.setText(_translate("GdalToolsWidget", "&Band", None)) self.computeEdgesCheck.setText(_translate("GdalToolsWidget", "Compute &edges", None)) self.algorithmCheck.setText(_translate("GdalToolsWidget", "Use Zevenbergen&&Thorne formula (instead of the Horn\'s one)", None)) self.label_3.setText(_translate("GdalToolsWidget", "&Mode", None)) self.modeCombo.setItemText(0, _translate("GdalToolsWidget", "Hillshade", None)) self.modeCombo.setItemText(1, _translate("GdalToolsWidget", "Slope", None)) self.modeCombo.setItemText(2, _translate("GdalToolsWidget", "Aspect", None)) self.modeCombo.setItemText(3, _translate("GdalToolsWidget", "Color relief", None)) self.modeCombo.setItemText(4, _translate("GdalToolsWidget", "TRI (Terrain Ruggedness Index)", None)) self.modeCombo.setItemText(5, _translate("GdalToolsWidget", "TPI (Topographic Position Index)", None)) self.modeCombo.setItemText(6, _translate("GdalToolsWidget", "Roughness", None)) self.groupBox.setTitle(_translate("GdalToolsWidget", "Mode Options", None)) self.label_4.setText(_translate("GdalToolsWidget", "Z factor (vertical exaggeration)", None)) self.label_5.setText(_translate("GdalToolsWidget", "Scale (ratio of vert. units to horiz.)", None)) self.label_6.setText(_translate("GdalToolsWidget", "Azimuth of the light", None)) self.label_7.setText(_translate("GdalToolsWidget", "Altitude of the light", None)) self.slopePercentCheck.setText(_translate("GdalToolsWidget", "Slope expressed as percent (instead of as degrees)", None)) self.label_8.setText(_translate("GdalToolsWidget", "Scale (ratio of vert. units to horiz.)", None)) self.aspectTrigonometricCheck.setText(_translate("GdalToolsWidget", "Return trigonometric angle (instead of azimuth)", None)) self.aspectZeroForFlatCheck.setText(_translate("GdalToolsWidget", "Return 0 for flat (instead of -9999)", None)) self.label_9.setText(_translate("GdalToolsWidget", "Color configuration file", None)) self.colorMatchGroupBox.setTitle(_translate("GdalToolsWidget", "Matching mode", None)) self.colorExactRadio.setText(_translate("GdalToolsWidget", "Exact color (otherwise \"0,0,0,0\" RGBA)", None)) self.colorNearestRadio.setText(_translate("GdalToolsWidget", "Nearest color", None)) self.colorAlphaCheck.setText(_translate("GdalToolsWidget", "Add alpha channel", None)) self.creationOptionsGroupBox.setTitle(_translate("GdalToolsWidget", "&Creation Options", None))