The Court in which an action is pending for the recovery of real property, or for damages for an injury thereto, or a Judge thereof may, on motion, upon notice by either party for good cause shown, grant an order allowing to such party the right to enter upon the property and make survey and measurement thereof, and of any tunnels, shafts, or drifts therein, for the purpose of the action, even though entry for such purpose has to be made through other lands belonging to parties to the action.
(Amended by Code Amendments 1880, Ch. 22.)