To work with new line crossing logic
coastline fixes