Creating Polygons from Centroids – How to Create Polygons Around Centroids While Maintaining Information

centroidspolygon-creation

I have a csv file which contains points (latitude, longitude) around all the African continent (see the picture for clarification). Apart from the latitude and longitude, it contains more information.

I would like to create rectangles of 0.5×0.5 degrees, with the centroid in each of the points of my csv. In the final output, I would like to have a shapefile of 0.5×0.5 degrees with the centroid in each of the points and with the rest of the information. Is it possible to do it?

I am using QGIS version 3.20.1

enter image description here

Best Answer

You can use "Rectangles, ovals, diamonds" tool. Make sure the unit is degrees. If you use this tool, each grid polygon will have all information of the related point, but possible.

enter image description here

Result:

enter image description here

In case of getting gap or overlap, "Snap geometries to layer" tool can be used to fix that issue after "Rectangle, ovals, diamonds" tool. I personally haven't encountered such an error unless the "Rotation" value is specified.

Related Question