The forces due to geostrophic flow over shallow topography