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 a47baba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
@@ -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.