Protecting vulnerable areas from flooding