The Hausdorff distance between planar sets of points is known as a good method to compare binary images. We present an algorithm to match terrain using the modified Hausdorff distance as the measure of the difference between two images. The terrain structural lines is obtained;then the Hausdorff distances are computed;finally the Husdorff distances is compared. The minimal Hausdorff distance means the best matching result. The experimental result shows that the proposed method is effective for matching terrain.