Caddies for the professional golfers go out to the course with notebooks and start marking down the distances between the tee box and sand traps. The distances are paced off.
The best way is to make out the course with a GPS. You need to measure the distances to the front and back of the green, and other landmarks for each hole. It's a lengthy process, but can be very rewarding.