Except as otherwise provided herein, no lot existing at the time of passage of the ordinance codified in this chapter shall be reduced, divided, or changed so as to produce a tract of land which does not comply with the minimum dimension or area requirements of this chapter for the district in which it is located, unless said reduction or division is necessary to provide land which is needed and accepted for public use.