I have a polygon with a point outside. I was able to calculate the shortest distance between the point and polygon and draw a line for the same. Now, I need to draw radiating lines from the point, on either side of the shortest line, such that they meet the polygon. The shortest line is the reference and the radial lines are decided by angle between them. The angles are theta,2*theta,3*theta etc
I didn't come up with a code for whatever I have managed so far; rather, I used a bunch of functions using arcpy. I'm still in the initial process of understanding the possibilities and what part of my requirement needs custom coding.
The steps that I followed are as follows:
- Used Near_analysis to find the nearest point on the polygon from my point. It added the location(X and Y) of the nearest point in the attribute table
- Using the coordinates of the nearest point and the coordinates of my point, I implemented the XYtoLine_management to draw the line.
At this point I'm stuck. I've been trying bearing to distance but that uses geographic north as reference.
It not much of a code as it has several errors which are irrelevant, with a few results generated as per my needs.
I'm still exploring some options.