Terrain feature matching