Skip to content

Commit

Permalink
Improve QgsRasterIdentifyResult docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 26, 2020
1 parent fe2faaa commit add4fec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Expand Up @@ -55,9 +55,10 @@ Returns the results format.
QMap<int, QVariant> results() const;
%Docstring
Returns the identify 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).

- QgsRaster.IdentifyFormatValue: a map of values for each band, where keys are band numbers (from 1).
- QgsRaster.IdentifyFormatFeature: a map of WMS sublayer keys and lists of QgsFeatureStore values.
- QgsRaster.IdentifyFormatHtml: a map of WMS sublayer keys and HTML strings.
%End

void setParams( const QMap<QString, QVariant> &params );
Expand Down
7 changes: 4 additions & 3 deletions src/core/raster/qgsrasteridentifyresult.h
Expand Up @@ -59,9 +59,10 @@ class CORE_EXPORT QgsRasterIdentifyResult

/**
* Returns the identify 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).
*
* - QgsRaster::IdentifyFormatValue: a map of values for each band, where keys are band numbers (from 1).
* - QgsRaster::IdentifyFormatFeature: a map of WMS sublayer keys and lists of QgsFeatureStore values.
* - QgsRaster::IdentifyFormatHtml: a map of WMS sublayer keys and HTML strings.
*/
QMap<int, QVariant> results() const { return mResults; }

Expand Down

0 comments on commit add4fec

Please sign in to comment.