A model of continental-shelf resonances