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.
-
1Do they have different z levels/elevations or top/bottom is just draw order?BlueTalon– BlueTalon2021年04月21日 01:38:23 +00:00Commented 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/…Mapperz– Mapperz ♦2021年04月21日 03:35:10 +00:00Commented Apr 21, 2021 at 3:35
2 Answers 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:
Delete identical using this field.
@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.
Explore related questions
See similar questions with these tags.