I am trying to create a buffer around buildings to create a 'green wall'. First, I dissolved all buildings in order to create a buffer only around the buildings (flat roofs). However, after creating a buffer of 0.3m there is only 1 ID number.

I would like to create different ID numbers for every building block, because I need to perform an analysis for the different buildings. I can't do it manually, because there are too many of them.


  1. buffer around every building block (flat roof)
  2. different ID numbers

Does someone have a solution to my problem?

I am working with QGIS 3.24.2.

enter image description here


2 Answers 2


After creating the difference, run multi- to singlepart, which splits your dissolved features into single geometries, then add the $id using the field calculator.


I think you no need to use dissolve. Directly use buffer tool and then use expersion editor to generate IDs by using $id or @row_number expersion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.