SMS: Mathematical Foundation of Geodesy