Skip to content
Permalink
Browse files

postgres provider changes:

- ignore infinite filter rectangles
- also disconnect selection connection if no supported layers were found
  • Loading branch information
jef-n committed Jan 2, 2014
1 parent cb48f51 commit a47babaf4ea5624ae7133c01fc5fb84b12f950ed
@@ -62,6 +62,8 @@ void QgsGeomColumnTypeThread::run()
mAllowGeometrylessTables ) ||
layerProperties.isEmpty() )
{
mConn->disconnect();
mConn = 0;
return;
}

@@ -210,8 +210,12 @@ QString QgsPostgresFeatureIterator::whereClauseRect()
if ( P->mSpatialColType == sctGeography )
{
rect = QgsRectangle( -180.0, -90.0, 180.0, 90.0 ).intersect( &rect );
if ( !rect.isFinite() )
return "false";
}

if ( !rect.isFinite() )
{
QgsMessageLog::logMessage( QObject::tr( "Infinite filter rectangle specified" ), QObject::tr( "PostGIS" ) );
return "false";
}

QString qBox;

0 comments on commit a47baba

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