<?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>idea Add Option {depression} to Contour tool in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/add-option-depression-to-contour-tool/idi-p/1311299</link>
    <description>&lt;P&gt;Dear arcpy.ddd.Contour Tool Development Team,&lt;/P&gt;&lt;P&gt;I am writing to propose the inclusion of a additional options to the Contour tool. The suggested enhancements pertain to the ability to add&amp;nbsp; &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;{depression}&lt;/STRONG&gt; &lt;/FONT&gt;Flag directly within the tool's parameters.&lt;/P&gt;&lt;P&gt;The enhanced tool syntax would appear as follows:&lt;/P&gt;&lt;P&gt;arcpy.ddd.Contour(in_raster, out_polyline_features, contour_interval, {base_contour}, {z_factor}, {contour_type}, {max_vertices_per_feature}, &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;{depression}&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;Since all the&amp;nbsp;&lt;STRONG&gt;depression contours&lt;/STRONG&gt; are output as &lt;STRONG&gt;counter-clockwise&lt;/STRONG&gt; and non-depression contours as clockwise, this feature is very valuable and should be mentioned in the &lt;STRONG&gt;tool's documentation&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Currently, I have to write separate Python code to flag the &lt;STRONG&gt;closed depression contours.&lt;/STRONG&gt; This step is crucial for our flood analysis in urban and sub-urban areas, specifically for flagging closed depression contours.&lt;/P&gt;&lt;P&gt;We would greatly appreciate it if these enhancements could be considered for inclusion in your next release.&lt;/P&gt;&lt;P&gt;Thank you in advance for your attention to this matter.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Wentao Che&lt;BR /&gt;Tokyo, Japan&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2023 23:51:59 GMT</pubDate>
    <dc:creator>WentaoChe</dc:creator>
    <dc:date>2023-07-24T23:51:59Z</dc:date>
    <item>
      <title>Add Option {depression} to Contour tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-option-depression-to-contour-tool/idi-p/1311299</link>
      <description>&lt;P&gt;Dear arcpy.ddd.Contour Tool Development Team,&lt;/P&gt;&lt;P&gt;I am writing to propose the inclusion of a additional options to the Contour tool. The suggested enhancements pertain to the ability to add&amp;nbsp; &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;{depression}&lt;/STRONG&gt; &lt;/FONT&gt;Flag directly within the tool's parameters.&lt;/P&gt;&lt;P&gt;The enhanced tool syntax would appear as follows:&lt;/P&gt;&lt;P&gt;arcpy.ddd.Contour(in_raster, out_polyline_features, contour_interval, {base_contour}, {z_factor}, {contour_type}, {max_vertices_per_feature}, &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;{depression}&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;Since all the&amp;nbsp;&lt;STRONG&gt;depression contours&lt;/STRONG&gt; are output as &lt;STRONG&gt;counter-clockwise&lt;/STRONG&gt; and non-depression contours as clockwise, this feature is very valuable and should be mentioned in the &lt;STRONG&gt;tool's documentation&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Currently, I have to write separate Python code to flag the &lt;STRONG&gt;closed depression contours.&lt;/STRONG&gt; This step is crucial for our flood analysis in urban and sub-urban areas, specifically for flagging closed depression contours.&lt;/P&gt;&lt;P&gt;We would greatly appreciate it if these enhancements could be considered for inclusion in your next release.&lt;/P&gt;&lt;P&gt;Thank you in advance for your attention to this matter.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Wentao Che&lt;BR /&gt;Tokyo, Japan&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 23:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-option-depression-to-contour-tool/idi-p/1311299</guid>
      <dc:creator>WentaoChe</dc:creator>
      <dc:date>2023-07-24T23:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add Option {depression} to Contour tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-option-depression-to-contour-tool/idc-p/1311409#M25770</link>
      <description>&lt;P&gt;have you considered &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/topographic-production/identify-contours.htm" target="_self"&gt;Identify Contours?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 09:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-option-depression-to-contour-tool/idc-p/1311409#M25770</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2023-07-25T09:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add Option {depression} to Contour tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-option-depression-to-contour-tool/idc-p/1311610#M25775</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1398"&gt;@SteveLynch&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you very much for your recommendation.&lt;/P&gt;&lt;P&gt;I would have considered utilizing the &lt;STRONG&gt;arcpy.topographic.IdentifyContours&lt;/STRONG&gt; tool, if we had the required license to use it. It's a pity that we do not have that extension license.&lt;/P&gt;&lt;P&gt;I'm lucky to have the opportunity to open and examine its contents since it's a Python script tool. Nevertheless, it appears quite complex for me to grasp entirely. I'm hoping to find a simpler approach to understand it. Here is a snippet of my code.&lt;/P&gt;&lt;PRE&gt;  depression_count = 0
  query = ' "Flag_tmp" in (2,4) '
  rows = da.UpdateCursor(contour_all,['Shape@','direction2'],query)
  for row in rows:
    partnum = 0
    x_list = []
    y_list = []
    for part in row[0]:
      for pnt in part:
        if pnt:
          x_list.append(pnt.X)
          y_list.append(pnt.Y)
      partnum += 1
    n = len(x_list) - 1
    signedArea = 0.0
    for i in range(n):
      x1 = x_list[i]
      x2 = x_list[i+1]
      y1 = y_list[i]
      y2 = y_list[i+1]
      signedArea += (x2 - x1) * (y2 + y1)
    # Sum over the edges, (x2 − x1)(y2 + y1).
    # If the result is positive the curve is clockwise,
    # if it's negative the curve is counter-clockwise.
    # (The result is twice the enclosed area, with a +/- convention.)
    if signedArea &amp;gt; 0:
      row[1] = 2  # clockwise
    else:
      depression_count += 1
      row[1] = 1  # counter-clockwise
    rows.updateRow(row)
  del rows&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I suggest this idea is that if the ESRI development team could add a {depression} option to the arcpy.ddd.Contour tool, things would become much simpler and faster. It would save a lot of time for every user of this tool.&lt;/P&gt;&lt;P&gt;Thank you so much for your excellent suggestions!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Wentao Che&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 07:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-option-depression-to-contour-tool/idc-p/1311610#M25775</guid>
      <dc:creator>WentaoChe</dc:creator>
      <dc:date>2023-08-10T07:53:18Z</dc:date>
    </item>
  </channel>
</rss>

