You have to apply to BOI first. They will issue a letter to you if they determine you are eligible. During the process you will pick the Thai Consulate nearest you. Upon being granted the letter , you can send it to the Consulate for them to issue your LTR visa. From my understanding you will print out the email from the consulate and when you enter Thailand your passport will be stamped with the LTR visa. Everything is done online.