A coastal boundary algorithm is used to classify a given pixel as either coastline or not coastline using a simple binary format. The algorithm makes a classification by examining surrounding pixels and making a determination based on how many pixels around it are water