The Thailand government is diverting floodwaters to protect Bangkok's inner city.