When the Dorset and Somerset Canal was authorised by an Act of Parliament in 1796, the builders were faced with the need for many locks, as the branch to Frome needed to accommodate a change in level of 264 feet .