Assume that we think of the World Map as an image (Land = 1, Water = 0). If we perform erosion operation on this image then we will connect previously separated Water Masses. Stronger the erosion is, more distant Water Masses are connected. This way we can determine which location are the best (i.e. shortest) to build canals for our fleet.