(a) The court has power
(1) to regulate and determine the place and manner of making the connections and crossings or of enjoying the common uses mentioned in AS 09.55.260(5), and of the occupying of canyons, passes, and defiles for railroad purposes, as permitted and regulated by law;
(2) to limit the amount of property sought to be condemned if, in its opinion, the quantity sought to be condemned is not necessary.
(b) If the court determines that the property is to be taken for a public use, and if all parties to the action do not object, the court shall appoint a master to determine the amount to be paid by the plaintiffs to each owner or other person interested in the property as compensation and damages by reason of the appropriation of the property. If all parties to the action object to the appointment of a master the court shall proceed with a jury trial, unless the jury is waived by all parties to the action.