On trapped waves over a continental shelf