24using namespace Qt::StringLiterals;
33 switch ( sublayer.type() )
36 if ( sublayer.skippedContainerScan()
38 || ( !ignoreUnknownFeatureCount &&
46 if ( sublayer.skippedContainerScan() )
65 const QFileInfo info( path );
67 QString name = info.completeBaseName();
70 if ( info.suffix().compare(
"adf"_L1, Qt::CaseInsensitive ) == 0 )
72 const QString dirName = info.path();
73 name = QFileInfo( dirName ).completeBaseName();
76 else if ( info.fileName().compare(
"ept.json"_L1, Qt::CaseInsensitive ) == 0 )
78 const QString dirName = info.path();
79 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.