QGIS API Documentation
3.0.2-Girona (307d082)
|
Raster identify results container. More...
#include <qgsrasteridentifyresult.h>
Public Member Functions | |
QgsRasterIdentifyResult ()=default | |
Constructor for QgsRasterIdentifyResult. More... | |
QgsRasterIdentifyResult (QgsRaster::IdentifyFormat format, const QMap< int, QVariant > &results) | |
Constructor. More... | |
QgsRasterIdentifyResult (const QgsError &error) | |
Constructor. More... | |
virtual | ~QgsRasterIdentifyResult ()=default |
QgsError | error () const |
Get error. More... | |
QgsRaster::IdentifyFormat | format () const |
Get results format. More... | |
bool | isValid () const |
Returns true if valid. More... | |
QMap< QString, QVariant > | params () const |
Get map of optional parameters. More... | |
QMap< int, QVariant > | results () const |
Get results. More... | |
void | setError (const QgsError &error) |
Set error. More... | |
void | setParams (const QMap< QString, QVariant > ¶ms) |
Set map of optional parameters. More... | |
Raster identify results container.
Definition at line 30 of file qgsrasteridentifyresult.h.
|
default |
Constructor for QgsRasterIdentifyResult.
QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | QgsRaster::IdentifyFormat | format, |
const QMap< int, QVariant > & | results | ||
) |
Constructor.
Creates valid result.
format | the result format |
results | the results |
Definition at line 25 of file qgsrasteridentifyresult.cpp.
QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | const QgsError & | error | ) |
Constructor.
Creates invalid result with error.
error | the error |
Definition at line 32 of file qgsrasteridentifyresult.cpp.
|
virtualdefault |
|
inline |
Get error.
Definition at line 75 of file qgsrasteridentifyresult.h.
|
inline |
Get results format.
Definition at line 58 of file qgsrasteridentifyresult.h.
|
inline |
Returns true if valid.
Definition at line 55 of file qgsrasteridentifyresult.h.
|
inline |
Get map of optional parameters.
Definition at line 72 of file qgsrasteridentifyresult.h.
|
inline |
Get results.
Results are different for each format: QgsRaster::IdentifyFormatValue: map of values for each band, keys are band numbers (from 1). QgsRaster::IdentifyFormatFeature: map of QgsRasterFeatureList for each sublayer (WMS) QgsRaster::IdentifyFormatHtml: map of HTML strings for each sublayer (WMS).
Definition at line 66 of file qgsrasteridentifyresult.h.
|
inline |
Set error.
Definition at line 78 of file qgsrasteridentifyresult.h.
|
inline |
Set map of optional parameters.
Definition at line 69 of file qgsrasteridentifyresult.h.