As demonstrated by an example of a leveling network,existing methods of correcting gross errors based on residuals have a few shortcomings including the dependence on the location of gross errors within the leveling network.To address these problems,local analysis method(LAM) is proposed.In multidimensional adjustment problem,an observed quantity usually can be expressed as function of other observed quantities.Then it can be obtained a group of indepen-dent observed values of the observed quantity,which includes observed value corresponding to the observed quantity and functions of other observed values.And an approach to search functions based on the design matrix is given.So it can be determined according to number of independent observed values whether the observed value can tolerate gross error.A method based on LAM is also developed to detect gross errors.Finally,the detection method and LAM are detailed in an example of a goniometric network