This chapter is enacted to permit, prohibit, regulate, restrict and determine: uses of land, watercourses, and other bodies of water; size, height, bulk, location, erection, construction, repair, maintenance, alteration, razing, removal, and use of structures; areas and dimensions of land and bodies of water to be occupied by uses and structures, as well as areas, courts, yards and other greenway lands and distances to be left unoccupied by uses and structures; density of population and intensity of use; provisions for special exceptions and variances; provisions for conditional uses; provisions for the administration and enforcement of such ordinances; provisions for the protection and preservation of natural resources and agricultural land and activities; and such other provisions as may be necessary to implement the purposes of the Pennsylvania Municipalities Planning Code, Act 247 of 1968, as amended.