Subgroup: Raster
Class: QgsRasterIdentifyResult¶
-
class
qgis.core.
QgsRasterIdentifyResult
¶ Bases:
sip.wrapper
Constructor for QgsRasterIdentifyResult.
- QgsRasterIdentifyResult(format: QgsRaster.IdentifyFormat, results: Dict[int, Any])
- Constructor. Creates valid result.
Parameters: - format – the result format
- results – the results
- QgsRasterIdentifyResult(error: QgsError)
- Constructor. Creates invalid result with error.
Parameters: error – the error QgsRasterIdentifyResult(QgsRasterIdentifyResult)
Raster identify results container.
-
error
(self) → QgsError¶ Get error
-
format
(self) → QgsRaster.IdentifyFormat¶ Get results format
-
isValid
(self) → bool¶ Returns true if valid
-
params
(self) → Dict[str, Any]¶ Get map of optional parameters
-
results
(self) → Dict[int, Any]¶ 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).
-
setError
(self, error: QgsError)¶ Set error
-
setParams
(self, params: Dict[str, Any])¶ Set map of optional parameters