AnsweredAssumed Answered

How to copy lines with identical attribute values based on length?

Question asked by cbevilacqua on Feb 13, 2017
Latest reply on Feb 16, 2017 by rfairhur24

I'm using ArcGIS 10.1, Advanced license.  I'm working with file geodatabase feature classes.  

 

I have a line feature class called sticksRF_2split.  Each record in this feature class has a unique value in a field called PROPNUM_GIS.  I run this feature class through the arcpy.SplitLineAtPoint_management tool.  The output, sticksRF_split, has two records with the same PROPNUM_GIS value.  From these pairs of matching PROPNUM_GIS values, I want to create a feature class that contains only the lines with the greater value in the SHAPE_Length field.  

 

I'm thinking the necessary approach would involve a dictionary with PROPNUM_GIS as the key and SHAPE_Length as the values, and then compare the values.  I'm having a challenge finding any documentation about how to accomplish this.  Is this the best way to approach this problem?  Any advice or suggestions would be greatly appreciated.

Outcomes