<?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: Custom arcpy toolbox tool: Looping through multiple input values with summarize within-tool and calculate field overwrites previous columns in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/custom-arcpy-toolbox-tool-looping-through-multiple/m-p/1564273#M73269</link>
    <description>&lt;P&gt;I think your issues is that arcpy.analysis.SummarizeWithin(input_grid_layer,input_data_parameter,output,shape_unit='SQUAREMETERS') is overwriting the existing content feature class with the results of the current iteration. Maybe create temporary output feature class for each iteration? or ensure that every &lt;SPAN&gt;iteration creates unique field names for the calculated fields.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 19:22:23 GMT</pubDate>
    <dc:creator>TonyAlmeida</dc:creator>
    <dc:date>2024-12-03T19:22:23Z</dc:date>
    <item>
      <title>Custom arcpy toolbox tool: Looping through multiple input values with summarize within-tool and calculate field overwrites previous columns</title>
      <link>https://community.esri.com/t5/python-questions/custom-arcpy-toolbox-tool-looping-through-multiple/m-p/1564169#M73268</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create a python toolbox tool in which I want to give multiple input vector layers, loop through them with summarize within analysis and make two new columns based on each input vector layer with calculate field function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt; I have is that after each iteration the calculate field function overwrites the columns based on the previous input data.&lt;/P&gt;&lt;P&gt;Does anybody know how I can solve this problem?&lt;/P&gt;&lt;P&gt;The whole code can be found here:&amp;nbsp;&lt;A href="https://github.com/Geoc0der/code_in_progress/blob/main/summarizewithin_toolbox_1" target="_blank" rel="noopener"&gt;https://github.com/Geoc0der/code_in_progress/blob/main/summarizewithin_toolbox_1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 17:15:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-arcpy-toolbox-tool-looping-through-multiple/m-p/1564169#M73268</guid>
      <dc:creator>LariJaakkola</dc:creator>
      <dc:date>2024-12-03T17:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom arcpy toolbox tool: Looping through multiple input values with summarize within-tool and calculate field overwrites previous columns</title>
      <link>https://community.esri.com/t5/python-questions/custom-arcpy-toolbox-tool-looping-through-multiple/m-p/1564273#M73269</link>
      <description>&lt;P&gt;I think your issues is that arcpy.analysis.SummarizeWithin(input_grid_layer,input_data_parameter,output,shape_unit='SQUAREMETERS') is overwriting the existing content feature class with the results of the current iteration. Maybe create temporary output feature class for each iteration? or ensure that every &lt;SPAN&gt;iteration creates unique field names for the calculated fields.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 19:22:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-arcpy-toolbox-tool-looping-through-multiple/m-p/1564273#M73269</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2024-12-03T19:22:23Z</dc:date>
    </item>
  </channel>
</rss>

