Each morning, four children stand barefoot in a line and proudly sing the national anthem as the Thai flag is raised outside their school, perched on a finger of land surrounded by the sea.

They are the last pupils left at the school in Ban Khun Samut Chin, a coastal village less than 10 kilometers from the edge of Bangkok that is slowly being devoured by the waves.

About 200 people cling on in the village, in a glimpse of what the future may hold for countless coastal communities around the world as climate change melts glaciers and ice sheets, causing sea levels to rise.