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.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Apr 21, 2021 at 1:11
2
  • 1
    Do they have different z levels/elevations or top/bottom is just draw order? Commented Apr 21, 2021 at 1:38
  • Cartography Toolbox has 'Thin Road Network' with many steps/options pro.arcgis.com/en/pro-app/2.6/tool-reference/cartography/… Commented Apr 21, 2021 at 3:35

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.

answered Apr 21, 2021 at 5:28
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

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
answered Apr 26, 2021 at 21:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.