The Dutch have long successful proven methods for dealing with this issue. They built dykes.
#24 There are plenty of dykes in San Francisco....