Notwithstanding the provisions of section fifty-two or of any other law, general or special, within Queens county every railroad corporation operating a railroad shall erect and thereafter maintain a fence or fences along the boundary line of its right of way contiguous and adjacent to a public highway running generally parallel to or terminating at such boundary line whenever the commissioner of transportation after a hearing on notice to such railroad corporation shall determine it to be necessary for the public welfare and shall by order so direct. The order of the commissioner of transportation may prescribe the height, length, materials and design of such fence or fences.
N.Y. R.R. Law § 52-C