Such city shall have power to pay for all such work and rights-of-way herein provided for in part or in whole out of the general funds, or by the imposition of special assessments upon lands located in such city and within the district deemed to be benefitted by the construction of such sewers or such levees, or the shortening, diversion or improvement of such watercourse.