No action in eminent domain to acquire property, or any interest therein, shall be commenced unless the legislative body of the city, as to property which is located within such city, or the board of supervisors, as to property which is located within the unincorporated territory, has consented by resolution to such acquisition.