|
QGIS API Documentation
master-3f58142
|
Base class for raster data providers. More...
#include <qgsrasterdataprovider.h>
Inheritance diagram for QgsRasterDataProvider:
Collaboration diagram for QgsRasterDataProvider:Signals | |
| void | progress (int theType, double theProgress, QString theMessage) |
| Emit a signal to notify of the progress event. | |
| void | progressUpdate (int theProgress) |
Public Member Functions | |
| QgsRasterDataProvider () | |
| QgsRasterDataProvider (const QString &uri) | |
| virtual | ~QgsRasterDataProvider () |
| virtual QgsRasterBlock * | block (int theBandNo, const QgsRectangle &theExtent, int theWidth, int theHeight) |
| Read block of data using given extent and size. | |
| virtual QList< QgsRasterPyramid > | buildPyramidList (QList< int > overviewList=QList< int >()) |
| Accessor for ths raster layers pyramid list. | |
| virtual QString | buildPyramids (const QList< QgsRasterPyramid > &thePyramidList, const QString &theResamplingMethod="NEAREST", QgsRaster::RasterPyramidsFormat theFormat=QgsRaster::PyramidsGTiff, const QStringList &theConfigOptions=QStringList()) |
| Create pyramid overviews. | |
| virtual QgsRasterInterface * | clone () const =0 |
| Clone itself, create deep copy. | |
| virtual int | colorInterpretation (int theBandNo) const |
| Returns data type for the band specified by number. | |
| virtual QString | colorInterpretationName (int theBandNo) const |
| QString | colorName (int colorInterpretation) const |
| virtual QList < QgsColorRampShader::ColorRampItem > | colorTable (int bandNo) const |
| virtual QDateTime | dataTimestamp () const |
| Current time stamp of data source. | |
| virtual QGis::DataType | dataType (int bandNo) const =0 |
| Returns data type for the band specified by number. | |
| int | dpi () const |
| Returns the dpi of the output device. | |
| virtual QImage * | draw (const QgsRectangle &viewExtent, int pixelWidth, int pixelHeight)=0 |
| Renders the layer as an image. | |
| virtual QgsRectangle | extent ()=0 |
| Get the extent of the data source. | |
| bool | hasPyramids () |
| Returns true if raster has at least one populated histogram. | |
| virtual QgsRasterIdentifyResult | identify (const QgsPoint &thePoint, QgsRaster::IdentifyFormat theFormat, const QgsRectangle &theExtent=QgsRectangle(), int theWidth=0, int theHeight=0) |
| Identify raster value(s) found on the point position. | |
| virtual QString | lastError ()=0 |
| Returns the verbose error text for the last error in this provider. | |
| virtual QString | lastErrorFormat () |
| Returns the format of the error text for the last error in this provider. | |
| virtual QString | lastErrorTitle ()=0 |
| Returns the caption error text for the last error in this provider. | |
| virtual QString | metadata ()=0 |
| Get metadata in a format suitable for feeding directly into a subset of the GUI raster properties "Metadata" tab. | |
| virtual bool | reload () |
| Reload data (data could change) | |
| virtual bool | remove () |
| Returns the formats supported by create() | |
| void | setDpi (int dpi) |
| Sets the output device resolution. | |
| bool | setInput (QgsRasterInterface *input) |
| Set input. | |
| virtual bool | setNoDataValue (int bandNo, double noDataValue) |
| Set no data value on created dataset. | |
| virtual void | setUserNoDataValue (int bandNo, QgsRasterRangeList noData) |
| virtual void | setUseSrcNoDataValue (int bandNo, bool use) |
| Set source nodata value usage. | |
| virtual QGis::DataType | srcDataType (int bandNo) const =0 |
| Returns source data type for the band specified by number, source data type may be shorter than dataType. | |
| virtual bool | srcHasNoDataValue (int bandNo) const |
| virtual double | srcNoDataValue (int bandNo) const |
| Value representing no data value. | |
| virtual QStringList | subLayers () const |
| Returns the sublayers of this layer - useful for providers that manage their own layers, such as WMS. | |
| virtual QDateTime | timestamp () const |
| Time stamp of data source in the moment when data/metadata were loaded by provider. | |
| virtual QgsRasterRangeList | userNoDataValues (int bandNo) const |
| Get list of user no data value ranges. | |
| virtual bool | useSrcNoDataValue (int bandNo) const |
| Get source nodata value usage. | |
| virtual QString | validateCreationOptions (const QStringList &createOptions, QString format) |
| Validates creation options for a specific dataset and destination format. | |
| virtual QString | validatePyramidsConfigOptions (QgsRaster::RasterPyramidsFormat pyramidsFormat, const QStringList &theConfigOptions, const QString &fileFormat) |
| Validates pyramid creation options for a specific dataset and destination format. | |
| virtual bool | write (void *data, int band, int width, int height, int xOffset, int yOffset) |
| Writes into the provider datasource. | |
Static Public Member Functions | |
| static QgsRasterDataProvider * | create (const QString &providerKey, const QString &uri, const QString &format, int nBands, QGis::DataType type, int width, int height, double *geoTransform, const QgsCoordinateReferenceSystem &crs, QStringList createOptions=QStringList()) |
| Creates a new dataset with mDataSourceURI. | |
| static QgsRaster::IdentifyFormat | identifyFormatFromName (QString formatName) |
| static QString | identifyFormatLabel (QgsRaster::IdentifyFormat format) |
| static QString | identifyFormatName (QgsRaster::IdentifyFormat format) |
| static Capability | identifyFormatToCapability (QgsRaster::IdentifyFormat format) |
| static QList< QPair< QString, QString > > | pyramidResamplingMethods (QString providerKey) |
| Returns a list of pyramid resampling method name and label pairs for given provider. | |
Protected Member Functions | |
| virtual void | readBlock (int bandNo, int xBlock, int yBlock, void *data) |
| Read block of data. | |
| virtual void | readBlock (int bandNo, QgsRectangle const &viewExtent, int width, int height, void *data) |
| Read block of data using give extent and size. | |
| bool | userNoDataValuesContains (int bandNo, double value) const |
| Returns true if user no data contains value. | |
Static Protected Member Functions | |
| static QStringList | cStringList2Q_ (char **stringList) |
| static void | initPyramidResamplingDefs () |
| static QString | makeTableCell (const QString &value) |
| static QString | makeTableCells (const QStringList &values) |
Protected Attributes | |
| int | mDpi |
| Dots per inch. | |
| QgsRectangle | mExtent |
| QList< bool > | mSrcHasNoDataValue |
| Source no data value exists. | |
| QList< double > | mSrcNoDataValue |
| Source no data value is available and is set to be used or internal no data is available. | |
| QList< QgsRasterRangeList > | mUserNoDataValue |
| List of lists of user defined additional no data values for each band, indexed from 0. | |
| QList< bool > | mUseSrcNoDataValue |
| Use source nodata value. | |
Static Protected Attributes | |
| static QStringList | mPyramidResamplingListGdal |
| static QgsStringMap | mPyramidResamplingMapGdal |
Base class for raster data providers.
Definition at line 52 of file qgsrasterdataprovider.h.
Definition at line 212 of file qgsrasterdataprovider.cpp.
| QgsRasterDataProvider::QgsRasterDataProvider | ( | const QString & | uri | ) |
Definition at line 218 of file qgsrasterdataprovider.cpp.
| virtual QgsRasterDataProvider::~QgsRasterDataProvider | ( | ) | [inline, virtual] |
Definition at line 61 of file qgsrasterdataprovider.h.
| QgsRasterBlock * QgsRasterDataProvider::block | ( | int | theBandNo, |
| const QgsRectangle & | theExtent, | ||
| int | theWidth, | ||
| int | theHeight | ||
| ) | [virtual] |
Read block of data using given extent and size.
Implements QgsRasterInterface.
Definition at line 46 of file qgsrasterdataprovider.cpp.
References QgsRasterBlock::applyNoDataValues(), QgsRasterBlock::bits(), QgsRasterInterface::capabilities(), dataType(), QgsRasterInterface::dataTypeSize(), extent(), QgsRectangle::height(), QgsRectangle::intersect(), QgsRasterBlock::isEmpty(), QgsRectangle::isEmpty(), QgsDebugMsg, qgsDoubleNear(), readBlock(), QgsRasterBlock::setIsNoData(), QgsRectangle::setXMaximum(), QgsRectangle::setXMinimum(), QgsRectangle::setYMaximum(), QgsRectangle::setYMinimum(), QgsRasterInterface::Size, srcHasNoDataValue(), srcNoDataValue(), QgsRectangle::toString(), userNoDataValues(), useSrcNoDataValue(), QgsRectangle::width(), QgsRectangle::xMaximum(), QgsRectangle::xMinimum(), QgsRasterInterface::xSize(), QgsRectangle::yMaximum(), QgsRectangle::yMinimum(), and QgsRasterInterface::ySize().
Referenced by identify(), and QgsRasterChecker::runTest().
| virtual QList<QgsRasterPyramid> QgsRasterDataProvider::buildPyramidList | ( | QList< int > | overviewList = QList<int>() | ) | [inline, virtual] |
Accessor for ths raster layers pyramid list.
| overviewList | used to construct the pyramid list (optional), when empty the list is defined by the provider. A pyramid list defines the POTENTIAL pyramids that can be in a raster. To know which of the pyramid layers ACTUALLY exists you need to look at the existsFlag member in each struct stored in the list. |
Definition at line 207 of file qgsrasterdataprovider.h.
Referenced by QgsRasterFileWriter::buildPyramids(), hasPyramids(), and QgsRasterLayerSaveAsDialog::populatePyramidsLevels().
| virtual QString QgsRasterDataProvider::buildPyramids | ( | const QList< QgsRasterPyramid > & | thePyramidList, |
| const QString & | theResamplingMethod = "NEAREST", |
||
| QgsRaster::RasterPyramidsFormat | theFormat = QgsRaster::PyramidsGTiff, |
||
| const QStringList & | theConfigOptions = QStringList() |
||
| ) | [inline, virtual] |
Create pyramid overviews.
Definition at line 190 of file qgsrasterdataprovider.h.
Referenced by QgsRasterFileWriter::buildPyramids().
| virtual QgsRasterInterface* QgsRasterDataProvider::clone | ( | ) | const [pure virtual] |
Clone itself, create deep copy.
Implements QgsRasterInterface.
| virtual int QgsRasterDataProvider::colorInterpretation | ( | int | theBandNo | ) | const [inline, virtual] |
Returns data type for the band specified by number.
Definition at line 83 of file qgsrasterdataprovider.h.
References QgsRaster::UndefinedColorInterpretation.
Referenced by QgsRasterLayer::paletteAsPixmap(), and QgsRasterLayer::setDataProvider().
| virtual QString QgsRasterDataProvider::colorInterpretationName | ( | int | theBandNo | ) | const [inline, virtual] |
Definition at line 152 of file qgsrasterdataprovider.h.
Referenced by QgsRasterRendererWidget::displayBandName().
| QString QgsRasterDataProvider::colorName | ( | int | colorInterpretation | ) | const [inline] |
Definition at line 89 of file qgsrasterdataprovider.h.
References QgsRaster::AlphaBand, QgsRaster::BlackBand, QgsRaster::BlueBand, QgsRaster::CyanBand, QgsRaster::GrayIndex, QgsRaster::GreenBand, QgsRaster::HueBand, QgsRaster::LightnessBand, QgsRaster::MagentaBand, QgsRaster::PaletteIndex, QgsRaster::RedBand, QgsRaster::SaturationBand, QgsRaster::UndefinedColorInterpretation, QgsRaster::YCbCr_CbBand, QgsRaster::YCbCr_CrBand, QgsRaster::YCbCr_YBand, and QgsRaster::YellowBand.
| virtual QList<QgsColorRampShader::ColorRampItem> QgsRasterDataProvider::colorTable | ( | int | bandNo | ) | const [inline, virtual] |
Definition at line 179 of file qgsrasterdataprovider.h.
Referenced by QgsRasterRendererRegistry::defaultRendererForDrawingStyle(), QgsSingleBandPseudoColorRendererWidget::on_mLoadFromBandButton_clicked(), QgsRasterLayer::paletteAsPixmap(), QgsRasterLayer::setDataProvider(), and QgsPalettedRendererWidget::setFromRenderer().
| QgsRasterDataProvider * QgsRasterDataProvider::create | ( | const QString & | providerKey, |
| const QString & | uri, | ||
| const QString & | format, | ||
| int | nBands, | ||
| QGis::DataType | type, | ||
| int | width, | ||
| int | height, | ||
| double * | geoTransform, | ||
| const QgsCoordinateReferenceSystem & | crs, | ||
| QStringList | createOptions = QStringList() |
||
| ) | [static] |
Creates a new dataset with mDataSourceURI.
Definition at line 425 of file qgsrasterdataprovider.cpp.
References cast_to_fptr, QgsProviderRegistry::function(), QgsProviderRegistry::instance(), and QgsDebugMsg.
Referenced by QgsRasterFileWriter::createPartProvider(), and QgsRasterFileWriter::initOutput().
| QStringList QgsRasterDataProvider::cStringList2Q_ | ( | char ** | stringList | ) | [static, protected] |
Definition at line 231 of file qgsrasterdataprovider.cpp.
| virtual QDateTime QgsRasterDataProvider::dataTimestamp | ( | ) | const [inline, virtual] |
Current time stamp of data source.
Reimplemented from QgsDataProvider.
Definition at line 285 of file qgsrasterdataprovider.h.
Referenced by QgsRasterLayer::update().
| virtual QGis::DataType QgsRasterDataProvider::dataType | ( | int | bandNo | ) | const [pure virtual] |
Returns data type for the band specified by number.
Implements QgsRasterInterface.
Referenced by block(), QgsRasterRendererRegistry::defaultRendererForDrawingStyle(), QgsRasterHistogramWidget::histoAction(), QgsSingleBandGrayRendererWidget::renderer(), QgsRasterChecker::runTest(), QgsRasterLayer::setContrastEnhancement(), QgsMultiBandColorRendererWidget::setCustomMinMaxValues(), QgsRasterLayer::setDataProvider(), and QgsRasterFileWriter::writeDataRaster().
| int QgsRasterDataProvider::dpi | ( | ) | const [inline] |
Returns the dpi of the output device.
Definition at line 275 of file qgsrasterdataprovider.h.
| virtual QImage* QgsRasterDataProvider::draw | ( | const QgsRectangle & | viewExtent, |
| int | pixelWidth, | ||
| int | pixelHeight | ||
| ) | [pure virtual] |
Renders the layer as an image.
| virtual QgsRectangle QgsRasterDataProvider::extent | ( | ) | [pure virtual] |
Get the extent of the data source.
Implements QgsDataProvider.
Referenced by QgsRasterResampleFilter::block(), block(), QgsRasterProjector::calc(), QgsRasterLayerSaveAsDialog::crsChanged(), identify(), QgsRasterLayer::metadata(), QgsRasterLayerSaveAsDialog::on_mOriginalExtentButton_clicked(), QgsRasterLayer::previewAsPixmap(), QgsRasterLayerSaveAsDialog::QgsRasterLayerSaveAsDialog(), QgsRasterLayer::rasterUnitsPerPixelX(), QgsRasterLayer::rasterUnitsPerPixelY(), QgsRasterChecker::runTest(), QgsRasterLayer::setDataProvider(), QgsRasterLayerSaveAsDialog::setOriginalResolution(), and QgsRasterFileWriter::writeDataRaster().
| bool QgsRasterDataProvider::hasPyramids | ( | ) |
Returns true if raster has at least one populated histogram.
Definition at line 367 of file qgsrasterdataprovider.cpp.
References buildPyramidList().
| QgsRasterIdentifyResult QgsRasterDataProvider::identify | ( | const QgsPoint & | thePoint, |
| QgsRaster::IdentifyFormat | theFormat, | ||
| const QgsRectangle & | theExtent = QgsRectangle(), |
||
| int | theWidth = 0, |
||
| int | theHeight = 0 |
||
| ) | [virtual] |
Identify raster value(s) found on the point position.
The context parameters theExtent, theWidth and theHeigh are important to identify on the same zoom level as a displayed map and to do effective caching (WCS). If context params are not specified the highest resolution is used. capabilities() may be used to test if format is supported by provider. Values are set to 'no data' or empty string if point is outside data source extent.
| thePoint | coordinates in data source CRS |
| theFormat | result format |
| theExtent | context extent |
| theWidth | context width |
| theHeight | context height |
Definition at line 274 of file qgsrasterdataprovider.cpp.
References QgsRasterInterface::bandCount(), block(), QgsRasterInterface::capabilities(), ERR, extent(), QgsRectangle::height(), QgsRaster::IdentifyFormatValue, QgsRasterInterface::IdentifyValue, QgsRectangle::isEmpty(), QgsDebugMsg, QgsRasterInterface::Size, tr, QgsRasterBlock::value(), QgsRectangle::width(), QgsPoint::x(), QgsRectangle::xMinimum(), QgsRasterInterface::xSize(), QgsPoint::y(), QgsRectangle::yMaximum(), and QgsRasterInterface::ySize().
Referenced by QgsMapToolIdentify::identifyRasterLayer().
| QgsRaster::IdentifyFormat QgsRasterDataProvider::identifyFormatFromName | ( | QString | formatName | ) | [static] |
Definition at line 478 of file qgsrasterdataprovider.cpp.
References QgsRaster::IdentifyFormatFeature, QgsRaster::IdentifyFormatHtml, QgsRaster::IdentifyFormatText, QgsRaster::IdentifyFormatUndefined, and QgsRaster::IdentifyFormatValue.
Referenced by QgsMapToolIdentify::identifyRasterLayer().
| QString QgsRasterDataProvider::identifyFormatLabel | ( | QgsRaster::IdentifyFormat | format | ) | [static] |
Definition at line 461 of file qgsrasterdataprovider.cpp.
References QgsRaster::IdentifyFormatFeature, QgsRaster::IdentifyFormatHtml, QgsRaster::IdentifyFormatText, QgsRaster::IdentifyFormatValue, and tr.
| QString QgsRasterDataProvider::identifyFormatName | ( | QgsRaster::IdentifyFormat | format | ) | [static] |
Definition at line 444 of file qgsrasterdataprovider.cpp.
References QgsRaster::IdentifyFormatFeature, QgsRaster::IdentifyFormatHtml, QgsRaster::IdentifyFormatText, and QgsRaster::IdentifyFormatValue.
Referenced by QgsRasterLayer::setDataProvider().
| QgsRasterInterface::Capability QgsRasterDataProvider::identifyFormatToCapability | ( | QgsRaster::IdentifyFormat | format | ) | [static] |
Definition at line 487 of file qgsrasterdataprovider.cpp.
References QgsRasterInterface::IdentifyFeature, QgsRaster::IdentifyFormatFeature, QgsRaster::IdentifyFormatHtml, QgsRaster::IdentifyFormatText, QgsRaster::IdentifyFormatValue, QgsRasterInterface::IdentifyHtml, QgsRasterInterface::IdentifyText, QgsRasterInterface::IdentifyValue, and QgsRasterInterface::NoCapabilities.
Referenced by QgsMapToolIdentify::identifyRasterLayer().
| static void QgsRasterDataProvider::initPyramidResamplingDefs | ( | ) | [static, protected] |
| virtual QString QgsRasterDataProvider::lastError | ( | ) | [pure virtual] |
Returns the verbose error text for the last error in this provider.
If an operation returns 0 (e.g. draw()), this function returns the text of the error associated with the failure. Interactive users of this provider can then, for example, call a QMessageBox to display the contents.
| QString QgsRasterDataProvider::lastErrorFormat | ( | ) | [virtual] |
Returns the format of the error text for the last error in this provider.
Definition at line 339 of file qgsrasterdataprovider.cpp.
| virtual QString QgsRasterDataProvider::lastErrorTitle | ( | ) | [pure virtual] |
Returns the caption error text for the last error in this provider.
If an operation returns 0 (e.g. draw()), this function returns the text of the error associated with the failure. Interactive users of this provider can then, for example, call a QMessageBox to display the contents.
| QString QgsRasterDataProvider::makeTableCell | ( | const QString & | value | ) | [static, protected] |
Definition at line 245 of file qgsrasterdataprovider.cpp.
Referenced by makeTableCells().
| QString QgsRasterDataProvider::makeTableCells | ( | const QStringList & | values | ) | [static, protected] |
Definition at line 251 of file qgsrasterdataprovider.cpp.
References makeTableCell().
| QString QgsRasterDataProvider::metadata | ( | ) | [pure virtual] |
Get metadata in a format suitable for feeding directly into a subset of the GUI raster properties "Metadata" tab.
Definition at line 267 of file qgsrasterdataprovider.cpp.
Referenced by QgsRasterLayer::metadata().
| void QgsRasterDataProvider::progress | ( | int | theType, |
| double | theProgress, | ||
| QString | theMessage | ||
| ) | [signal] |
Emit a signal to notify of the progress event.
Emitted theProgress is in percents (0.0-100.0)
| void QgsRasterDataProvider::progressUpdate | ( | int | theProgress | ) | [signal] |
| QList< QPair< QString, QString > > QgsRasterDataProvider::pyramidResamplingMethods | ( | QString | providerKey | ) | [static] |
Returns a list of pyramid resampling method name and label pairs for given provider.
Definition at line 345 of file qgsrasterdataprovider.cpp.
References cast_to_fptr, QgsProviderRegistry::function(), QgsProviderRegistry::instance(), and QgsDebugMsg.
Referenced by QgsRasterPyramidsOptionsWidget::updateUi().
| virtual void QgsRasterDataProvider::readBlock | ( | int | bandNo, |
| int | xBlock, | ||
| int | yBlock, | ||
| void * | data | ||
| ) | [inline, protected, virtual] |
Read block of data.
Definition at line 352 of file qgsrasterdataprovider.h.
Referenced by block().
| virtual void QgsRasterDataProvider::readBlock | ( | int | bandNo, |
| QgsRectangle const & | viewExtent, | ||
| int | width, | ||
| int | height, | ||
| void * | data | ||
| ) | [inline, protected, virtual] |
Read block of data using give extent and size.
Definition at line 357 of file qgsrasterdataprovider.h.
| virtual bool QgsRasterDataProvider::reload | ( | ) | [inline, virtual] |
Reload data (data could change)
Definition at line 150 of file qgsrasterdataprovider.h.
| virtual bool QgsRasterDataProvider::remove | ( | ) | [inline, virtual] |
Returns the formats supported by create()
Remove dataset
Definition at line 320 of file qgsrasterdataprovider.h.
Referenced by QgsRasterFileWriter::writeDataRaster().
| void QgsRasterDataProvider::setDpi | ( | int | dpi | ) | [inline] |
Sets the output device resolution.
Definition at line 279 of file qgsrasterdataprovider.h.
Referenced by QgsRasterLayer::draw().
| bool QgsRasterDataProvider::setInput | ( | QgsRasterInterface * | input | ) | [inline, virtual] |
Set input.
Returns true if set correctly, false if cannot use that input
Reimplemented from QgsRasterInterface.
Definition at line 66 of file qgsrasterdataprovider.h.
| virtual bool QgsRasterDataProvider::setNoDataValue | ( | int | bandNo, |
| double | noDataValue | ||
| ) | [inline, virtual] |
Set no data value on created dataset.
| bandNo | band number |
| noDataValue | no data value |
Definition at line 313 of file qgsrasterdataprovider.h.
Referenced by QgsRasterFileWriter::writeDataRaster().
| void QgsRasterDataProvider::setUserNoDataValue | ( | int | bandNo, |
| QgsRasterRangeList | noData | ||
| ) | [virtual] |
Definition at line 387 of file qgsrasterdataprovider.cpp.
References QgsRasterInterface::mHistograms, QgsRasterInterface::mStatistics, mUserNoDataValue, and QgsDebugMsg.
Referenced by QgsRasterLayer::readXml().
| void QgsRasterDataProvider::setUseSrcNoDataValue | ( | int | bandNo, |
| bool | use | ||
| ) | [virtual] |
Set source nodata value usage.
Definition at line 34 of file qgsrasterdataprovider.cpp.
References mUseSrcNoDataValue.
Referenced by QgsRasterLayer::readXml().
| virtual QGis::DataType QgsRasterDataProvider::srcDataType | ( | int | bandNo | ) | const [pure virtual] |
Returns source data type for the band specified by number, source data type may be shorter than dataType.
Reimplemented from QgsRasterInterface.
Referenced by QgsRasterLayerSaveAsDialog::addNoDataRow(), QgsRasterLayer::metadata(), QgsRasterHistogramWidget::refreshHistogram(), QgsRasterChecker::runTest(), and QgsRasterFileWriter::writeDataRaster().
| virtual bool QgsRasterDataProvider::srcHasNoDataValue | ( | int | bandNo | ) | const [inline, virtual] |
Definition at line 163 of file qgsrasterdataprovider.h.
Referenced by block(), QgsRasterLayer::metadata(), and QgsRasterFileWriter::writeDataRaster().
| virtual double QgsRasterDataProvider::srcNoDataValue | ( | int | bandNo | ) | const [inline, virtual] |
Value representing no data value.
Definition at line 172 of file qgsrasterdataprovider.h.
Referenced by block(), QgsRasterLayer::metadata(), and QgsRasterFileWriter::writeDataRaster().
| virtual QStringList QgsRasterDataProvider::subLayers | ( | ) | const [inline, virtual] |
Returns the sublayers of this layer - useful for providers that manage their own layers, such as WMS.
Reimplemented from QgsDataProvider.
Definition at line 184 of file qgsrasterdataprovider.h.
Referenced by QgsRasterLayer::subLayers().
| virtual QDateTime QgsRasterDataProvider::timestamp | ( | ) | const [inline, virtual] |
Time stamp of data source in the moment when data/metadata were loaded by provider.
Reimplemented from QgsDataProvider.
Definition at line 282 of file qgsrasterdataprovider.h.
References QgsDataProvider::mTimestamp.
Referenced by QgsRasterLayer::update().
| virtual QgsRasterRangeList QgsRasterDataProvider::userNoDataValues | ( | int | bandNo | ) | const [inline, virtual] |
Get list of user no data value ranges.
Definition at line 177 of file qgsrasterdataprovider.h.
Referenced by block(), and QgsRasterLayer::writeXml().
| bool QgsRasterDataProvider::userNoDataValuesContains | ( | int | bandNo, |
| double | value | ||
| ) | const [protected] |
Returns true if user no data contains value.
Definition at line 504 of file qgsrasterdataprovider.cpp.
References QgsRasterRange::contains(), and mUserNoDataValue.
| virtual bool QgsRasterDataProvider::useSrcNoDataValue | ( | int | bandNo | ) | const [inline, virtual] |
Get source nodata value usage.
Definition at line 166 of file qgsrasterdataprovider.h.
Referenced by block(), and QgsRasterLayer::writeXml().
| virtual QString QgsRasterDataProvider::validateCreationOptions | ( | const QStringList & | createOptions, |
| QString | format | ||
| ) | [inline, virtual] |
Validates creation options for a specific dataset and destination format.
Definition at line 329 of file qgsrasterdataprovider.h.
| virtual QString QgsRasterDataProvider::validatePyramidsConfigOptions | ( | QgsRaster::RasterPyramidsFormat | pyramidsFormat, |
| const QStringList & | theConfigOptions, | ||
| const QString & | fileFormat | ||
| ) | [inline, virtual] |
Validates pyramid creation options for a specific dataset and destination format.
Definition at line 334 of file qgsrasterdataprovider.h.
| virtual bool QgsRasterDataProvider::write | ( | void * | data, |
| int | band, | ||
| int | width, | ||
| int | height, | ||
| int | xOffset, | ||
| int | yOffset | ||
| ) | [inline, virtual] |
Writes into the provider datasource.
Definition at line 289 of file qgsrasterdataprovider.h.
Referenced by QgsRasterFileWriter::writeDataRaster(), and QgsRasterFileWriter::writeImageRaster().
int QgsRasterDataProvider::mDpi [protected] |
Dots per inch.
Extended WMS (e.g. QGIS mapserver) support DPI dependent output and therefore are suited for printing. A value of -1 means it has not been set
Definition at line 371 of file qgsrasterdataprovider.h.
QgsRectangle QgsRasterDataProvider::mExtent [protected] |
Definition at line 392 of file qgsrasterdataprovider.h.
QStringList QgsRasterDataProvider::mPyramidResamplingListGdal [static, protected] |
Definition at line 395 of file qgsrasterdataprovider.h.
QgsStringMap QgsRasterDataProvider::mPyramidResamplingMapGdal [static, protected] |
Definition at line 396 of file qgsrasterdataprovider.h.
QList<bool> QgsRasterDataProvider::mSrcHasNoDataValue [protected] |
Source no data value exists.
Definition at line 381 of file qgsrasterdataprovider.h.
QList<double> QgsRasterDataProvider::mSrcNoDataValue [protected] |
Source no data value is available and is set to be used or internal no data is available.
Used internally only Cell value representing original source no data. e.g. -9999, indexed from 0
Definition at line 378 of file qgsrasterdataprovider.h.
QList< QgsRasterRangeList > QgsRasterDataProvider::mUserNoDataValue [protected] |
List of lists of user defined additional no data values for each band, indexed from 0.
Definition at line 390 of file qgsrasterdataprovider.h.
Referenced by setUserNoDataValue(), and userNoDataValuesContains().
QList<bool> QgsRasterDataProvider::mUseSrcNoDataValue [protected] |
Use source nodata value.
User can disable usage of source nodata value as nodata. It may happen that a value is wrongly given by GDAL as nodata (e.g. 0) and it has to be treated as regular value.
Definition at line 386 of file qgsrasterdataprovider.h.
Referenced by setUseSrcNoDataValue().