Class: QgsRasterIdentifyResult¶
Raster identify results container.
Methods
Returns the last error |
|
Returns the results format. |
|
Returns |
|
Gets map of optional parameters |
|
Returns the identify results. |
|
Sets the last error |
|
Sets map of optional parameters |
- class qgis.core.QgsRasterIdentifyResult[source]¶
Bases:
object
- __init__()
- __init__(format: Qgis.RasterIdentifyFormat, results: Dict[int, Any])
Constructor. Creates valid result.
- Parameters:
format (Qgis.RasterIdentifyFormat) – the result format
results (Dict[int, Any]) – the results
- __init__(error: QgsError)
Constructor. Creates invalid result with error.
- Parameters:
error (QgsError) – the error
- __init__(a0: QgsRasterIdentifyResult)
- Parameters:
- format(self) Qgis.RasterIdentifyFormat [source]¶
Returns the results format.
- Return type:
- params(self) Dict[str, Any] ¶
Gets map of optional parameters
- Return type:
Dict[str, Any]
- results(self) Dict[int, Any] ¶
Returns the identify results. Results are different for each format:
Qgis
.RasterIdentifyFormat.Value: a map of values for each band, where keys are band numbers (from 1).Qgis
.RasterIdentifyFormat.Feature: a map of WMS sublayer keys and lists ofQgsFeatureStore
values.Qgis
.RasterIdentifyFormat.Html: a map of WMS sublayer keys and HTML strings.
- Return type:
Dict[int, Any]