Work-in-progress: partial implementation of coastline check.

Should be harmless for straigt ingestion when coastline check is not requested.