If the true boundary between two or more adjacent counties, cities, towns or districts is doubtful or in dispute, the land court may determine the location thereof upon the petition of one or more of such counties, cities, towns and districts and after such notice to all other counties, cities, towns and districts interested as the court shall order, and the court may make such order as to the setting of durable bounds to perpetuate the lines the location of which is so determined, and as to the costs and expenses of the proceedings, as law and justice may require.
Mass. Gen. Laws ch. 42, § 12