I entirely agree, as does the Federation of Canadian Municipalities. When regulations are made, the principle of reciprocity should always apply. If we do not want railway lines to be closer to houses, those houses should not be located near railway lines. There is no justification for granting permission to move them closer, particularly in the case of buildings that may be at risk.
You are absolutely right. As municipalities, we are responsible for keeping those buildings away from railway lines.