Get elevation value from DEM