I have two vector layers composed of polygons. The polygons of the first layer are contained in exactly one polygon of the second layer.
How do I create an attribute on the first layer with the ID of the polygon containing it?
The layers are shapefiles.
I have tried to use the field calculator to create the new attribute, but I could not figure out how refer to the geometries of the second layer.