You sound like a well seasoned koikeeper.
That is exactly one of best, if not the best, solution for herons that I am aware of.
For raccoons a mesh screen can be helpful, but they are resourceful little creatures and will even try to make a hole in it if they are particularly hungry for koi.