In order to locate points or lines of interest (A, B, C, D, A′, B′, C′, D′, 162, 163, 164) of a railway track (22), by means of a railway locating system (12), progressing on the railway track (22), a linear camera (26) pointing at the railway track (22) repeatedly acquires instantaneous linear optical data along an instantaneous measurement line (50), and an orientation device (52) of the railway locating system (12) repeatedly acquires orientation data of the railway locating system (12) with respect to a reference line (22A) of the railway track (22). By processing at least the instantaneous linear optical data, a potentially distorted bitmap image is constructed of a zone of the surface of the railway track (22), then points or lines of interest (A, B, C, D, A′, B′, C′, D′, 162, 163, 164) are identified in the potentially distorted bitmap image, before determining rectified coordinates of the points or lines of interest (A, B, C, D, A′, B′, C′, D′, 162, 163, 164), as a function of potentially distorted coordinates of the points or lines of interest (A, B, C, D, A′, B′, C′, D′, 162, 163, 164) in a reference system of the potentially distorted bitmap image and orientation data.