Skip to content

Commit

Permalink
Fix bug with segmentation/stream order
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMWhitehead committed Mar 3, 2017
1 parent 5789679 commit cad68e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Segmentation.py
Expand Up @@ -192,6 +192,8 @@ def segOptionBC(fcDissolvedStreamBranch,
def main(inputFCStreamNetwork, inputDistance, reachID, strmIndex, segMethod, boolNode, boolMerge, outputFCSegments):
"""Segment a stream network into user-defined length intervals."""

reload(StreamOrder)

# Get output workspace from output feature class
out_wspace = os.path.dirname(outputFCSegments)
out_file = os.path.basename(outputFCSegments)
Expand Down
3 changes: 1 addition & 2 deletions StreamOrder.py
Expand Up @@ -27,7 +27,6 @@ def main(inputFCPolylineNetwork,
inputDownstreamID,
outputFCPolylineStreamOrder,
outputFCIntersectPoints,
outputFCJunctionPoints,
scratchWorkspace= "in_memory"):

# Set processing environments
Expand Down Expand Up @@ -131,7 +130,7 @@ def main(inputFCPolylineNetwork,

arcpy.DeleteIdentical_management(fcStreamOrderTransistionPoints, "Shape")
arcpy.CopyFeatures_management(fcNetworkNodes, outputFCIntersectPoints)
arcpy.CopyFeatures_management(fcNetworkIntersectPoints, outputFCJunctionPoints)
arcpy.CopyFeatures_management(fcNetworkIntersectPoints, outputFCIntersectPoints)

ClearInMemory.main()

Expand Down

0 comments on commit cad68e2

Please sign in to comment.