[QGIS Commit] r9268 - in trunk/qgis/src: app core/raster

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Sep 5 17:57:41 EDT 2008


Author: ersts
Date: 2008-09-05 17:57:41 -0400 (Fri, 05 Sep 2008)
New Revision: 9268

Modified:
   trunk/qgis/src/app/qgsrasterlayerproperties.cpp
   trunk/qgis/src/core/raster/qgsrasterlayer.cpp
Log:
-Linear interpolation is a better default than Exact for palette images

Modified: trunk/qgis/src/app/qgsrasterlayerproperties.cpp
===================================================================
--- trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2008-09-05 21:16:58 UTC (rev 9267)
+++ trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2008-09-05 21:57:41 UTC (rev 9268)
@@ -2713,7 +2713,7 @@
   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

Modified: trunk/qgis/src/core/raster/qgsrasterlayer.cpp
===================================================================
--- trunk/qgis/src/core/raster/qgsrasterlayer.cpp	2008-09-05 21:16:58 UTC (rev 9267)
+++ trunk/qgis/src/core/raster/qgsrasterlayer.cpp	2008-09-05 21:57:41 UTC (rev 9268)
@@ -565,7 +565,7 @@
     //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 )



More information about the QGIS-commit mailing list