The as-built survey of railways is one of unmanned aerial vehicle (UAV) application fields. Digital surface models (DSM) are the results of UAV survey data processing. Concerning railways, they are used for receiving information about railway track position and distance between tracks, obstruction clearance, for generating longitudinal and cross profiles. For generating high accuracy DSM, regularly distributed control and check points within a survey area are necessary to be used. As these points rail track axis points, measured during a hardware-software system «Profile-M» movement, can be used. The goal of the article is the accuracy study of DSM generation whose ex-ternal orientation was carried out with railway track axis points measured with this hardware-software system.