Rain flooding caused delays for trains in Edinburgh. (Pic by Carole Morton)
Several days of heavy rain have continued to cause flooding problems across many areas of Scotland.
People living near a Renfrewshire dam were warned of the risk of flooding for the second time this week.
Police said once water levels at the dam, near Lochwinnoch, had been reduced it was expected to be demolished.
In Edinburgh, the visitor attraction Dynamic Earth was forced to shut for several hours after rain caused "cosmetic damage".
Strathclyde Police said that due to heavy rainfall throughout the night, the temporary work which had been undertaken to repair the side of the dam had given way.
The fire service and contractors have been pumping water from the dam, but the success of that depends on the weather.
Rain across the Edinburgh area also caused disruption for travel, with lane closures on the A720 city bypass, prompting long delays, and train services were hit.
Tracks near Waverley station flooded, reducing trains between Edinburgh and Glasgow to one every half hour, while pumps were used to clear the water. Fife Circle and routes to North Berwick were also affected.
Kenneth Grinly said his journey to work from Linlithgow to Edinburgh took three-and-a-half hours. It usually takes about 20 minutes.
The recruitment manager told the BBC Scotland news website: "We were sat outside Haymarket station for about 50 minutes, then spent another 40 minutes stuck in the tunnel.
"The water was about a foot deep. There was nothing the train driver or the conductor could do.
Severe flooding stopped traffic on the Edinburgh ring road
"I was totally incommunicado, because there was no phone signal in the tunnel. You feel pretty bad when you're three-and-a-half hours late for work."
The A72 Galashiels to Peebles route was closed between Clovenfords and Walkerburn, due to a landslip.
Insp Jill Kerr, of Lothian and Borders Police, said conditions looked set to improve.
She said: "Thankfully, weather reports suggest the worst rainfall is over and we expect the flooding to subside over the next 12 hours.
"However, the heavy rainfall overnight has caused some severe problems on our roads."
The A760 Lochwinnoch to Kilbirnie road was closed and drivers and pedestrians were warned to stay away from the area.
Early on Thursday morning, police contacted several householders living nearby and asked them to leave as a precaution.
Earlier this week, firefighters worked round the clock to pump out more than half the water in the reservoir there.
Firefighters were also called out in Cluny, Fife, to help pump out a warehouse which had been flooded by water running off the hills.
In East Wemyss, water had to be pumped out to prevent houses flooding after a burn overflowed.
A burn also burst its banks in Falkland and fire crews helped the council with sandbagging.