Transcritical, shallow-water flow over compact topography