The land acquired by condemnation by any railroad company for its main depots, termini, buildings, machine shops, railroad yards and railroad facilities, and the land or interest therein so acquired by any company incorporated for a work of internal improvement along its line generally, or for any other public use authorized by section two of this article, shall be limited to such quantity as is necessary for the purpose or purposes for which it is appropriated.