Skip to content
Permalink
Browse files

Skip time consuming polygon code in ogr

git-svn-id: http://svn.osgeo.org/qgis/trunk@12336 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Dec 4, 2009
1 parent 62666c8 commit 0c1c2e0a9afdd885113b4f0c4b1d260086e5b2aa
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -27,6 +27,7 @@ email : sherman at mrcc.com
#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 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
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();

0 comments on commit 0c1c2e0

Please sign in to comment.
You can’t perform that action at this time.