If the special writ of execution be for the sale of a railroad or railroad embankment, the officer shall levy on, advertise, sell, and convey the same as in case of land levied on for debt; and where the property may be in several counties, the officer may sell the same and the right of way, and all depots and other buildings used or connected therewith, as if the same were situated wholly within