Creating a Line at a Right Angle to another line?

Discussion created by bofonomo on Feb 22, 2012
Latest reply on Feb 27, 2012 by bofonomo

I have a shapefile which contains many lines features.  I would like to create a python script that will create a line and the start and end of each line, at a right angle, and a set length.

I know it will require a little trig calculations which I am happy with, but I would need to get information about the line, i.e. the cooridinates of the start and end point, the angle of the line from those points (I'm not sure how information about line shapefiles are stored)....

And then from that information create a line using python script.

Could someone point me in the right direction on how I would do this?

Thanks in advance.