a railway for a very steep grade with traction supplied by a central cogged rail that meshes with a cogwheel on the engine
See cog railway in American Heritage Dictionary 4
noun
A railway designed to operate on steep slopes and having a locomotive with a center cogwheel that engages with a cogged center rail to provide traction. Also called rack railway.