Normalizes longitude coordinates when a line segment crosses the ±180° dateline, preventing discontinuities in buffering and visualization.
fix_dateline_crossing(segment)sf linestring object with normalized coordinates (0-360° range if dateline is crossed)
Dateline crossings are detected by checking for longitude jumps > 180°. When detected, negative longitudes are shifted to 0-360° range. The segment is then segmentized to 1000m intervals for smooth buffering.
buffer_transect for usage in buffering workflow