Narrative:

Enroute using GPS and WAC chart; I realized there was a problem with the GPS. I was over (way off track) a military airport; and due to the haze and being so close to a class C airport; I decided to land and avoid conflict with that airport's approach. I called the military tower and was given permission to land if I declared an emergency; which I did and was then able to sort out my navigation without the stress and worry of violating restricted airspace while studying the chart.

Google
 

Original NASA ASRS Text

Title: A Glasair pilot had a VFR track deviation when his GPS malfunctioned and declared an emergency in order to land at a military base to reorient himself.

Narrative: Enroute using GPS and WAC chart; I realized there was a problem with the GPS. I was over (way off track) a military airport; and due to the haze and being so close to a Class C airport; I decided to land and avoid conflict with that airport's Approach. I called the military Tower and was given permission to land if I declared an emergency; which I did and was then able to sort out my navigation without the stress and worry of violating restricted airspace while studying the chart.

Data retrieved from NASA's ASRS site as of April 2012 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.