I am new in QGis python plugins dev and I have a "maybe stupid" question (in the title :-) ).
I try to retrieve pixels (from a raster layer) which are "contained" in a polygon defined in a vector layer. How can I achieve that via a python plugin ? The user has to select the vector layer and the raster layer using the GUI of the plugin (which is already coded).
Thanks in advance !
So, my plugin has to get these pixels contained in a shape in order to compute several complex metrics over these pixels. So, my main question is how can I get these pixels (in an array, in a list or something else) in order to compute complex function over.
NB : the raster layer displays a fully calibrated picture in which the pixel value is very important and will be the input data of complex metrics process.
– Lambdacrash Oct 22 '12 at 20:18