Shallow water flowing over sharp rocks