When, in the opinion of the governing body, it is necessary to make any public improvement, including the establishment, extending, widening, grading, or improving of any street or alley, or the establishment, construction, extending, enlarging, or completing of any sewer, sidewalk, bridge, or viaduct, or removing any irrigating ditch, it is lawful for said body to declare by ordinance the necessity for such improvement.