Automatic digitization of closely spaced relief contours