add a RasterReader.uniqueValueCount() method

Issue #963 new
Andreas Janz created an issue

As the name says, the method returns the unique value counts of a raster band.

Like QgsRasterInterface.bandStatistics() and QgsRasterInterface.cumulativeCut() should it accept a sampleSize parameter to allow for quick estimates.

The proposed methode signature would be:
RasterReader.uniqueValueCount(bandNo: int, extent: QgsRectangle, sampleSize: int = 0, feedback: QgsRasterBlockFeedback = None) -> Dict[float, int]

Comments (2)

  1. Log in to comment