The county, city, or landowner may bring any action in court necessary to enforce any contract, including, but not limited to, an action to enforce the contract by specific performance or injunction. An owner of land may bring any action in court to enforce a contract on land whose exterior boundary is within one mile of his land. An owner of land under contract may bring any action in court to enforce a contract on land located within the same county or city.
Ca. Gov. Code § 51251