- marked as enhancement
add a RasterReader.uniqueValueCount() method
Issue #963
new
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)
-
reporter -
reporter - changed milestone to Future Release - Nice to have
- Log in to comment