29. Every railway company is obliged to construct and maintain fences, roads, bridges, ditches and watercourses on the properties possessed or occupied by it in a municipality, and is subject like any other ratepayer to the provisions of the by-laws, procès-verbaux or other municipal enactments passed to that effect, even if such work upon fences, roads, bridges, ditches and watercourses should not be of advantage to the company.