I have two shapefiles, one of which contains building polygons and attributes such as building age and building usage, and the other file contains the same building polygons and attributes such as the building height.
There is no attribute, on which I could merge both datasets, such as an unique "ID"
of a building polygon. The only thing that matches perfectly, are the shapes of the polygons. I want to get to a point to have one file with the building polygons and have all three attributes in there.
Is there an easy way to do this in QGIS? I thought about comparing polygon centroids and go on from there, but maybe there exists a cleaner way.
join attributes by location
does what you want. If you get too many duplicate geometries, try a different join type, or create centroids for one of your layers and then join the centroids to the other polygon layer.