I am using QGIS (version: 3.28) and I am looking for a way for an automatic spatial generalization of polygons:
Step: Merge adjacent polygons of same class (e.g. class "Grünfläche")
Step: Polygons of class "Grünfläche" that are smaller then e.g. 0.3 ha should be merged with the adjacent polygon of another class, that has the longest "common boarder" with that polygon "Grünfläche". In other words: If a small polygon "Grünfläche" has a longer boarder with polygon of class "Landwirtschaft" and a shorter border with the polygon "Siedlung" --> the polygon "Grünfläche" should become "Landwirtschaft" and merge with the adjacent polygon "Landwirtschaft"