A railroad corporation has no right to take the lands of any person for the construction of its road, except under, and in strict compliance with, the provisions of' the statutes giving the authority and prescribing the course of proceeding; and any attempt by such corporation to assert rights in the land of others, without first taking the prescribed steps, is illegal, and subjects the corporation to restraint by injunction. By the Gen. Sts. c. 63, §§ 17, 18, railroad corporations are authorized to lay out their roads five rods wide, and are required to file the location of their roads with the commissioners of each county through which the same pass. Until the location is filed, in compliance with the terms of the. statute in .all particulars, the corporation acquires no rights in the land of others. Derby v. Framingham & Lowell Railroad, 119 Mass. 516. Housatonic Railroad v. Lee & Hudson Railroad, 118 Mass. 391. It is manifest, therefore, that on this petition damages should have been assessed as of the date of filing the location. The respondent gained its rights, and the petitioner sustained its damage, by the filing of the location. That constituted the taking of the land. The sheriff therefore erred in refusing to instruct the jury to assess the damages as of the date of the filing of the location, .snd in advising the assessment as of the date when the land was entered upon and the construction of the road commenced. The rule has been laid down by the court in many similar cases. Meacham v. Fitchburg Railroad, 4 Cush. 291. Dickenson v Fitchburg, 13 Gray, 546. Whitman v. Boston & Maine Railroad, 7 Allen, 313. Edmands v. Boston, 108 Mass. 535. Reed v. Hanover Branch Railroad, 105 Mass. 303.
Verdict set aside.