<?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(DeleteIdentical) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602724#M26744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty sure&amp;nbsp;in order of the ObjectID; so the feature with the greatest OID value remains.&amp;nbsp; But don't take my word for it; try your script on a couple&amp;nbsp;of identical test features to be sure..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2020 15:15:53 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2020-03-27T15:15:53Z</dc:date>
    <item>
      <title>python(DeleteIdentical)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602723#M26743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Name: DeleteIdentical_Example2.py&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Description: Delete identical features in a dataset based on Shape (geometry) and a TEXT field.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Import system modules&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Set workspace environment&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:/data/sbfire.gdb"&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Set input feature class&lt;/SPAN&gt;
in_dataset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"fireincidents"&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Set the field upon which the identicals are found&lt;/SPAN&gt;
fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Shape"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"INTENSITY"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Set the XY tolerance within which to identical records to be deleted&lt;/SPAN&gt;
xy_tol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"0.02 Miles"&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Set the Z tolerance to default&lt;/SPAN&gt;
z_tol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Execute Delete Identical &lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DeleteIdentical_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_dataset&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fields&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; xy_tol&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; z_tol&lt;SPAN class="punctuation token"&gt;)&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG __jive_id="486400" alt="" class="jive-emoji image-1 jive-image" height="353" src="/legacyfs/online/486400_coin popint.JPG" width="555" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;I just want to clarify which order it selects the objects to delete?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance~~~~&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602723#M26743</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2021-12-12T01:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: python(DeleteIdentical)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602724#M26744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty sure&amp;nbsp;in order of the ObjectID; so the feature with the greatest OID value remains.&amp;nbsp; But don't take my word for it; try your script on a couple&amp;nbsp;of identical test features to be sure..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602724#M26744</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-03-27T15:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: python(DeleteIdentical)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602725#M26745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Esri doesn't disclose their exact methodology. In all likelihood, ObjectID/FID is probably used to sort the data set so the lowest OID/FID will be kept and higher marked for deletion.&amp;nbsp; That said, I would not depend on that behavior since it isn't documented, even if it does appear to work that way.&amp;nbsp; The documentation does state that &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/find-identical.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/find-identical.htm"&gt;Find Identical—Data Management toolbox | Documentation&lt;/A&gt; uses the same methodology, whatever that may be, so you can use Find Identical to see what the results would be from running Delete Identical. &amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602725#M26745</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-27T15:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: python(DeleteIdentical)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602726#M26746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do this with a search cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a dictionary of OID keys and values of [SHAPE@, Intensity, Field]&lt;/P&gt;&lt;P&gt;2.Iterate through each OID to find matching SHAPE@ and Intensity and append them to a list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.you should have a list of all OIDs classed as identical by position and Intensity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iterate through that list using the initial dictionary to find where field is N or Y&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 18:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602726#M26746</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-03-27T18:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: python(DeleteIdentical)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602727#M26747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, rolling your own is always an option, and maybe the only option here for the OP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 18:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-deleteidentical/m-p/602727#M26747</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-27T18:49:00Z</dc:date>
    </item>
  </channel>
</rss>

