Skip to content

Commit 4500133

Browse files
author
ersts
committed
-Linear interpolation is a better default than Exact for palette images
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9268 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c87105d commit 4500133

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/qgsrasterlayerproperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ void QgsRasterLayerProperties::on_pbtnLoadColorMapFromBand_clicked()
27132713
if ( mRasterLayer->readColorTable( cboxColorMapBand->currentIndex() + 1, &myColorRampList ) )
27142714
{
27152715
populateColorMapTable( myColorRampList );
2716-
cboxColorInterpolation->setCurrentIndex( cboxColorInterpolation->findText( tr( "Exact" ) ) );
2716+
cboxColorInterpolation->setCurrentIndex( cboxColorInterpolation->findText( tr( "Linear" ) ) );
27172717
QgsDebugMsg( "Color map loaded" );
27182718
}
27192719
else

src/core/raster/qgsrasterlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ bool QgsRasterLayer::readFile( QString const & fileName )
565565
//Set up a new color ramp shader
566566
setColorShadingAlgorithm( COLOR_RAMP );
567567
QgsColorRampShader* myColorRampShader = ( QgsColorRampShader* ) mRasterShader->getRasterShaderFunction();
568-
myColorRampShader->setColorRampType( QgsColorRampShader::EXACT );
568+
myColorRampShader->setColorRampType( QgsColorRampShader::INTERPOLATED );
569569
myColorRampShader->setColorRampItemList( *getColorTable(1) );
570570
}
571571
else if ( rasterLayerType == MULTIBAND )

0 commit comments

Comments
 (0)