For an existing set of line features, I would like to generate a perpendicular line, of say 1km, at the midpoint of each existing line feature in ArcGIS.
I imagine that The methodology would be to:
- create a tangent line at the midpoint of each existing line feature
- calculate the angle of the tangent line
- based on the angle of the tangent line, calculate the location of the endpoint of the new line
- create the new line with the calculated endpoint of the new line and the existing midpoint of the old line
Let's assume that we are in a UTM projection and can use coordinates to calculate distance and direction.
How would I do this with ArcGIS tools or with ArcPy?