mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
postgres provider changes:
- ignore infinite filter rectangles - also disconnect selection connection if no supported layers were found
This commit is contained in:
parent
cb48f51905
commit
a47babaf4e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user