<?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: Discrepancy in measured distance between two point features and distance between point geometries built from their coordinates in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1508936#M10367</link>
    <description>&lt;P&gt;what is the spatial reference of the map if you are using the distance tool?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 22:43:06 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-07-23T22:43:06Z</dc:date>
    <item>
      <title>Discrepancy in measured distance between two point features and distance between point geometries built from their coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1508872#M10366</link>
      <description>&lt;P&gt;I can't quite figure out how to reconcile the difference in reported footage between the following two methods. e.g.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;feature1.distanceTo(feature2) -&amp;gt; 1,810 feet&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and using the point returned by .firstPoint for each of the features:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        def get_dist(coord1: tuple, coord2: tuple):
            sr = arcpy.SpatialReference(3418)
            p1 = arcpy.PointGeometry(arcpy.Point(coord1[0], coord1[1]), sr)
            p2 = arcpy.PointGeometry(arcpy.Point(coord2[0], coord1[1]), sr)
            return round(p1.distanceTo(p2), 3) -&amp;gt; ~1,760 feet&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;method 1 agrees with the measure distance tool but the second is off ~60 feet. This looks like a projection issue and I'm guessing that even though I build the point geometries with the same spatial reference as the features, that the coordinates returned from .firstPoint (lacking a spatial reference) are wrong. I don't need to do it this way very often but sometimes coordinates are what I have on hand at a certain point in the code and so I'm just trying to "rebuild" the feature's location to then get the distance from.&lt;BR /&gt;&lt;BR /&gt;How can I keep the position I received from the feature accurate for when I rebuild the geometry?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 20:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1508872#M10366</guid>
      <dc:creator>Glasnoct</dc:creator>
      <dc:date>2024-07-23T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy in measured distance between two point features and distance between point geometries built from their coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1508936#M10367</link>
      <description>&lt;P&gt;what is the spatial reference of the map if you are using the distance tool?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 22:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1508936#M10367</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-07-23T22:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy in measured distance between two point features and distance between point geometries built from their coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1509230#M10369</link>
      <description>&lt;P&gt;map and feature layers are all using 4813 NAD 1983 StatePlane Iowa South FIPS 1402 (US Feet)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 13:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1509230#M10369</guid>
      <dc:creator>Glasnoct</dc:creator>
      <dc:date>2024-07-24T13:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy in measured distance between two point features and distance between point geometries built from their coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1509265#M10370</link>
      <description>&lt;P&gt;I can't see anything here&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/measure.htm" target="_blank"&gt;Measure—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that would account for that difference if you are using 2d planar distance measurements&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 14:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1509265#M10370</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-07-24T14:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy in measured distance between two point features and distance between point geometries built from their coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1509479#M10371</link>
      <description>&lt;P&gt;I'm using the geodesic option, which agrees with the original geometry method.&lt;BR /&gt;&lt;BR /&gt;edit: the reconstructed point distance is now reporting a distance identical to the original geometry distance. I don't believe I changed anything between yesterday and today. Perhaps when ArcPro was restarted this morning something ironed itself out. Glad I don't have to chase down this particular issue anymore. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 18:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1509479#M10371</guid>
      <dc:creator>Glasnoct</dc:creator>
      <dc:date>2024-07-24T18:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy in measured distance between two point features and distance between point geometries built from their coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1509510#M10372</link>
      <description>&lt;P&gt;I don't know what your point coordinates are, so do a hand calculation of the distance between the two points using pythagorean method and report which one it gives,&lt;/P&gt;&lt;P&gt;Also in&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/pointgeometry.htm" target="_blank" rel="noopener"&gt;PointGeometry—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;gives an alternate method which explicitly allows for geodesic distance calculation, give it a try as well&lt;/P&gt;&lt;P&gt;angleAndDistanceTo (other, {method})&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 18:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/discrepancy-in-measured-distance-between-two-point/m-p/1509510#M10372</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-07-24T18:44:48Z</dc:date>
    </item>
  </channel>
</rss>

