The city is buying two properties where it will add affordable housing, both near a planned rail station on Dillingham Boulevard: one a $51.5 million, 3.8-acre warehouse complex on Iwilei Street, Diamond Head-side of the Dole Cannery complex; the other an $8.4 million former First Hawaiian branch building on North King Street, just south of Liliha.