[QGIS Commit] r12336 - trunk/qgis/src/providers/ogr

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Dec 4 05:59:36 EST 2009


Author: mhugent
Date: 2009-12-04 05:59:33 -0500 (Fri, 04 Dec 2009)
New Revision: 12336

Modified:
   trunk/qgis/src/providers/ogr/qgsogrprovider.cpp
Log:
Skip time consuming polygon code in ogr

Modified: trunk/qgis/src/providers/ogr/qgsogrprovider.cpp
===================================================================
--- trunk/qgis/src/providers/ogr/qgsogrprovider.cpp	2009-12-03 21:53:07 UTC (rev 12335)
+++ trunk/qgis/src/providers/ogr/qgsogrprovider.cpp	2009-12-04 10:59:33 UTC (rev 12336)
@@ -27,6 +27,7 @@
 #include <ogr_api.h>
 #include <ogr_srs_api.h>
 #include <cpl_error.h>
+#include <cpl_conv.h>
 
 #include <QtDebug>
 #include <QFile>
@@ -125,7 +126,7 @@
   QgsDebugMsg( "mLayerIndex: " + QString::number( mLayerIndex ) );
   QgsDebugMsg( "mLayerName: " + mLayerName );
   QgsDebugMsg( "mSubsetString: " + mSubsetString );
-
+  CPLSetConfigOption("OGR_ORGANIZE_POLYGONS", "SKIP");
   CPLPushErrorHandler( CPLQuietErrorHandler );
   ogrDataSource = OGROpen( QFile::encodeName( mFilePath ).constData(), TRUE, &ogrDriver );
   CPLPopErrorHandler();



More information about the QGIS-commit mailing list