I have a shapefile of a city map and I have created vector grid as polygons.
After intersecting the two shapefiles, a building will map to all the grids it overlaps.
However, if I just want it to map to the one grid which contains the majority of the building (>50%), how could I achieve it?
Is there a function or plugin in gqis for this task? Or do I have to write my own code to do this?
I am new to QGIS.