mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
postgres provider: speedup loading of layers by not verifing srid and geometry if given in the uri (fixes #9510)
This commit is contained in:
parent
417d497017
commit
3701561489
@ -2565,10 +2565,9 @@ bool QgsPostgresProvider::getGeometryDetails()
|
||||
}
|
||||
}
|
||||
|
||||
QString detectedType;
|
||||
QString detectedSrid;
|
||||
|
||||
if ( !schemaName.isEmpty() )
|
||||
QString detectedType = mRequestedGeomType == QGis::WKBUnknown ? "" : QgsPostgresConn::postgisWkbTypeName( mRequestedGeomType );
|
||||
QString detectedSrid = mRequestedSrid;
|
||||
if ( !schemaName.isEmpty() && (detectedType.isEmpty() || detectedSrid.isEmpty() ) )
|
||||
{
|
||||
// check geometry columns
|
||||
sql = QString( "SELECT upper(type),srid FROM geometry_columns WHERE f_table_name=%1 AND f_geometry_column=%2 AND f_table_schema=%3" )
|
||||
|
Loading…
x
Reference in New Issue
Block a user