Skip to content
Permalink
Browse files

Add missing output from package algorithm

  • Loading branch information
nyalldawson committed Nov 26, 2017
1 parent 6283ca6 commit bb63a83e04b492f5577e97450879ae0db4bd91fc
Showing with 2 additions and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/wrappers.py
  2. +1 −0 src/analysis/processing/qgsalgorithmpackage.cpp
@@ -462,7 +462,7 @@ def createWidget(self):
else:
self.combo = QComboBox()
self.combo.setEditable(True)
files = self.dialog.getAvailableValuesOfType(QgsProcessingParameterFile, (QgsProcessingOutputFile, QgsProcessingOutputString))
files = self.dialog.getAvailableValuesOfType(QgsProcessingParameterFile, (QgsProcessingOutputRasterLayer, QgsProcessingOutputVectorLayer, QgsProcessingOutputMapLayer, QgsProcessingOutputFile, QgsProcessingOutputString))
for f in files:
self.combo.addItem(self.dialog.resolveValueDescription(f), f)
if self.param.flags() & QgsProcessingParameterDefinition.FlagOptional:
@@ -47,6 +47,7 @@ void QgsPackageAlgorithm::initAlgorithm( const QVariantMap & )
addParameter( new QgsProcessingParameterMultipleLayers( QStringLiteral( "LAYERS" ), QObject::tr( "Input layers" ), QgsProcessing::TypeVector ) );
addParameter( new QgsProcessingParameterFileDestination( QStringLiteral( "OUTPUT" ), QObject::tr( "Destination GeoPackage" ), QObject::tr( "GeoPackage files (*.gpkg)" ) ) );
addParameter( new QgsProcessingParameterBoolean( QStringLiteral( "OVERWRITE" ), QObject::tr( "Overwrite existing GeoPackage" ), false ) );
addOutput( new QgsProcessingOutputFile( QStringLiteral( "OUTPUT" ), QObject::tr( "GeoPackage" ) ) );
}

QString QgsPackageAlgorithm::shortHelpString() const

0 comments on commit bb63a83

Please sign in to comment.
You can’t perform that action at this time.