In all proceedings under the provisions of this chapter involving real property through which the line dividing two or more counties runs, the court of the county in which the residence is situated; or, if there be no residence, the court of the county where the principal improvements may be; or, if there be no improvements, the court of either county, may exercise jurisdiction as to the whole of such real property, irrespective of the county line; and its decree relating to that real property shall be as effectual as if the whole of that real property had been within the county whereof said court has jurisdiction. A certified copy of all proceedings shall be recorded in the office of the recorder of deeds of each county in which any of the real property is situated.
20 Pa.C.S. § 8303