diff --git a/pyflowline/algorithms/index/define_stream_order.py b/pyflowline/algorithms/index/define_stream_order.py index 2df07ca..acb755a 100644 --- a/pyflowline/algorithms/index/define_stream_order.py +++ b/pyflowline/algorithms/index/define_stream_order.py @@ -39,8 +39,13 @@ def define_stream_order(aFlowline_in, aConfluence_in): """ nFlowline = len(aFlowline_in) nSegment = nFlowline - aFlowline_out = list() - iMethod = 1 + aFlowline_out = list() + if iFlag_use_rtree == 1: + iMethod = 1 + else: + iMethod = 2 + pass + if nFlowline == 0 : print ('data incomplete') else: