<?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: Need convert to Projection CoordinateSystem before geometry.equals for Geographical CoordinateSystem? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/need-convert-to-projection-coordinatesystem-before/m-p/1234945#M66167</link>
    <description>&lt;P&gt;My naïve guess is Find Identical grabs the XY tolerance for the input features and uses that as a delta while Geometry.equals doesn't. I've never run into this as I also use the numpy method in conjunction with the feature's tolerance (or just a quick &lt;EM&gt;abs(a.X - b.X) &amp;lt; tolerance&lt;/EM&gt;&amp;nbsp;style check) but it really should be documented.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 00:29:16 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2022-11-25T00:29:16Z</dc:date>
    <item>
      <title>Need convert to Projection CoordinateSystem before geometry.equals for Geographical CoordinateSystem?</title>
      <link>https://community.esri.com/t5/python-questions/need-convert-to-projection-coordinatesystem-before/m-p/1234797#M66164</link>
      <description>&lt;P&gt;I find when two same geometries with geographical coordinate system compared with geometry.equals(), SOME times return False, but after convert to projection coordinate system, it returns True. I want to know if it needed to convert projection coordinate system before using geometry.equals() every time?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 03:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-convert-to-projection-coordinatesystem-before/m-p/1234797#M66164</guid>
      <dc:creator>pyfans</dc:creator>
      <dc:date>2022-11-24T03:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need convert to Projection CoordinateSystem before geometry.equals for Geographical CoordinateSystem?</title>
      <link>https://community.esri.com/t5/python-questions/need-convert-to-projection-coordinatesystem-before/m-p/1234800#M66165</link>
      <description>&lt;P&gt;From this protracted discussion from several years ago&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/what-can-i-expect-from-arcpy-geometry-equals/td-p/495974" target="_blank" rel="noopener"&gt;What can I expect from ArcPy Geometry .equals meth... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tend to check esri geometries (and those from other sources) by calculating the centroid, area (for polygons) and length/perimeter(for poly* features) then use numpy to compare the two geometry centroids as indicated in my first post there.&amp;nbsp; A similar comparison using `allclose` can be used with whatever tolerance you want for the remaining geometry properties.&amp;nbsp; You are less reliant on what goes on with what affect projecting the data has than on numeric representation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now... if the features are all in the same featureclass, have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/find-identical.htm" target="_blank"&gt;Find Identical (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;including just the geometry field.&amp;nbsp; Perhaps there is some different magic applied in the tool that doesn't exist in arcpy itself&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 04:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-convert-to-projection-coordinatesystem-before/m-p/1234800#M66165</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-11-24T04:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need convert to Projection CoordinateSystem before geometry.equals for Geographical CoordinateSystem?</title>
      <link>https://community.esri.com/t5/python-questions/need-convert-to-projection-coordinatesystem-before/m-p/1234945#M66167</link>
      <description>&lt;P&gt;My naïve guess is Find Identical grabs the XY tolerance for the input features and uses that as a delta while Geometry.equals doesn't. I've never run into this as I also use the numpy method in conjunction with the feature's tolerance (or just a quick &lt;EM&gt;abs(a.X - b.X) &amp;lt; tolerance&lt;/EM&gt;&amp;nbsp;style check) but it really should be documented.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 00:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-convert-to-projection-coordinatesystem-before/m-p/1234945#M66167</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2022-11-25T00:29:16Z</dc:date>
    </item>
  </channel>
</rss>

