Skip to content
Permalink
Browse files
Don't mark pgeo driver as slow geometry type retrieval
While it is slow to retrieve this, the new query sublayers
background threading avoid this being an issue
  • Loading branch information
nyalldawson committed Aug 18, 2021
1 parent da0040b commit 3b0cb954b123afc55367673ee5e3448ec0348fe7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/providers/ogr/qgsogrproviderutils.cpp
@@ -2340,7 +2340,7 @@ QList< QgsProviderSublayerDetails > QgsOgrProviderUtils::querySubLayerList( int
// TODO: add support for multiple
QString geometryColumnName;
OGRwkbGeometryType layerGeomType = wkbUnknown;
const bool slowGeomTypeRetrieval = driverName == QLatin1String( "OAPIF" ) || driverName == QLatin1String( "WFS3" ) || driverName == QLatin1String( "PGeo" );
const bool slowGeomTypeRetrieval = driverName == QLatin1String( "OAPIF" ) || driverName == QLatin1String( "WFS3" );
if ( !slowGeomTypeRetrieval )
{
QgsOgrFeatureDefn &fdef = layer->GetLayerDefn();

0 comments on commit 3b0cb95

Please sign in to comment.