I’ve got an interesting problem with a land (polygon) and matching coastline (polyline) data. For cartographic styling reasons (using offsets), it’s important that the coastline is always traversing with the land on a consistent side (say, on the right). Where it’s not, I’d like to reverse the polyline coordinates. Fortunately, the polylines are simple with only one segment, i.e. not multipolyline.
Logically, I could buffer each section of coastline on one side (or offset the polyline) and detect a material overlap with the land. If no overlap, reverse the polyline.
Has anyone done anything like this before or have any suggestions on the best way to implement it in Form? Many thanks.
/Warren