From the PDGA Course Design Guidelines:
Hole length is measured from front of the tee to the target along the fairway route the designer
intended players of that skill level to throw. For doglegs or water carries, the only time the straight
line, crow flies, measurement should be used is if the designer intended players of that skill level to be
able to throw over the tree tops to shorten the dogleg or throw straight completely over the water.