[QGIS Commit] r15338 - branches/raster-providers/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Mar 5 05:22:06 EST 2011


Author: rblazek
Date: 2011-03-05 02:22:06 -0800 (Sat, 05 Mar 2011)
New Revision: 15338

Modified:
   branches/raster-providers/src/core/qgsrasterprojector.cpp
Log:
wms fix

Modified: branches/raster-providers/src/core/qgsrasterprojector.cpp
===================================================================
--- branches/raster-providers/src/core/qgsrasterprojector.cpp	2011-03-05 09:59:06 UTC (rev 15337)
+++ branches/raster-providers/src/core/qgsrasterprojector.cpp	2011-03-05 10:22:06 UTC (rev 15338)
@@ -171,18 +171,19 @@
       QgsPoint myPointB = mCPMatrix[i][j+1];
       QgsPoint myPointC = mCPMatrix[i+1][j];
       double mySize = sqrt(myPointA.sqrDist( myPointB )) / myDestColsPerMatrixCell; 
-      QgsDebugMsg( QString("mySize = %1" ).arg ( mySize ) );
+      //QgsDebugMsg( QString("mySize = %1" ).arg ( mySize ) );
       if ( mySize < myMinSize ) { myMinSize = mySize; }
 
       mySize = sqrt(myPointA.sqrDist( myPointC )) / myDestRowsPerMatrixCell;
-      QgsDebugMsg( QString("mySize = %1" ).arg ( mySize ) );
+      //QgsDebugMsg( QString("mySize = %1" ).arg ( mySize ) );
       if ( mySize < myMinSize ) { myMinSize = mySize; }
     }
   }
   
   // Make it a bit higher resolution
-  // TODO: find the best coefficient 
-  myMinSize *= 0.5; 
+  // TODO: find the best coefficient, attention, increasing resolution for WMS 
+  // is changing WMS content
+  myMinSize *= 0.75; 
 
   QgsDebugMsg( QString("mMaxSrcXRes = %1 mMaxSrcYRes = %2" ).arg ( mMaxSrcXRes ).arg( mMaxSrcYRes ) );
   // mMaxSrcXRes, mMaxSrcYRes may be 0 - no limit (WMS)



More information about the QGIS-commit mailing list