30 switch ( sublayer.type() )
33 if ( sublayer.skippedContainerScan()
35 || ( !ignoreUnknownFeatureCount &&
43 if ( sublayer.skippedContainerScan() )
62 const QFileInfo info( path );
64 QString name = info.completeBaseName();
67 if ( info.suffix().compare( QLatin1String(
"adf" ), Qt::CaseInsensitive ) == 0 )
69 const QString dirName = info.path();
70 name = QFileInfo( dirName ).completeBaseName();
73 else if ( info.fileName().compare( QLatin1String(
"ept.json" ), Qt::CaseInsensitive ) == 0 )
75 const QString dirName = info.path();
76 name = QFileInfo( dirName ).completeBaseName();
@ Group
Composite group layer. Added in QGIS 3.24.
@ Plugin
Plugin based layer.
@ TiledScene
Tiled scene layer. Added in QGIS 3.34.
@ Annotation
Contains freeform, georeferenced annotations. Added in QGIS 3.16.
@ VectorTile
Vector tile layer. Added in QGIS 3.14.
@ Mesh
Mesh layer. Added in QGIS 3.2.
@ PointCloud
Point cloud layer. Added in QGIS 3.18.
Contains details about a sub layer available from a dataset.
static bool sublayerDetailsAreIncomplete(const QList< QgsProviderSublayerDetails > &details, QgsProviderUtils::SublayerCompletenessFlags flags=QgsProviderUtils::SublayerCompletenessFlags())
Returns true if the sublayer details are incomplete, and require a more in-depth scan.
QFlags< SublayerCompletenessFlag > SublayerCompletenessFlags
static QString suggestLayerNameFromFilePath(const QString &path)
Suggests a suitable layer name given only a file path.
@ IgnoreUnknownGeometryType
Indicates that an unknown geometry type should not be considered as incomplete.
@ IgnoreUnknownFeatureCount
Indicates that an unknown feature count should not be considered as incomplete.
@ Uncounted
Feature count not yet computed.
@ UnknownCount
Provider returned an unknown feature count.