A Method of Terrain Feature Extraction Based on Contour