Gaskell's fictional town of Milton, Darkshire, was loosely based on Manchester, but the producers decided to shoot many of the town scenes in Edinburgh, which maintains more of its visual and architectural heritage from the industrial Victorian era. Keighley in West Yorkshire became one of the main locations, the cotton mill's exteriors were filmed at Dalton Mill. The scenes inside the mill were shot at Helmshore Textile Museum in Rossendale and Queen Street Mill on the outskirts of Burnley, Lancashire. London was another main location, all the interior scenes were shot at the Ealing Studios in west London and the Great Exhibition scene was shot at Alexandra Palace in North London. Other locations were Selkirk, a town in the Scottish Borders, Burnley in Lancashire, and the Bluebell Railway in Sussex, where the final and the beginning scenes were shot. Additional railway sequences were filmed in Yorkshire, using carriages provided by the Vintage Carriages Trust