[QGIS Commit] r15488 - trunk/qgis/src/providers/gdal

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Mar 14 18:51:07 EDT 2011


Author: mmassing
Date: 2011-03-14 15:51:07 -0700 (Mon, 14 Mar 2011)
New Revision: 15488

Modified:
   trunk/qgis/src/providers/gdal/qgsgdalprovider.cpp
Log:
Fix VRT wrapping for south-up datasets.

Modified: trunk/qgis/src/providers/gdal/qgsgdalprovider.cpp
===================================================================
--- trunk/qgis/src/providers/gdal/qgsgdalprovider.cpp	2011-03-14 22:35:59 UTC (rev 15487)
+++ trunk/qgis/src/providers/gdal/qgsgdalprovider.cpp	2011-03-14 22:51:07 UTC (rev 15488)
@@ -149,6 +149,8 @@
     mGdalDataset =
       GDALAutoCreateWarpedVRT( mGdalBaseDataset, NULL, NULL,
                                GRA_NearestNeighbour, 0.2, NULL );
+    
+    GDALGetGeoTransform(mGdalDataset, mGeoTransform);
     if ( mGdalDataset == NULL )
     {
       QgsLogger::warning( "Warped VRT Creation failed." );



More information about the QGIS-commit mailing list