Attribute Fill => Raster to Vector

The Atribute Fill - Raster to Vector tool is used to extract statistics of a Raster Layer using a Vector Layer as reference. New attributes will be added to the vector layer and filled with those statistics. The vector layer can be a cellular space or any vector layer (polygons) overlapping the raster. For each cell or polygon of the vector layer, one attribute for each selected statistic will be created and filled. This process is performed for each selected band of the raster.

Raster without polygons overlapping Raster with polygons overlapping
Raster without polygons overlapping Raster with polygons overlapping

It is accessed through:

    Processing > 
Attribute Fill > Raster to Vector...
  1. Input Raster: select a raster layer where the statistics will be extracted. 
  2. Input Vector: select the vector layer overlapping the raster.
  3. Iterator Strategy 
  4. GroupBox
  5. Bands: Select one or more bands to apply the statistics select below.
  6. Statistics: click over one or more statistics to select then.
  7. Inform the Output Repository by clicking on:
  8. Click OK to perform the operation or Cancel to close the interface.
NOTE: The table bellow shows the results of a celular space (vector layer where the polygons are regular cells) overlapping a raster file with the following parameters:
            Bands:  (0,1)
            Statistics: Mininum Value, Maximun Value, Mean and Variance.
            Note that the attributes generated for each cell are prefixed by the band identification ('B0_'  and 'B1_').


Table with new attributes