[GIS] Converting Raster to vector and creating polygons based on each pixel using QGIS

convertqgisrastervector

I want to convert a raster file (100x100m pixel size) which contains population counts as pixel values. I need a vector based file of the 100x100m grids and the population as attributes.

I tried different conversion methods in QGIS, but there will always be pixels merged together.

Is there a way to create a vector grid and assign the raster values to them?

Best Answer

Yet another option would be SAGA Raster values to points tool (QGIS Processing Toolbox | SAGA | Vector <-> raster). Choose [1] cells as Type option.

SAGA - Raster values to points

enter image description here note white moth-eaten appearance, which is nodata holes.


It was not clear what particular tools you have already tried, but one of them might have been GRASS r.to.vect tool (Type: area), which yields something like you have described:

GRASS - r.to.vect

enter image description here note internal nodata cells are treated as independent parts by GRASS

Related Question