|
| QgsRasterDataProvider () |
| Provider capabilities. More...
|
|
| QgsRasterDataProvider (const QString &uri, const QgsDataProvider::ProviderOptions &providerOptions=QgsDataProvider::ProviderOptions(), QgsDataProvider::ReadFlags flags=QgsDataProvider::ReadFlags()) |
| Constructor for QgsRasterDataProvider. More...
|
|
virtual double | bandOffset (int bandNo) const |
| Read band offset for raster value. More...
|
|
virtual double | bandScale (int bandNo) const |
| Read band scale for raster value. More...
|
|
QgsRasterBlock * | block (int bandNo, const QgsRectangle &boundingBox, int width, int height, QgsRasterBlockFeedback *feedback=nullptr) override |
| Read block of data using given extent and size. More...
|
|
virtual QList< QgsRasterPyramid > | buildPyramidList (const QList< int > &overviewList=QList< int >()) |
| Returns the raster layers pyramid list. More...
|
|
virtual QString | buildPyramids (const QList< QgsRasterPyramid > &pyramidList, const QString &resamplingMethod="NEAREST", QgsRaster::RasterPyramidsFormat format=QgsRaster::PyramidsGTiff, const QStringList &configOptions=QStringList(), QgsRasterBlockFeedback *feedback=nullptr) |
| Creates pyramid overviews. More...
|
|
QgsRasterDataProvider * | clone () const override=0 |
| Clone itself, create deep copy. More...
|
|
virtual int | colorInterpretation (int bandNo) const |
| Returns data type for the band specified by number. More...
|
|
QString | colorInterpretationName (int bandNo) const override |
| Returns the name of the color interpretation for the specified bandNumber. More...
|
|
QString | colorName (int colorInterpretation) const |
|
virtual QList< QgsColorRampShader::ColorRampItem > | colorTable (int bandNo) const |
|
QDateTime | dataTimestamp () const override |
| Current time stamp of data source. More...
|
|
Qgis::DataType | dataType (int bandNo) const override=0 |
| Returns data type for the band specified by number. More...
|
|
int | dpi () const |
| Returns the dpi of the output device. More...
|
|
virtual bool | enableProviderResampling (bool enable) |
| Enable or disable provider-level resampling. More...
|
|
QgsRectangle | extent () const override=0 |
| Returns the extent of the layer. More...
|
|
virtual QgsFields | fields () const |
| Returns the fields of the raster layer for data providers that expose them, the default implementation returns an empty list. More...
|
|
virtual QImage | getLegendGraphic (double scale=0, bool forceRefresh=false, const QgsRectangle *visibleExtent=nullptr) |
| Returns the legend rendered as pixmap. More...
|
|
virtual QgsImageFetcher * | getLegendGraphicFetcher (const QgsMapSettings *mapSettings) |
| Returns a new image downloader for the raster legend. More...
|
|
bool | hasPyramids () |
| Returns true if raster has at least one existing pyramid. More...
|
|
virtual QString | htmlMetadata ()=0 |
| Returns metadata in a format suitable for feeding directly into a subset of the GUI raster properties "Metadata" tab. More...
|
|
virtual QgsRasterIdentifyResult | identify (const QgsPointXY &point, QgsRaster::IdentifyFormat format, const QgsRectangle &boundingBox=QgsRectangle(), int width=0, int height=0, int dpi=96) |
| Identify raster value(s) found on the point position. More...
|
|
virtual bool | ignoreExtents () const |
| Returns true if the extents reported by the data provider are not reliable and it's possible that there is renderable content outside of these extents. More...
|
|
virtual bool | isEditable () const |
| Checks whether the provider is in editing mode, i.e. More...
|
|
bool | isProviderResamplingEnabled () const |
| Returns whether provider-level resampling is enabled. More...
|
|
virtual QString | lastError ()=0 |
| Returns the verbose error text for the last error in this provider. More...
|
|
virtual QString | lastErrorFormat () |
| Returns the format of the error text for the last error in this provider. More...
|
|
virtual QString | lastErrorTitle ()=0 |
| Returns the caption error text for the last error in this provider. More...
|
|
double | maxOversampling () const |
| Returns maximum oversampling factor for zoomed-out operations. More...
|
|
virtual QList< double > | nativeResolutions () const |
| Returns a list of native resolutions if available, i.e. More...
|
|
virtual QgsRasterDataProvider::ProviderCapabilities | providerCapabilities () const |
| Returns flags containing the supported capabilities of the data provider. More...
|
|
void | readXml (const QDomElement &filterElem) override |
| Sets base class members from xml. Usually called from create() methods of subclasses. More...
|
|
virtual bool | reload () |
| Reload data (data could change) More...
|
|
virtual bool | remove () |
| Remove dataset. More...
|
|
virtual double | sample (const QgsPointXY &point, int band, bool *ok=nullptr, const QgsRectangle &boundingBox=QgsRectangle(), int width=0, int height=0, int dpi=96) |
| Samples a raster value from the specified band found at the point position. More...
|
|
void | setDpi (int dpi) |
| Sets the output device resolution. More...
|
|
virtual bool | setEditable (bool enabled) |
| Turns on/off editing mode of the provider. More...
|
|
bool | setInput (QgsRasterInterface *input) override |
| Set input. More...
|
|
virtual bool | setMaxOversampling (double factor) |
| Sets maximum oversampling factor for zoomed-out operations. More...
|
|
virtual bool | setNoDataValue (int bandNo, double noDataValue) |
| Set no data value on created dataset. More...
|
|
virtual void | setUserNoDataValue (int bandNo, const QgsRasterRangeList &noData) |
|
virtual void | setUseSourceNoDataValue (int bandNo, bool use) |
| Sets the source nodata value usage. More...
|
|
virtual bool | setZoomedInResamplingMethod (ResamplingMethod method) |
| Set resampling method to apply for zoomed-in operations. More...
|
|
virtual bool | setZoomedOutResamplingMethod (ResamplingMethod method) |
| Set resampling method to apply for zoomed-out operations. More...
|
|
Qgis::DataType | sourceDataType (int bandNo) const override=0 |
| Returns source data type for the band specified by number, source data type may be shorter than dataType. More...
|
|
virtual bool | sourceHasNoDataValue (int bandNo) const |
| Returns true if source band has no data value. More...
|
|
virtual double | sourceNoDataValue (int bandNo) const |
| Value representing no data value. More...
|
|
virtual int | stepHeight () const |
| Step height for raster iterations. More...
|
|
virtual int | stepWidth () const |
| Step width for raster iterations. More...
|
|
QStringList | subLayers () const override |
| Returns the sublayers of this layer - useful for providers that manage their own layers, such as WMS. More...
|
|
virtual bool | supportsLegendGraphic () const |
| Returns whether the provider supplies a legend graphic. More...
|
|
const QgsRasterDataProviderTemporalCapabilities * | temporalCapabilities () const override |
| Returns the provider's temporal capabilities. More...
|
|
QgsRasterDataProviderTemporalCapabilities * | temporalCapabilities () override |
| Returns the provider's temporal capabilities. More...
|
|
QDateTime | timestamp () const override |
| Time stamp of data source in the moment when data/metadata were loaded by provider. More...
|
|
virtual QgsPoint | transformCoordinates (const QgsPoint &point, TransformType type) |
| Transforms coordinates between source image coordinate space [0..width]x[0..height] and layer coordinate space (georeferenced coordinates). More...
|
|
virtual QgsRasterRangeList | userNoDataValues (int bandNo) const |
| Returns a list of user no data value ranges. More...
|
|
virtual bool | useSourceNoDataValue (int bandNo) const |
| Returns the source nodata value usage. More...
|
|
virtual QString | validateCreationOptions (const QStringList &createOptions, const QString &format) |
| Validates creation options for a specific dataset and destination format. More...
|
|
virtual QString | validatePyramidsConfigOptions (QgsRaster::RasterPyramidsFormat pyramidsFormat, const QStringList &configOptions, const QString &fileFormat) |
| Validates pyramid creation options for a specific dataset and destination format. More...
|
|
virtual bool | write (void *data, int band, int width, int height, int xOffset, int yOffset) |
| Writes into the provider datasource. More...
|
|
bool | writeBlock (QgsRasterBlock *block, int band, int xOffset=0, int yOffset=0) |
| Writes pixel data from a raster block into the provider data source. More...
|
|
void | writeXml (QDomDocument &doc, QDomElement &parentElem) const override |
| Write base class members to xml. More...
|
|
ResamplingMethod | zoomedInResamplingMethod () const |
| Returns resampling method for zoomed-in operations. More...
|
|
ResamplingMethod | zoomedOutResamplingMethod () const |
| Returns resampling method for zoomed-out operations. More...
|
|
| QgsDataProvider (const QString &uri=QString(), const QgsDataProvider::ProviderOptions &providerOptions=QgsDataProvider::ProviderOptions(), QgsDataProvider::ReadFlags flags=QgsDataProvider::ReadFlags()) |
| Create a new dataprovider with the specified in the uri. More...
|
|
virtual QgsCoordinateReferenceSystem | crs () const =0 |
| Returns the coordinate system for the data source. More...
|
|
virtual QString | dataComment () const |
| Returns a short comment for the data that this provider is providing access to (e.g. More...
|
|
virtual QString | dataSourceUri (bool expandAuthConfig=false) const |
| Gets the data source specification. More...
|
|
virtual QDateTime | dataTimestamp () const |
| Current time stamp of data source. More...
|
|
virtual QString | description () const =0 |
| Returns description. More...
|
|
virtual bool | enterUpdateMode () |
| Enter update mode. More...
|
|
virtual QgsError | error () const |
| Gets current status error. More...
|
|
virtual QgsRectangle | extent () const =0 |
| Returns the extent of the layer. More...
|
|
virtual QString | fileRasterFilters () const |
| Returns raster file filter string. More...
|
|
virtual QString | fileVectorFilters () const |
| Returns vector file filter string. More...
|
|
virtual Qgis::DataProviderFlags | flags () const |
| Returns the generic data provider flags. More...
|
|
virtual void | invalidateConnections (const QString &connection) |
| Invalidate connections corresponding to specified name. More...
|
|
virtual bool | isValid () const =0 |
| Returns true if this is a valid layer. More...
|
|
virtual QgsLayerMetadata | layerMetadata () const |
| Returns layer metadata collected from the provider's source. More...
|
|
virtual bool | leaveUpdateMode () |
| Leave update mode. More...
|
|
virtual QString | name () const =0 |
| Returns a provider name. More...
|
|
QVariant | providerProperty (int property, const QVariant &defaultValue) const |
| Gets the current value of a certain provider property. More...
|
|
QVariant | providerProperty (ProviderProperty property, const QVariant &defaultValue=QVariant()) const |
| Gets the current value of a certain provider property. More...
|
|
virtual void | reloadData () |
| Reloads the data from the source for providers with data caches to synchronize, changes in the data source, feature counts and other specific actions. More...
|
|
virtual bool | renderInPreview (const QgsDataProvider::PreviewContext &context) |
| Returns whether the layer must be rendered in preview jobs. More...
|
|
virtual void | setDataSourceUri (const QString &uri) |
| Set the data source specification. More...
|
|
virtual void | setLayerOrder (const QStringList &layers) |
| Reorder the list of layer names to be rendered by this provider (in order from bottom to top) More...
|
|
virtual void | setListening (bool isListening) |
| Set whether the provider will listen to datasource notifications If set, the provider will issue notify signals. More...
|
|
void | setProviderProperty (int property, const QVariant &value) |
| Allows setting arbitrary properties on the provider. More...
|
|
void | setProviderProperty (ProviderProperty property, const QVariant &value) |
| Allows setting arbitrary properties on the provider. More...
|
|
virtual void | setSubLayerVisibility (const QString &name, bool vis) |
| Set the visibility of the given sublayer name. More...
|
|
virtual bool | setSubsetString (const QString &subset, bool updateFeatureCount=true) |
| Set the subset string used to create a subset of features in the layer. More...
|
|
virtual void | setTransformContext (const QgsCoordinateTransformContext &transformContext) |
| Sets data coordinate transform context to transformContext. More...
|
|
void | setUri (const QgsDataSourceUri &uri) |
| Set the data source specification. More...
|
|
virtual uint | subLayerCount () const |
| Returns the number of layers for the current data source. More...
|
|
virtual QStringList | subLayers () const |
| Sub-layers handled by this provider, in order from bottom to top. More...
|
|
virtual QStringList | subLayerStyles () const |
| Sub-layer styles for each sub-layer handled by this provider, in order from bottom to top. More...
|
|
virtual QString | subsetString () const |
| Returns the subset definition string (typically sql) currently in use by the layer and used by the provider to limit the feature set. More...
|
|
virtual bool | supportsSubsetString () const |
| Returns true if the provider supports setting of subset strings. More...
|
|
virtual QgsDataProviderTemporalCapabilities * | temporalCapabilities () |
| Returns the provider's temporal capabilities. More...
|
|
virtual const QgsDataProviderTemporalCapabilities * | temporalCapabilities () const |
| Returns the provider's temporal capabilities. More...
|
|
virtual QDateTime | timestamp () const |
| Time stamp of data source in the moment when data/metadata were loaded by provider. More...
|
|
QgsCoordinateTransformContext | transformContext () const |
| Returns data provider coordinate transform context. More...
|
|
virtual void | updateExtents () |
| Update the extents of the layer. More...
|
|
QgsDataSourceUri | uri () const |
| Gets the data source specification. More...
|
|
virtual bool | writeLayerMetadata (const QgsLayerMetadata &metadata) |
| Writes layer metadata to the underlying provider source. More...
|
|
| QgsRasterInterface (QgsRasterInterface *input=nullptr) |
|
virtual | ~QgsRasterInterface ()=default |
|
virtual int | bandCount () const =0 |
| Gets number of bands. More...
|
|
virtual QgsRasterBandStats | bandStatistics (int bandNo, int stats=QgsRasterBandStats::All, const QgsRectangle &extent=QgsRectangle(), int sampleSize=0, QgsRasterBlockFeedback *feedback=nullptr) |
| Returns the band statistics. More...
|
|
virtual QgsRasterBlock * | block (int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)=0 |
| Read block of data using given extent and size. More...
|
|
virtual int | capabilities () const |
| Returns a bitmask containing the supported capabilities. More...
|
|
QString | capabilitiesString () const |
| Returns the raster interface capabilities in friendly format. More...
|
|
virtual QgsRasterInterface * | clone () const =0 |
| Clone itself, create deep copy. More...
|
|
virtual QString | colorInterpretationName (int bandNumber) const |
| Returns the name of the color interpretation for the specified bandNumber. More...
|
|
virtual void | cumulativeCut (int bandNo, double lowerCount, double upperCount, double &lowerValue, double &upperValue, const QgsRectangle &extent=QgsRectangle(), int sampleSize=0) |
| Find values for cumulative pixel count cut. More...
|
|
virtual Qgis::DataType | dataType (int bandNo) const =0 |
| Returns data type for the band specified by number. More...
|
|
int | dataTypeSize (int bandNo) const |
| Returns the size (in bytes) for the data type for the specified band. More...
|
|
QString | displayBandName (int bandNumber) const |
| Generates a friendly, descriptive name for the specified bandNumber. More...
|
|
virtual QgsRectangle | extent () const |
| Gets the extent of the interface. More...
|
|
virtual QString | generateBandName (int bandNumber) const |
| helper function to create zero padded band names More...
|
|
virtual bool | hasHistogram (int bandNo, int binCount, double minimum=std::numeric_limits< double >::quiet_NaN(), double maximum=std::numeric_limits< double >::quiet_NaN(), const QgsRectangle &extent=QgsRectangle(), int sampleSize=0, bool includeOutOfRange=false) |
| Returns true if histogram is available (cached, already calculated) More...
|
|
virtual bool | hasStatistics (int bandNo, int stats=QgsRasterBandStats::All, const QgsRectangle &extent=QgsRectangle(), int sampleSize=0) |
| Returns true if histogram is available (cached, already calculated). More...
|
|
virtual QgsRasterHistogram | histogram (int bandNo, int binCount=0, double minimum=std::numeric_limits< double >::quiet_NaN(), double maximum=std::numeric_limits< double >::quiet_NaN(), const QgsRectangle &extent=QgsRectangle(), int sampleSize=0, bool includeOutOfRange=false, QgsRasterBlockFeedback *feedback=nullptr) |
| Returns a band histogram. More...
|
|
virtual QgsRasterInterface * | input () const |
| Current input. More...
|
|
virtual bool | on () const |
| Returns whether the interface is on or off. More...
|
|
virtual void | readXml (const QDomElement &filterElem) |
| Sets base class members from xml. Usually called from create() methods of subclasses. More...
|
|
virtual bool | setInput (QgsRasterInterface *input) |
| Set input. More...
|
|
virtual void | setOn (bool on) |
| Sets whether the interface is on or off. More...
|
|
virtual Qgis::DataType | sourceDataType (int bandNo) const |
| Returns source data type for the band specified by number, source data type may be shorter than dataType. More...
|
|
virtual QgsRasterInterface * | sourceInput () |
| Gets source / raw input, the first in pipe, usually provider. More...
|
|
virtual const QgsRasterInterface * | sourceInput () const |
| Gets source / raw input, the first in pipe, usually provider. More...
|
|
virtual void | writeXml (QDomDocument &doc, QDomElement &parentElem) const |
| Write base class members to xml. More...
|
|
virtual int | xBlockSize () const |
| Gets block size. More...
|
|
virtual int | xSize () const |
| Gets raster size. More...
|
|
virtual int | yBlockSize () const |
|
virtual int | ySize () const |
|