<?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: Eliminate tool creates holes and overlaps in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/eliminate-tool-creates-holes-and-overlaps/m-p/1630070#M27599</link>
    <description>&lt;P&gt;Would you be able to provide the data as well?&amp;nbsp; This could be related to the data properties that are inherited during processing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2025 18:20:34 GMT</pubDate>
    <dc:creator>KenHartling</dc:creator>
    <dc:date>2025-07-03T18:20:34Z</dc:date>
    <item>
      <title>Eliminate tool creates holes and overlaps</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/eliminate-tool-creates-holes-and-overlaps/m-p/1624254#M27590</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem with the Eliminate tool (again). Basically, I have noticed that this tool will modify some polygons that are not originally selected. It will end in some holes being created or some overlap in other polygons. Here is an example:&lt;/P&gt;&lt;P&gt;Good ouput (done with geoprocessing tool in Arcgis pro)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_0-1750160983212.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134494iCC0D38807FD4FF0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_0-1750160983212.png" alt="AnneMarieDubois_0-1750160983212.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here are my tool parameter:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_0-1750161542477.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134497i8DE2E0CD6228E0E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_0-1750161542477.png" alt="AnneMarieDubois_0-1750161542477.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bad output (with script)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_1-1750160981404.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134495i9E29DF5803FB3F16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_1-1750160981404.png" alt="AnneMarieDubois_1-1750160981404.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Superficie_minimale = 1
select_sup_minimale = f"Shape_area &amp;lt; {Superficie_minimale}"

# Éliminer les polygones trop petits
arcpy.management.MakeFeatureLayer(in_features=ZONE_DETAILS_merge_TROUS, out_layer="poly_a_fusionner")

arcpy.management.SelectLayerByAttribute(in_layer_or_view="poly_a_fusionner", selection_type="NEW_SELECTION", where_clause=select_sup_minimale, invert_where_clause="NON_INVERT")
    
OCCUPATION_TERRITOIRE = fr"{Resultat}\OCCUPATION_TERRITOIRE"

arcpy.management.Eliminate(in_features="poly_a_fusionner", out_feature_class=OCCUPATION_TERRITOIRE, selection="LENGTH")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 15:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/eliminate-tool-creates-holes-and-overlaps/m-p/1624254#M27590</guid>
      <dc:creator>Anne-MarieDubois</dc:creator>
      <dc:date>2025-06-17T15:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate tool creates holes and overlaps</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/eliminate-tool-creates-holes-and-overlaps/m-p/1624261#M27591</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;well... again, it turns out I was the problem. The issue came along later on when the output is passed as spatial dataframe to make some calculations before returning to a feature class. I guess spatial.to_featureclasse does not deal well with complex geometries. Using a cursor instead to pass the new fields solved the issue.&lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;UPDATE: No the problem is really the eliminate tool... I have run again my tests and no matter what I do, this tool modifies some polygons to create holes and overlaps&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 15:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/eliminate-tool-creates-holes-and-overlaps/m-p/1624261#M27591</guid>
      <dc:creator>Anne-MarieDubois</dc:creator>
      <dc:date>2025-06-17T15:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate tool creates holes and overlaps</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/eliminate-tool-creates-holes-and-overlaps/m-p/1630070#M27599</link>
      <description>&lt;P&gt;Would you be able to provide the data as well?&amp;nbsp; This could be related to the data properties that are inherited during processing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 18:20:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/eliminate-tool-creates-holes-and-overlaps/m-p/1630070#M27599</guid>
      <dc:creator>KenHartling</dc:creator>
      <dc:date>2025-07-03T18:20:34Z</dc:date>
    </item>
  </channel>
</rss>

