Automatic Extraction of Ridge Lines from Digital Elevation Models