Ray files offer a very accurate description of the optical characteristics of a light source. This is essential whenever optical components are positioned in close proximity (near-field) of the light source in order to perform accurate ray tracing simulations. However, a ray file does not allow for a direct simulation of the spatial luminance distribution, i.e. luminance map, by off-the-shelf ray tracers. Simulating luminance maps of light sources or luminaires is especially important in general lighting in order to predict their general perception when viewed by the observer, and more specific, the perception of glare of luminaires having a non-uniform luminance distribution. To enable the simulation of luminance maps while maintaining the high accuracy offered by a ray file, a sampling method is presented. To validate the approach, near-field goniophotometer measurements of two planar light sources were performed. From these measurement data, ray files were extracted to which the sampling method was applied in order to obtain a set of surface sources. This approach was validated by comparing measured luminance images with simulated luminance images. A good agreement was found, validating the presented method.