[QGIS Commit] r14512 - branches/raster-providers/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Nov 5 03:30:40 EDT 2010


Author: rblazek
Date: 2010-11-05 00:30:40 -0700 (Fri, 05 Nov 2010)
New Revision: 14512

Modified:
   branches/raster-providers/src/app/qgsrasterlayerproperties.cpp
Log:
raster providers initial work, basic support for passing data for rendering from providers to raster layer

Modified: branches/raster-providers/src/app/qgsrasterlayerproperties.cpp
===================================================================
--- branches/raster-providers/src/app/qgsrasterlayerproperties.cpp	2010-11-05 07:28:20 UTC (rev 14511)
+++ branches/raster-providers/src/app/qgsrasterlayerproperties.cpp	2010-11-05 07:30:40 UTC (rev 14512)
@@ -72,6 +72,7 @@
   mGrayMinimumMaximumEstimated = true;
   mRGBMinimumMaximumEstimated = true;
 
+  // TODO
   if ( mRasterLayer->dataProvider() == 0 )
   {
     // This is a GDAL-based layer
@@ -84,7 +85,10 @@
     mRasterLayerIsWms = true;
     mRasterLayerIsGdal = false;
   }
+  mRasterLayerIsGdal = true;
+  mRasterLayerIsWms = false;
 
+
   setupUi( this );
   connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
   connect( this, SIGNAL( accepted() ), this, SLOT( apply() ) );
@@ -945,6 +949,8 @@
   //set the appropriate render style
   if ( rbtnSingleBand->isChecked() )
   {
+    QgsDebugMsg( "SingleBand isChecked" );
+    QgsDebugMsg( "rasterType = " + QString::number ( mRasterLayer->rasterType() ) );
     //
     // Grayscale
     //



More information about the QGIS-commit mailing list