29 switch ( sublayer.type() )
32 if ( sublayer.skippedContainerScan()
34 || ( !ignoreUnknownFeatureCount &&
56 const QFileInfo info( path );
58 QString name = info.completeBaseName();
61 if ( info.suffix().compare( QLatin1String(
"adf" ), Qt::CaseInsensitive ) == 0 )
63 const QString dirName = info.path();
64 name = QFileInfo( dirName ).completeBaseName();
67 else if ( info.fileName().compare( QLatin1String(
"ept.json" ), Qt::CaseInsensitive ) == 0 )
69 const QString dirName = info.path();
70 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
Point cloud layer. Added in QGIS 3.18.
@ MeshLayer
Mesh layer. Added in QGIS 3.2.
@ VectorLayer
Vector layer.
@ RasterLayer
Raster layer.
@ GroupLayer
Composite group layer. Added in QGIS 3.24.
@ VectorTileLayer
Vector tile layer. Added in QGIS 3.14.
@ AnnotationLayer
Contains freeform, georeferenced annotations. Added in QGIS 3.16.
@ PluginLayer
Plugin based layer.