Based on 3-D joint-element, the theory and methodology are discussed about inversion of geodetic data. The important FEM and inversion formula are given in detail; also a related code is developed. By use of this program, a FEM model is tested, which verifies the validity of the method here presented.