Skip to content

Commit

Permalink
Use MinMax field usage as potential source of initial rat based class…
Browse files Browse the repository at this point in the history
…ification
  • Loading branch information
nyalldawson committed Nov 19, 2022
1 parent 41e79be commit ca39536
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/raster/qgsrasterattributetable.cpp
Expand Up @@ -1280,10 +1280,14 @@ QList<QgsRasterAttributeTable::MinMaxClass> QgsRasterAttributeTable::minMaxClass
{
classificationIndex = fieldUsages.indexOf( Qgis::RasterAttributeTableFieldUsage::Name );
}
else
else if ( fieldUsages.contains( Qgis::RasterAttributeTableFieldUsage::Generic ) )
{
classificationIndex = fieldUsages.indexOf( Qgis::RasterAttributeTableFieldUsage::Generic );
}
else
{
classificationIndex = fieldUsages.indexOf( Qgis::RasterAttributeTableFieldUsage::MinMax );
}
}
else if ( classificationIndex >= mFields.count( ) )
{
Expand Down

0 comments on commit ca39536

Please sign in to comment.