0

I am using ArcMap 10.6.1 Advanced.

I have a street centerline shape file where segments for bi-directional roadways are drawn as two stacked lines. The top segment for one direction of travel, the bottom segment for the opposite direction of travel.

I need to separate these stacked lines into two different shape files. Anyone know how to select just the top set of lines so I can export them to a different file? I can just use switch selection to get the second set of lines then.

Unfortunately none of the table attributes represent the top versus bottom segment, or direction of travel. The geometry of the top and bottom segments are the same. I looked at commands such as Find Identical, but that still selects both the top and bottom at the same time.

2

2 Answers 2

2

Create end points (NODES) and delete identical in shape. Transfer nodes OIDs to lines as described here to find from and to nodes of lines. Create COMBO field using something like:

str(min( !TI!, !FI!)) + "_" + str (max(!TI!, !FI!))

in order to find twins:

enter image description here

Delete identical using this field.

0

@FelixIP's answer pointed me in the right direction. After combing the nodes as shown above, I added a Dup field to identify the duplicate records.

uniqueList = []
def isDuplicate(inValue):
if inValue in uniqueList:
return 1
else:
uniqueList.append(inValue)
return 0

Dup = isDuplicate(!A_B!!)

From that I could query and export the two sets of lines using Dup = 0 and Dup =1.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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