Police near the scene of where a person died after being hit by a train near Wallaceville, Upper Hutt.

The person who died after being hit by a train in Upper Hutt on Wednesday was a student from Heretaunga College.

Principal Bruce Hart confirmed it was one of his students who died but did not want to comment further.

The incident took place about 11.15am between Wallaceville and Trentham stations. suspended.

MATTHEW TSO/STUFF A person has died after being hit by a train near Wallaceville station in Upper Hutt.

Police said the Serious Crash Unit was investigating.

Upper Hutt Mayor Wayne Guppy said the incident was "absolutely tragic".

Such incidents were a terrible time for family, friends and the community.

MATTHEW TSO/STUFF The fatal incident took place about 150m south of a level crossing near Wallaceville Station.

A Metlink spokeswoman was not able to provide any further details of the incident.

Trains were replaced by buses between Trentham and Upper Hutt.

Services between Wellington and Trentham were not affected.