Portugal plans to spend almost 470 million euros to try to reduce the risks to it population from coastal erosion and its vulnerability to climate change.