Extracting meaningful slopes from terrain contours