Skip to content
Permalink
Browse files

Allow browsing for csv file paths in bad layer handler for delimited …

…text layers

(cherry picked from commit fbcf0e7)
  • Loading branch information
nyalldawson committed Mar 11, 2021
1 parent b22bf2e commit 7fe89de149e400927ac0fd1fb97877d539fc9772
@@ -1312,6 +1312,11 @@ QString QgsDelimitedTextProviderMetadata::encodeUri( const QVariantMap &parts )
return QString::fromLatin1( url.toEncoded() );
}

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

QgsDataProvider *QgsDelimitedTextProviderMetadata::createProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options, QgsDataProvider::ReadFlags flags )
{
return new QgsDelimitedTextProvider( uri, options, flags );
@@ -240,6 +240,7 @@ class QgsDelimitedTextProviderMetadata final: public QgsProviderMetadata
QgsDataProvider *createProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options, QgsDataProvider::ReadFlags flags = QgsDataProvider::ReadFlags() ) override;
QVariantMap decodeUri( const QString &uri ) const override;
QString encodeUri( const QVariantMap &parts ) const override;
ProviderCapabilities providerCapabilities() const override;
};

#endif

0 comments on commit 7fe89de

Please sign in to comment.