<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650361#M9367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Typically, one would run the Flow Length tool on a hydrologically-correct elevation surface, then take the output raster and generate lines from it using Stream to Feature, then use the shape.length property of the lines to check the distance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/An_overview_of_the_Hydrology_tools/009z0000004w000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/An_overview_of_the_Hydrology_tools/009z0000004w000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; - overview of the Hydrology toolset&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z00000053000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z00000053000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp; - Flow Length&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Stream_to_Feature/009z00000058000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Stream_to_Feature/009z00000058000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp; - Stream to Feature&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Flow_Direction/009z00000052000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Flow_Direction/009z00000052000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp;&amp;nbsp; - Flow Direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;- These all require access to the Spatial Analyst Extension.&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Before one can run Flow Length and Stream to Feature, one needs to run &lt;EM&gt;Flow Direction.&amp;nbsp; &lt;/EM&gt;It is assumed at this point that one has a "depressionless DEM" already; if not, there are several&amp;nbsp; processes that will need to be run first.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Creating_a_depressionless_DEM/009z0000005q000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Creating_a_depressionless_DEM/009z0000005q000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp; - Creating a Depressionless DEM&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 19:16:29 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2016-10-06T19:16:29Z</dc:date>
    <item>
      <title>using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650360#M9366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you find the longest flow path with the Flow Length tool in Spatial Analyst's Hydrology Toolbox?&amp;nbsp; In the ArcGIS Help, it states&amp;nbsp; "A primary use of the &lt;SPAN&gt;Flow Length&lt;/SPAN&gt; tool is to calculate the length of the longest flow path within a given basin".&amp;nbsp; &lt;/P&gt;&lt;P&gt;How?&amp;nbsp; I know that Arc Hydro has a tool that does this, and I have used it before - but I was wondering if it is possible to find the longest flow path with the output from the Flow Length tool without using the ArcHydro tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any insight you can provide!&lt;/P&gt;&lt;P&gt;A. Wynn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 18:29:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650360#M9366</guid>
      <dc:creator>AnneWynn</dc:creator>
      <dc:date>2016-10-06T18:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650361#M9367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Typically, one would run the Flow Length tool on a hydrologically-correct elevation surface, then take the output raster and generate lines from it using Stream to Feature, then use the shape.length property of the lines to check the distance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/An_overview_of_the_Hydrology_tools/009z0000004w000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/An_overview_of_the_Hydrology_tools/009z0000004w000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; - overview of the Hydrology toolset&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z00000053000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z00000053000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp; - Flow Length&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Stream_to_Feature/009z00000058000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Stream_to_Feature/009z00000058000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp; - Stream to Feature&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Flow_Direction/009z00000052000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Flow_Direction/009z00000052000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp;&amp;nbsp; - Flow Direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;- These all require access to the Spatial Analyst Extension.&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Before one can run Flow Length and Stream to Feature, one needs to run &lt;EM&gt;Flow Direction.&amp;nbsp; &lt;/EM&gt;It is assumed at this point that one has a "depressionless DEM" already; if not, there are several&amp;nbsp; processes that will need to be run first.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Creating_a_depressionless_DEM/009z0000005q000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Creating_a_depressionless_DEM/009z0000005q000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp; - Creating a Depressionless DEM&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 19:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650361#M9367</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2016-10-06T19:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650362#M9368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;I had initially thought of that, but my watershed area 55 sq. miles.&amp;nbsp; There are 50519 stream segments in the attribute table.&amp;nbsp; Should I parse it out by grid_code value first?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:00:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650362#M9368</guid>
      <dc:creator>AnneWynn</dc:creator>
      <dc:date>2016-10-06T20:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650363#M9369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm, I haven't done one of these in a few years, so I'm scratching my head trying to remember what I did to find the longest length once I had the stream segments.&amp;nbsp; I remember adding a &lt;EM&gt;Stream Order&lt;/EM&gt; and a &lt;EM&gt;Stream Link&lt;/EM&gt; to help organize the output, but forget what the process was to find the longest combination from the outputs.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/How_Stream_Order_works/009z000000z3000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/How_Stream_Order_works/009z000000z3000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; How Stream Order Works&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z00000057000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z00000057000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; Stream Order&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Stream_Link/009z00000056000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Stream_Link/009z00000056000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; Stream Link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 21:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650363#M9369</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2016-10-06T21:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650364#M9370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternative method to find the longest flow length uses a &lt;EM&gt;Geometric Network&lt;/EM&gt; after deriving the stream network from &lt;EM&gt;Spatial Analyst&lt;/EM&gt;.&amp;nbsp; Refer to this pdf:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Exercise 4.&amp;nbsp; Watershed and Stream Network Delineation&lt;/P&gt;&lt;P&gt;GIS and Water Resources, Fall 2013&lt;/P&gt;&lt;P&gt;Prepared by David G Tarboton and David R. Maidment&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=3&amp;amp;ved=0ahUKEwjPoomymsfPAhVP2mMKHa3xD4oQFggsMAI&amp;amp;url=http%3A%2F%2Fwww.caee.utexas.edu%2Fprof%2Fmaidment%2Fgiswr2012%2FEx4%2FEx42012.pdf&amp;amp;usg=AFQjCNFUC1_2QUlLhvbxLUEAJtr6N4P3Vw&amp;amp;cad=rja" title="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=3&amp;amp;ved=0ahUKEwjPoomymsfPAhVP2mMKHa3xD4oQFggsMAI&amp;amp;url=http%3A%2F%2Fwww.caee.utexas.edu%2Fprof%2Fmaidment%2Fgiswr2012%2FEx4%2FEx42012.pdf&amp;amp;usg=AFQjCNFUC1_2QUlLhvbxLUEAJtr6N4P3Vw&amp;amp;cad=rja"&gt;https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=3&amp;amp;ved=0ahUKEwjPoomymsfPAhVP2mMKHa3xD4oQFggsMAI&amp;amp;url=http%3A…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See page 57, and also the proceeding section on setting up the &lt;EM&gt;Geometric Network&lt;/EM&gt;.&amp;nbsp; They do state that it is somewhat trial and error, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 22:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650364#M9370</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2016-10-06T22:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650365#M9371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After running the Flow Length tool, I ran the Stream Order tool, and then used the output from the Stream Order tool for the Stream to Feature tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I have, perhaps, run the Stream Link tool, then the Stream Order tool, and then the Stream to Feature tool?&amp;nbsp; Would that help structure the stream data further and allow me to find the longest flow path?..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 02:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650365#M9371</guid>
      <dc:creator>AnneWynn</dc:creator>
      <dc:date>2016-10-07T02:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650366#M9372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for providing this other option, Chris.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had thought about using a geometric network, but was having difficulties in setting one up.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 02:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650366#M9372</guid>
      <dc:creator>AnneWynn</dc:creator>
      <dc:date>2016-10-07T02:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650367#M9373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is how I've used the spatial analyst tools to return a longest flow path line from&amp;nbsp;the top of a watershed hope this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy.sa import *
from arcpy import env

watershed =&amp;nbsp; # Path to watershed polygon
dem =&amp;nbsp; # Path to DEM
fdr =&amp;nbsp; # path to flow direction
env.workspace = # path to output workspace
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;try&lt;/SPAN&gt;:&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;intermediate&lt;/SPAN&gt; = []&amp;nbsp; # Empty container for intermediate data&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;SPAN style="background-color: #40332b;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;fdrClip&lt;/SPAN&gt; = ExtractByMask(fdr&lt;SPAN style="color: #cc7832;"&gt;, watershed&lt;/SPAN&gt;) # Clip the flow direction raster to the watershed polygon&lt;/PRE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.SetProgressorLabel(&lt;SPAN style="color: #a5c261;"&gt;"Computing longest flow path for the basin..."&lt;/SPAN&gt;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;flowLength = Int(FlowLength(fdrClip&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"DOWNSTREAM"&lt;/SPAN&gt;)) # Compute a downstream flow length raster&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.CalculateStatistics_management(flowLength)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;maxValue = &lt;SPAN style="color: #8888c6;"&gt;int&lt;/SPAN&gt;(arcpy.GetRasterProperties_management(flowLength&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"MAXIMUM"&lt;/SPAN&gt;).getOutput(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;)) # Get the maximum cell value from the flow length&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;maxCell = Con(flowLength&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"1"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;where_clause&lt;/SPAN&gt;=&lt;SPAN style="color: #a5c261;"&gt;"Value = {}"&lt;/SPAN&gt;.format(&lt;SPAN style="color: #8888c6;"&gt;repr&lt;/SPAN&gt;(maxValue))) # Return the maximum cell from flow length&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;lfpRas = CostPath(maxCell&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;dem&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;fdrClip&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;destination_field&lt;/SPAN&gt;=&lt;SPAN style="color: #a5c261;"&gt;"Value"&lt;/SPAN&gt;) # Use cost path to compute raster line from the max cell&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;intermediate.append(lfpRas)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;rasLine = arcpy.RasterToPolyline_conversion(lfpRas&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"rasLine"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"ZERO"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;simplify&lt;/SPAN&gt;=&lt;SPAN style="color: #a5c261;"&gt;"NO_SIMPLIFY"&lt;/SPAN&gt;) # Generate a polyline from the cost path raster&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;intermediate.append(rasLine)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;lfp = arcpy.Dissolve_management(rasLine&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"LongestFlowPath"&lt;/SPAN&gt;) # Dissolve the polyline to generate a single longest flow path line&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;intermediate.append(lfp)&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;finally&lt;/SPAN&gt;:
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;# Clean up intermediate data
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;arcpy.SetProgressorLabel(&lt;SPAN style="color: #a5c261;"&gt;"Removing Intermediate data... "&lt;/SPAN&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;for &lt;/SPAN&gt;data &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;in &lt;/SPAN&gt;intermediate:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(data)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;del &lt;/SPAN&gt;intermediate&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650367#M9373</guid>
      <dc:creator>LukeSturtevant</dc:creator>
      <dc:date>2021-12-12T03:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650368#M9374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for providing this info, Luke!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650368#M9374</guid>
      <dc:creator>AnneWynn</dc:creator>
      <dc:date>2017-02-07T16:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650369#M9375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that Luke and others have answered this question, but I also wanted to throw out there that I build a toolbox that does this and wrote a blog post on it.&amp;nbsp; The tool is at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=fc7c1ca07e4844d7b722049b503b0fb2" title="https://www.arcgis.com/home/item.html?id=fc7c1ca07e4844d7b722049b503b0fb2"&gt;https://www.arcgis.com/home/item.html?id=fc7c1ca07e4844d7b722049b503b0fb2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the blog post is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://gislandscapeecology.blogspot.com/2018/12/miscellaneous-hydrology-tools-for.html" title="http://gislandscapeecology.blogspot.com/2018/12/miscellaneous-hydrology-tools-for.html"&gt;GIS Tools and Techniques for Landscape Ecological Research: Miscellaneous Hydrology Tools for ArcGIS - Find Longest Stre…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The blog post is part of a series that describes the different tools in the Miscellaneous Hydrology Toolbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Tom Dilts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Feb 2019 19:10:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650369#M9375</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2019-02-03T19:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650370#M9376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks great Thomas thanks. I'm not sure if the download link is working for other people, but it is downloading an empty zip file for me for some reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 15:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650370#M9376</guid>
      <dc:creator>LukeSturtevant</dc:creator>
      <dc:date>2019-02-04T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: using the Flow Length tool in Spatial Analyst's Hydrology Toolbox to find the Longest Flow Path</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650371#M9377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke. Thanks for pointing that out.&amp;nbsp; I've updated the zip file so that it is no longer empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/using-the-flow-length-tool-in-spatial-analyst-s/m-p/650371#M9377</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2019-02-04T17:12:12Z</dc:date>
    </item>
  </channel>
</rss>

