The legislative body of the local agency in which the land is located shall first adopt a resolution declaring its intention to erect a public building on the public square or the legislative body of the city shall adopt a resolution declaring its intention to grant or lease the land to the county for the erection of a public building. The resolution shall be referred to the city or county planning agency, as the case may be, for a report and recommendation thereon pursuant to Section 65402.