Creating Route Flips the original polyline?

2942
4
04-07-2016 06:46 AM
Highlighted
New Contributor III

I am encountering a strange problem all of a sudden. I have a shape file with a single polyline with a known direction. When I Create a Route with this line, the direction "Flips". Any ideas? 

Reply
0 Kudos
4 Replies
Highlighted
Regular Contributor II

When you created the route was any of these checked?

coordinate_priority

(Optional)

The position from which measures will be accumulated for each output route. This parameter is ignored when the measure source is TWO_FIELDS.

  • UPPER_LEFT —Measures will be accumulated from the point closest to the minimum bounding rectangle's upper left corner. This is the default.
  • LOWER_LEFT —Measures will be accumulated from the point closest to the minimum bounding rectangle's lower left corner.
  • UPPER_RIGHT —Measures will be accumulated from the point closest to the minimum bounding rectangle's upper right corner.
  • LOWER_RIGHT —Measures will be accumulated from the point closest to the minimum bounding rectangle's lower right corner.

These in cases will over rule digitized direction.

One way to get around it is to edit your line segment and chose the appropriate method of accumulating the measures:

About setting route measures—Help | ArcGIS for Desktop

Reply
0 Kudos
Highlighted
MVP Honored Contributor

Routes will only respect the direction of a line if you use From and To end measures on the original lines to build them, otherwise they change direction according to the orientation priority corner you chose with the Create Route tool.  The original line did not flip, but the Route events for that line easily can flip if you built the route from the wrong corner.  Anyway, post the Create Route settings you used if you want more help to get the behavior you want.

Highlighted
MVP Esteemed Contributor

And if you need to flip lines, there is a tool for that, or you can do in an edit session manually.

Flip Line—Help | ArcGIS for Desktop

Flipping the direction of a line—Help | ArcGIS for Desktop

Use case example (but not for routes), I use the flip line in a  script whee I need to buffer a  flight lines, based on the value in a field  (left or right).  Originally the lines are all contiguous and "in the same direction".  I select all those with the on field = "right", flip them, then I can buffer them using the left option and they will buffer as I need them.  I mention this to point out that it can be scripted if you have some way to select those lines that are "in the wrong direction".

Reply
0 Kudos
Highlighted
New Contributor III

Adding the 'From' and 'To' information to the Table, and then selecting  "TWO FIELDS', in Create Routes, fixed my issue.

Thanks!