The problem of improving the accuracy of digital terrain models created for monitoring and diagnostics of the railway track and the surrounding area is considered. A technical solution to this problem is presented, which includes a method for joint aerial photography and laser scanning, as well as a method for digital processing of the obtained data. The relevance of using this solution is due to the existence of zones of weak reception of signals from the global navigation satellite system, since in these zones the accuracy of constructing digital terrain models using currently used diagnostic spatial scanning systems is reduced. The technical solution is based on the method of digital processing of aerial photographs of the railway track. In this case, as elements of external orientation, the threads of the rail track located at a normalized distance from each other are used. The use of this method made it possible to increase the accuracy of determining the flight path of an aircraft over railway tracks and, as a result, the accuracy of calculating the coordinates of points on the earth's surface. As a result, a digital terrain model was created that is suitable for diagnostics and monitoring the condition of the railway trackbed. During simulation modeling, it was found that the application of the proposed method allowed to reduce to 50 % the confidence interval of the distribution of the error in determining the coordinates of points on the terrain and increase the accuracy of forming a digital terrain model. This promising technical solution for improving the accuracy of digital terrain models for railway track diagnostics is implemented using unmanned aerial vehicles that are part of the mobile diagnostic complex. The advantages of the proposed solution include high efficiency and availability of application.