Skip to content
Permalink
Browse files

change return type of QgsRasterDataProvider::clone()

  • Loading branch information
vcloarec authored and nyalldawson committed Oct 2, 2020
1 parent ad6254a commit 299709994d55b6711abc19d41ca6da4923063b89
@@ -96,7 +96,7 @@ source and it's parameters.
The ``options`` argument specifies generic provider options and since QGIS 3.16 creation flags are specified within the ``flags`` value.
%End

virtual QgsRasterInterface *clone() const = 0;
virtual QgsRasterDataProvider *clone() const = 0;


virtual QgsRasterDataProvider::ProviderCapabilities providerCapabilities() const;
@@ -121,7 +121,7 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
const QgsDataProvider::ProviderOptions &providerOptions = QgsDataProvider::ProviderOptions(),
QgsDataProvider::ReadFlags flags = QgsDataProvider::ReadFlags() );

QgsRasterInterface *clone() const override = 0;
QgsRasterDataProvider *clone() const override = 0;

/**
* Returns flags containing the supported capabilities of the data provider.
@@ -412,7 +412,7 @@ QgsLayerMetadata QgsAmsProvider::layerMetadata() const
return mLayerMetadata;
}

QgsRasterInterface *QgsAmsProvider::clone() const
QgsAmsProvider *QgsAmsProvider::clone() const
{
QgsDataProvider::ProviderOptions options;
options.transformContext = transformContext();
@@ -98,7 +98,7 @@ class QgsAmsProvider : public QgsRasterDataProvider
QString lastError() override { return mError; }
Qgis::DataType dataType( int /*bandNo*/ ) const override { return Qgis::ARGB32; }
Qgis::DataType sourceDataType( int /*bandNo*/ ) const override { return Qgis::ARGB32; }
QgsRasterInterface *clone() const override;
QgsAmsProvider *clone() const override;
QString htmlMetadata() override;
bool supportsLegendGraphic() const override { return true; }
QImage getLegendGraphic( double scale = 0, bool forceRefresh = false, const QgsRectangle *visibleExtent = nullptr ) override;
@@ -695,7 +695,7 @@ int QgsPostgresRasterProvider::bandCount() const
return mBandCount;
}

QgsRasterInterface *QgsPostgresRasterProvider::clone() const
QgsPostgresRasterProvider *QgsPostgresRasterProvider::clone() const
{
QgsDataProvider::ProviderOptions options;
options.transformContext = transformContext();
@@ -55,7 +55,7 @@ class QgsPostgresRasterProvider : public QgsRasterDataProvider
// QgsRasterInterface interface
virtual Qgis::DataType dataType( int bandNo ) const override;
virtual int bandCount() const override;
virtual QgsRasterInterface *clone() const override;
virtual QgsPostgresRasterProvider *clone() const override;
virtual Qgis::DataType sourceDataType( int bandNo ) const override;
virtual int xBlockSize() const override;
virtual int yBlockSize() const override;

0 comments on commit 2997099

Please sign in to comment.
You can’t perform that action at this time.