All actions to recover damages for any trespass upon or any injury to real estate shall be brought only in the county where such real estate or some part thereof is situated, but such actions may be brought against corporations owning or operating any line of railroad in the state in any county where service of summons can be had, and all actions for the following causes must be brought in the county in which the subject of the action is situated, except as provided in section 25-402:
Neb. Rev. Stat. §§ 25-401