Yes, my thoughts exactly. Brilliant! SQL statements are much faster than a spatial selection using ArcObjects. I have to remember this trick and apply where possible.Thanks for the added explanation 🙂
Richard, that's a really nice solution because it's fast and relatively easy. I like really that idea / solution. +1 I wonder if the find identical features suggestion I posted would work. Maybe he will let us know if he figured it out and how.
That sounds like an interesting solution, may be the answer.I was thinking more about this one and thought that some custom code may be needed. You could loop through each line in each set of line features and use a spatial filter to spatially select other lines that 'are identical' to each line. Of course, depending on the size of the road network and even with a small set of lines, 86 different sets would take a long time to run and probably some considerable time to write the code too... I still think there should be an out of the box solution for this problem, if not then it may be a good idea for a new tool or enhancement request. It gets more complicated as the number of input layers increases, but it seems there should be a way to do this with ArcGIS.
def Output(FirstPoint,LastPoint,Length): FPX = round(float(FirstPoint.X), 4) FPY = round(float(FirstPoint.Y), 4) TPX = round(float(LastPoint.X), 4) TPY = round(float(LastPoint.Y), 4) Lnth = round(float(Length), 4) return "{%(FX)012.4f}{%(FY)012.4f}{%(TX)012.4f}{%(TY)012.4f}{%(LN)012.4f}" % {'FX': FPX, 'FY': FPY, 'TX': TPX, 'TY': TPY, 'LN': Lnth}
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.