Please consider responding to a brief user needs survey.

Fix bug in SortTransectsFromSortLines().

parent 9589b61b
......@@ -538,7 +538,7 @@ def SortTransectsFromSortLines(in_trans, out_trans, sort_lines_or_corner='LL', t
# Sort the subsetted transects and append each one to out_trans
if verbose:
print("Sorting sort lines by field sort...")
sort_lines2 = arcpy.Sort_management(sort_lines, sort_lines+'2', [['sort', 'ASCENDING']])
sort_lines2 = arcpy.Sort_management(sort_lines, '{}2'.format(sort_lines), [['sort', 'ASCENDING']])
if verbose:
print("For each line, creating subset of transects and adding them in order to the new FC...")
for sline, scorner, reverse_order in arcpy.da.SearchCursor(sort_lines2, ['SHAPE@', 'sort_corn', 'reverse']):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment