The city council may acquire in the name of the city by grant, dedication, purchase, or devise the lands and the rights necessary to carry out such improvements.