The governing board of any municipal corporation may grant, sell, convey, or lease any public grounds within its corporate limits to any railway corporation, subject to all the rights of the original proprietors of such grounds.