(a) A certificate of occupancy issued by the building official is required in advance of the occupancy or use of: (1) Any land to be used as a sales yard. (2) Any building or structure hereafter erected or moved. (3) Any building hereafter altered so as to affect the front, side or rear yards thereof. (4) Any building, structure, premises or land in which there is a change in the occupancy or use to an occupancy or use which requires a larger number of offstreet parking spaces or loading spaces than were required for the former use or occupancy of such building, structure or premises. No such certificate of occupancy shall be issued unless all the applicable requirements of this chapter have been met. (b) A record of all certificates shall be kept on file in the office of the building official.