|
QGIS API Documentation
2.6.0-Brighton
|
Raster identify results container. More...
#include <qgsrasteridentifyresult.h>
Public Member Functions | |
| QgsRasterIdentifyResult () | |
| QgsRasterIdentifyResult (QgsRaster::IdentifyFormat theFormat, QMap< int, QVariant > theResults) | |
| Constructor. | |
| QgsRasterIdentifyResult (QgsError theError) | |
| Constructor. | |
| virtual | ~QgsRasterIdentifyResult () |
| bool | isValid () const |
| Returns true if valid. | |
| QgsRaster::IdentifyFormat | format () const |
| Get results format. | |
| QMap< int, QVariant > | results () const |
| Get results. | |
| void | setParams (const QMap< QString, QVariant > &theParams) |
| Set map of optional parameters. | |
| QMap< QString, QVariant > | params () const |
| Get map of optional parameters. | |
| QgsError | error () const |
| Get error. | |
| void | setError (const QgsError &theError) |
| Set error. | |
Raster identify results container.
| QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | ) |
| QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | QgsRaster::IdentifyFormat | theFormat, |
| QMap< int, QVariant > | theResults | ||
| ) |
Constructor.
Creates valid result.
| theFormat | the result format |
| theResults | the results |
| QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | QgsError | theError | ) |
Constructor.
Creates invalid result with error.
| theError | the error |
|
virtual |
|
inline |
Get error.
|
inline |
Get results format.
|
inline |
Returns true if valid.
|
inline |
Get map of optional parameters.
|
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).
|
inline |
Set error.
|
inline |
Set map of optional parameters.
1.8.1.2