29    switch ( sublayer.type() )
 
   31      case Qgis::LayerType::Vector:
 
   32        if ( sublayer.skippedContainerScan()
 
   34             || ( !ignoreUnknownFeatureCount &&
 
   40      case Qgis::LayerType::VectorTile:
 
   41      case Qgis::LayerType::Raster:
 
   42        if ( sublayer.skippedContainerScan() )
 
   46      case Qgis::LayerType::Plugin:
 
   47      case Qgis::LayerType::Mesh:
 
   48      case Qgis::LayerType::Annotation:
 
   49      case Qgis::LayerType::PointCloud:
 
   50      case Qgis::LayerType::Group:
 
   60  const QFileInfo info( path );
 
   62  QString name = info.completeBaseName();
 
   65  if ( info.suffix().compare( QLatin1String( 
"adf" ), Qt::CaseInsensitive ) == 0 )
 
   67    const QString dirName = info.path();
 
   68    name = QFileInfo( dirName ).completeBaseName();
 
   71  else if ( info.fileName().compare( QLatin1String( 
"ept.json" ), Qt::CaseInsensitive ) == 0 )
 
   73    const QString dirName = info.path();
 
   74    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.