No streets, alleys, or roads shall be opened or laid out within the boundary lines of any cemetery located in whole or in part within the lines of any city or city and county, where burials in the cemetery have been had within five years prior thereto, without the consent of the person owning and controlling the cemetery.