Wednesday, 31 August 2016

arcgis desktop - Selecting parallel line segments but not segments that intersect


I have 2 different shapefiles that each have railroad track on them. Most of the track being displayed is the same, but since it is coming from 2 different sources, the physical lines themselves are about 0.5 feet apart. The goal of my analysis is to find what segments of track are common between the 2 shapefiles and also what segments of track only exist in one shapefile or the other.


I tried doing select by location: within a distance of 1 foot, which solves most of my problem, but there is an issue. Wherever one track crosses the other, the two segments on either side of the node are also selected, because they are within 1 foot of the other track (due to crossing). Thus, if a segment of track that only exists in shapefile A crosses a segment of track that exists in shapefile B, the 2 line segments of track A on either side of track B will be selected.


I only want common track to be selected, thus if A and B run parallel to each other and are within 1 foot, I want them to be selected. Is there any way to do this without also selecting track segments that cross the track?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...