Skip to content
Permalink
Browse files

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

…text layers
  • Loading branch information
nyalldawson committed Mar 10, 2021
1 parent 14c7630 commit fbcf0e740156a34938f0f83a903b4bda1ac04933
@@ -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 fbcf0e7

Please sign in to comment.