Skip to content
Permalink
Browse files

fix parameter name

  • Loading branch information
root676 authored and nyalldawson committed Jul 28, 2020
1 parent 900d6f8 commit b95698114144ee0e1a24c2b77763c0c861c31ff3
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/analysis/processing/qgsalgorithmrasterfrequencybycomparisonoperator.cpp
@@ -53,7 +53,7 @@ void QgsRasterFrequencyByComparisonOperatorBase::initAlgorithm( const QVariantMa

addParameter( new QgsProcessingParameterRasterDestination( QStringLiteral( "OUTPUT" ),
QObject::tr( "Output layer" ) ) );
addOutput( new QgsProcessingOutputNumber( QStringLiteral( "OCCURENCE_COUNT" ), QObject::tr( "Count of value occurrances" ) ) );
addOutput( new QgsProcessingOutputNumber( QStringLiteral( "OCCURRENCE_COUNT" ), QObject::tr( "Count of value occurrances" ) ) );
addOutput( new QgsProcessingOutputNumber( QStringLiteral( "FOUND_LOCATIONS_COUNT" ), QObject::tr( "Count of cells with equal value occurrances" ) ) );
addOutput( new QgsProcessingOutputNumber( QStringLiteral( "MEAN_FREQUENCY_PER_LOCATION" ), QObject::tr( "Mean frequency at valid cell locations" ) ) );
addOutput( new QgsProcessingOutputString( QStringLiteral( "EXTENT" ), QObject::tr( "Extent" ) ) );
@@ -202,7 +202,7 @@ QVariantMap QgsRasterFrequencyByComparisonOperatorBase::processAlgorithm( const
double meanEqualCountPerValidLocation = static_cast<double>( occurrenceCount ) / static_cast<double>( foundLocationsCount * mInputs.size() );

QVariantMap outputs;
outputs.insert( QStringLiteral( "OCCURENCE_COUNT" ), occurrenceCount );
outputs.insert( QStringLiteral( "OCCURRENCE_COUNT" ), occurrenceCount );
outputs.insert( QStringLiteral( "FOUND_LOCATIONS_COUNT" ), foundLocationsCount );
outputs.insert( QStringLiteral( "MEAN_FREQUENCY_PER_LOCATION" ), meanEqualCountPerValidLocation );
outputs.insert( QStringLiteral( "EXTENT" ), mExtent.toString() );

0 comments on commit b956981

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