<?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: python - merge polys in arcmap in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682491#M52841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at arcpy.Merge_management() which will combine your FeatureClasses into one FeatureClass as a single polygon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm"&gt;Merge—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also use arcpy.Append_management() however this will combine your FeatureClasses into a single FeatureClass without merging into a single polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm"&gt;Append—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if you needed to combine features in a FeatureClass into a single polygon you want to use arcpy.Dissolve_management()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm"&gt;Dissolve—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 different tools that do essentially the same thing visually on different data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need help on how to use these tools please don't hesitate to ask. There are no dumb question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2019 00:14:19 GMT</pubDate>
    <dc:creator>Jeremy_Moore</dc:creator>
    <dc:date>2019-09-19T00:14:19Z</dc:date>
    <item>
      <title>python - merge polys in arcmap</title>
      <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682490#M52840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings!&amp;nbsp; I have feature data sets that have 1+ polys. The ArcMap merge tool works great. How do I script this type of processing using Python?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx! Gail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 19:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682490#M52840</guid>
      <dc:creator>GailMorrison</dc:creator>
      <dc:date>2019-09-18T19:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: python - merge polys in arcmap</title>
      <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682491#M52841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at arcpy.Merge_management() which will combine your FeatureClasses into one FeatureClass as a single polygon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm"&gt;Merge—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also use arcpy.Append_management() however this will combine your FeatureClasses into a single FeatureClass without merging into a single polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm"&gt;Append—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if you needed to combine features in a FeatureClass into a single polygon you want to use arcpy.Dissolve_management()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm"&gt;Dissolve—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 different tools that do essentially the same thing visually on different data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need help on how to use these tools please don't hesitate to ask. There are no dumb question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 00:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682491#M52841</guid>
      <dc:creator>Jeremy_Moore</dc:creator>
      <dc:date>2019-09-19T00:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: python - merge polys in arcmap</title>
      <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682492#M52842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think I asked the question correctly.&amp;nbsp; The above answer is for merging datasets.&amp;nbsp; I need a script to merge polygons within each dataset.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 17:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682492#M52842</guid>
      <dc:creator>GailMorrison</dc:creator>
      <dc:date>2019-09-19T17:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: python - merge polys in arcmap</title>
      <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682493#M52843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to make sure we are on the same page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say dataset are you referring to a feature dataset, which is a collection of related feature classes that share a common coordinate system? Or are you referring to polygon features in a single feature class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize if I'm being dense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 17:48:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682493#M52843</guid>
      <dc:creator>Jeremy_Moore</dc:creator>
      <dc:date>2019-09-19T17:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: python - merge polys in arcmap</title>
      <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682494#M52844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, you are not being dense.&amp;nbsp; I am being sloppy with my verbaige.&amp;nbsp; I&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;am&lt;/SPAN&gt;&amp;nbsp;referring to polygon features in a single feature class&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 17:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682494#M52844</guid>
      <dc:creator>GailMorrison</dc:creator>
      <dc:date>2019-09-19T17:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: python - merge polys in arcmap</title>
      <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682495#M52845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, so polygon features in a feature class. You would want to use arcpy.Dissolve_management()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm"&gt;Dissolve—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need a code example let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 18:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682495#M52845</guid>
      <dc:creator>Jeremy_Moore</dc:creator>
      <dc:date>2019-09-19T18:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: python - merge polys in arcmap</title>
      <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682496#M52846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The catch is that I need to keep all the fields in the attribute table. Unless I calculate all the field values to be the same, this won't work for what I need.&amp;nbsp; Example:&amp;nbsp; Fields = sqmi, sqft, sqkm, name.&amp;nbsp; If I dissolve on Name, the other 3 fields drop out of the feature class.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 18:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682496#M52846</guid>
      <dc:creator>GailMorrison</dc:creator>
      <dc:date>2019-09-19T18:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: python - merge polys in arcmap</title>
      <link>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682497#M52847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the delay in getting back to you. I have been playing around with some other tools to try to find a solution for you. Once the geometry has been combined and the attributes limited down to a single row, do you need any information in that row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been able to preserve your fields. Try this script and see how it works for you&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

inFeatureClass &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Users\JohnDoe\Documents\ArcGIS\Projects\General\General.gdb\dissolve_polygons"&lt;/SPAN&gt;
outFeatureClass &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Users\JohnDoe\Documents\ArcGIS\Projects\General\General.gdb\dissolve_test"&lt;/SPAN&gt;
listFields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFields&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inFeatureClass&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Dissolving polys"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Dissolve_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inFeatureClass&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outFeatureClass&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Adding Fields"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; addField &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; listFields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outFeatureClass&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; addField&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; addField&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;type&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; addField&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;continue&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-merge-polys-in-arcmap/m-p/682497#M52847</guid>
      <dc:creator>Jeremy_Moore</dc:creator>
      <dc:date>2021-12-12T04:42:43Z</dc:date>
    </item>
  </channel>
</rss>

