-Linear interpolation is a better default than Exact for palette images

git-svn-id: http://svn.osgeo.org/qgis/trunk@9268 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
ersts 2008-09-05 21:57:41 +00:00
parent 8a556f5adb
commit 4af184e49c
2 changed files with 2 additions and 2 deletions

View File

@ -2713,7 +2713,7 @@ void QgsRasterLayerProperties::on_pbtnLoadColorMapFromBand_clicked()
if ( mRasterLayer->readColorTable( cboxColorMapBand->currentIndex() + 1, &myColorRampList ) )
{
populateColorMapTable( myColorRampList );
cboxColorInterpolation->setCurrentIndex( cboxColorInterpolation->findText( tr( "Exact" ) ) );
cboxColorInterpolation->setCurrentIndex( cboxColorInterpolation->findText( tr( "Linear" ) ) );
QgsDebugMsg( "Color map loaded" );
}
else

View File

@ -565,7 +565,7 @@ bool QgsRasterLayer::readFile( QString const & fileName )
//Set up a new color ramp shader
setColorShadingAlgorithm( COLOR_RAMP );
QgsColorRampShader* myColorRampShader = ( QgsColorRampShader* ) mRasterShader->getRasterShaderFunction();
myColorRampShader->setColorRampType( QgsColorRampShader::EXACT );
myColorRampShader->setColorRampType( QgsColorRampShader::INTERPOLATED );
myColorRampShader->setColorRampItemList( *getColorTable(1) );
}
else if ( rasterLayerType == MULTIBAND )