Vang Sogn, Thisted Amt