Due to the limitations of traditional geometric error measurement, the measurement accuracy of long-stroke geometric errors is generally not high and the operation is complicated. In response to the above situation, in this study, a geometric error measurement system is built with a laser beam as the reference line and 2D position sensitive detector as the photoelectric conversion device. The single measurement range is 40 m, and the measurement range is further expanded through the principle of segmented splicing. Using an ultra-long guide rail as the measurement object for straightness measurement, the experimental results are similar to those of a laser interferometer. The uncertainty analysis model was obtained through the analysis of quantity characteristics, and based on this, the variance synthesis theorem and probability distribution propagation principle were studied to form two uncertainty synthesis methods. The measurement evaluation results showed that the two methods were basically consistent. The work provided a reference method for the uncertainty evaluation of position-sensitive detector measurement systems in the future.