As the wave passes over the shallow area its shape is raised and steepened, creating a localised wave formation.
As the wave moves over the shallow region, its shape is elevated and sharpened, resulting in a localized wave pattern.