A woman has died after being hit by a train while taking a selfie with a friend on a railway track in Thailand.

The victim, named locally as 28-year-old Walailak Sukuma, had been drinking with a group of friends near Samsen train station in Bangkok’s Phaya Thai district before the incident at 4am local time on Thursday.

She was hit while attempting to take a photo with an outgoing train in the background, but failed to spot an oncoming train approaching the station, reports say.

The woman’s leg was severed as she was dragged along the track by the Bangkok-Rangsit service and she later died as a result of her injuries in hospital.

“[She] was proclaimed dead at a Bangkok hospital hours after an oncoming train hit her and her friend while the pair was taking a selfie,” police investigator Wissanusak Suebin told local media.

A man, who is believed to be a work colleague of the victim, was knocked unconscious by the train, suffering a head injury and a broken arm.

Mr Suebin told DPA the group regularly hung out near the railway station drinking beer.

“The difference is that this time they were taking selfies too. Their friends said they didn't see the train approaching the platform,” he said.