Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

Most efficient way to retrieve pixel distributions inside many polygones (custom zonal stats)

$
0
0

I want to get the distribution of pixels from a 1 band raster that fall in each polygon of a shapefile to proceed to some statistics. I guess a zonal statistics does it in some kind of way but I need other statitsics that the ones provided by the tools.

Specifically, I want to sort the pixels inside the polygons and retrieve the 50th value (if exists).

Converting my raster to points and joining them spatially to my polygons and exporting my table for the statistical analysis would do it but I will obtain more than 80M points and I estimate that it will take more than 4 days if no issues.

Does anyone know how to perform this in a more efficient way ?


Viewing all articles
Browse latest Browse all 397

Trending Articles