Skip to content
Permalink
Browse files

Allow repairing point cloud layer paths in bad layer handler dialog

Fixes #42113

(cherry picked from commit 73613b7)
  • Loading branch information
nyalldawson committed Mar 11, 2021
1 parent 7fe89de commit 419fe143cd243a65e635ccc8b2e4ea6b16fdb50b
@@ -194,6 +194,11 @@ QString QgsEptProviderMetadata::filters( QgsProviderMetadata::FilterType type )
return QString();
}

QgsProviderMetadata::ProviderCapabilities QgsEptProviderMetadata::providerCapabilities() const
{
return FileBasedUris;
}

QString QgsEptProviderMetadata::encodeUri( const QVariantMap &parts ) const
{
const QString path = parts.value( QStringLiteral( "path" ) ).toString();
@@ -74,6 +74,7 @@ class QgsEptProviderMetadata : public QgsProviderMetadata
QString encodeUri( const QVariantMap &parts ) const override;
QVariantMap decodeUri( const QString &uri ) const override;
QString filters( FilterType type ) override;
ProviderCapabilities providerCapabilities() const override;
};

///@endcond
@@ -339,6 +339,11 @@ QString QgsPdalProviderMetadata::filters( QgsProviderMetadata::FilterType type )
return QString();
}

QgsProviderMetadata::ProviderCapabilities QgsPdalProviderMetadata::providerCapabilities() const
{
return FileBasedUris;
}

QString QgsPdalProviderMetadata::encodeUri( const QVariantMap &parts ) const
{
const QString path = parts.value( QStringLiteral( "path" ) ).toString();
@@ -81,6 +81,7 @@ class QgsPdalProviderMetadata : public QgsProviderMetadata
int priorityForUri( const QString &uri ) const override;
QList< QgsMapLayerType > validLayerTypesForUri( const QString &uri ) const override;
QString filters( FilterType type ) override;
ProviderCapabilities providerCapabilities() const override;
};

#endif // QGSPDALPROVIDER_H

0 comments on commit 419fe14

Please sign in to comment.