29 switch ( sublayer.type() )
32 if ( sublayer.skippedContainerScan()
34 || ( !ignoreUnknownFeatureCount &&
55 const QFileInfo info( path );
57 QString name = info.completeBaseName();
60 if ( info.suffix().compare( QLatin1String(
"adf" ), Qt::CaseInsensitive ) == 0 )
62 const QString dirName = info.path();
63 name = QFileInfo( dirName ).completeBaseName();
66 else if ( info.fileName().compare( QLatin1String(
"ept.json" ), Qt::CaseInsensitive ) == 0 )
68 const QString dirName = info.path();
69 name = QFileInfo( dirName ).completeBaseName();
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.
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.
@ PointCloudLayer
Added in 3.18.
@ VectorTileLayer
Added in 3.14.
@ AnnotationLayer
Contains freeform, georeferenced annotations. Added in QGIS 3.16.