I'm trying to run an analysis where I need to clip a radiating lines layer by land features to get the maximum distance from the central point to the nearest obstacle. What I have is a large line layer containing approximately 40,000 points, each with 32 radiating lines extending out at equal intervals (e.g. 11.25 degrees) and a vector polygon file representing coastlines and reefs.
The problem I'm having is that the "Clip" and "Erase" functions remove the sections of line on land but when a line encounters a small obstacle the tool only removes the section over land and leaves the portion of line which continues on afterwards (e.g. adjacent bays, other side of peninsulas, etc). This is especially problematic in regions with complex coastal features.
What I need to do is remove the hanging lines after the nearest land.
I've looked into line of sight analyses but the only one's I can find rely on 3D surfaces. Does anyone know of a 2D version where all line fragments will be removed after reaching the nearest obstacle?
This needs to be as automated as possible as I'm dealing with large datasets (24 to be exact, each with 40,000 points).
The end goal is to produce a layer to calculate wave fetch.