Skip to content
Permalink
Browse files
Added histogram values to the bindings
  • Loading branch information
elpaso committed Nov 29, 2016
1 parent 0ee93ee commit 61b599ed0e6502ac607f56441a443b9682f481d5
Showing with 6 additions and 3 deletions.
  1. +6 −3 python/core/raster/qgsrasterhistogram.sip
@@ -4,6 +4,9 @@ class QgsRasterHistogram
#include <qgsrasterhistogram.h>
%End
public:

typedef QVector<int> HistogramVector;

QgsRasterHistogram();

/** Compares region, size etc. not histogram itself */
@@ -22,9 +25,9 @@ class QgsRasterHistogram
bool includeOutOfRange;

/** \brief Store the histogram for a given layer
* @note not available via python binding
*/
// HistogramVector histogramVector;
* @note added in version 3.0
*/
HistogramVector histogramVector;

/** \brief The maximum histogram value. */
double maximum;

3 comments on commit 61b599e

@3nids

This comment has been minimized.

Copy link
Member

@3nids 3nids replied Aug 2, 2017

@elpaso have you been able to use this? @alexbruy seems to have issues with it: https://lists.osgeo.org/pipermail/qgis-developer/2017-August/049498.html

@elpaso

This comment has been minimized.

Copy link
Contributor Author

@elpaso elpaso replied Aug 3, 2017

IIRC I tested I and it was working correctly when I exposed the histogramVector to the bindings. I stepped into that while I was testing the IPython integration and I wanted to display a chart inside the console, the vector with the data was not accessible from Python, that's why I re-enabled it.

@elpaso

This comment has been minimized.

Copy link
Contributor Author

@elpaso elpaso replied Sep 30, 2017

Please sign in to comment.