1

This question already has an answer here:

I have a shapefile of lines and I would like to know an Arcmap tool to create a new shapefile with orthogonal lines from the midpoint of that existing line shapes. I know that it is possible to do it manually, but I have so many lines so it would be an impossible way.

Does anybody know an automate way to do it?


example

Yes, perpendicular lines that cross the middlepoint of the existing lines. An example would be like this:

marked as duplicate by FelixIP, whyzar, Dan C, aldo_tapia, xunilk Jan 22 '18 at 20:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You want perpendicular lines? Could you add a screenshot of what you want? – BERA Jan 22 '18 at 8:30
1

Here is a workflow based on this article: How To: Create evenly spaced lines perpendicular to a line feature. It will work with a Basic license and can be automated with ModelBuilder or arcpy. Your data must be in a projected coordinate system.

  1. Create routes from your input lines with the Create Routes tool (see step 1 in the article).
  2. Create points in the middle of the line, either with Feature to Point if you have an Advanced license, or:
  3. Create an event table to locate those centroids along the routes with Locate Features Along Routes. Make sure you set the line ID field as Route Identifier Field parameter.
  4. Add 2 'offset' fields (numeric) to the event table. They will define the start and end vertices of your perpendicular line (populate them with e.g. 10 and -10 if you want a 20 m long line, with equal length segments on each side of the main line).
  5. Run Make Route Event Layer twice with your event table as input. Make sure you set the line ID field as Route Identifier Field parameter. Use your first offset field as offset parameter the first time, and the second offset field the second time.
  6. Merge the 2 point layers you've just created into one and create lines with Points To Line. Again, make sure you set the line ID as Line Field parameter. There you are!

If you want to have perpendicular lines on only one side of the original line, create only one offset point layer and merge it with the centroids layer. Make sur you map the line IDs to the same field in the output.

  • Thank you so much for the answer. I'l try this way and the others explained in the other links. – Ariadna Jan 23 '18 at 10:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.