Narrative:

I was given a heading for a (diverging) right downwind for [the] visual. I was advised to remain at 7500 feet as the approach controller tried to get me in sequence for a touch and go. I was given directions to a lower aircraft which I understood that I was to follow and then immediately told to climb to 8500 (1500 above pattern) due to converging traffic. In fact this would have put me at the same altitude as the converging traffic; a cirrus; there was immediate evasive action required by me. I was brought back into the pattern and told to follow diamond star; then they said 'that's not going to work because you are overtaking him by 50 knots'; I was on right base and the other traffic was on final. I had not slowed down because I was being vectored all over.on departure after switching back to tower I was told to maintain an altitude and given a heading which took me into the [a near by] class D airspace. I continued to fly this heading until the approach controller turned me out of the airspace. I assumed I had been cleared into as I was vectored to the airspace. I don't know what was going on that day but it was pretty scary.I am uncertain if they created a collision hazard by flying me on a heading and making me climb to a converging aircrafts heading or that I truly violated airspace squawking a discreet code and being vectored into [a near by delta] airspace at 8500.

Google
 

Original NASA ASRS Text

Title: Cessna 182 pilot had to maneuver to avoid oncoming traffic in the airport pattern. While maneuvering he entered another airports class D airspace inadvertently. Once clear of traffic the pilot departed the airspace and landed normally.

Narrative: I was given a heading for a (diverging) right downwind for [the] visual. I was advised to remain at 7500 feet as the approach controller tried to get me in sequence for a touch and go. I was given directions to a lower aircraft which I understood that I was to follow and then immediately told to climb to 8500 (1500 above pattern) due to converging traffic. In fact this would have put me at the same altitude as the converging traffic; a Cirrus; there was immediate evasive action required by me. I was brought back into the pattern and told to follow Diamond Star; then they said 'that's not going to work because you are overtaking him by 50 knots'; I was on Right base and the other traffic was on final. I had not slowed down because I was being vectored all over.On departure after switching back to tower I was told to maintain an altitude and given a heading which took me into the [a near by] Class D airspace. I continued to fly this heading until the approach controller turned me out of the airspace. I assumed I had been cleared into as I was vectored to the airspace. I don't know what was going on that day but it was pretty scary.I am uncertain if they created a collision hazard by flying me on a heading and making me climb to a converging aircrafts heading or that I truly violated airspace squawking a discreet code and being vectored into [a near by Delta] airspace at 8500.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.