An amplitude analysis of the K+K− system produced in the reaction π−p→K+K−n at 10 GeV/c