Geometrically constrained walls in two dimensions