<?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 arcgis.geometry.project Not Returning Correct Coordinates in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-project-not-returning-correct/m-p/1183260#M7495</link>
    <description>&lt;P&gt;I'm trying to use the API for Python to project coordinate pairs from Iowa NAD83 State Plane North 2011 (wkid: 6463) to Web Mercator Auxiliary Sphere (wkid: 3857) and keep getting incorrect output coordinates even when providing a transformation using arcgis.geometry.project.&lt;/P&gt;&lt;P&gt;A sample input coordinate pair:&lt;/P&gt;&lt;P&gt;x:&amp;nbsp;5473781.44689313&lt;/P&gt;&lt;P&gt;y:&amp;nbsp;3528213.97180123&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output coordinate pair should be the following.&amp;nbsp; I know this is correct because if I project the source dataset and overlay the two, they are right on top of each other, as expected.&lt;/P&gt;&lt;P&gt;x:&amp;nbsp;-10181495.7632&lt;/P&gt;&lt;P&gt;y:&amp;nbsp;5185060.8775&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I use the Python API (code below), I get the following coordinate pair:&lt;/P&gt;&lt;P&gt;x:&amp;nbsp;-10181494.235273974&lt;/P&gt;&lt;P&gt;y:&amp;nbsp;5185058.5577987395&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Python API is returning a point that is about 3 meters offset from where it should be.&amp;nbsp; Is this a bug?&amp;nbsp; Am I not inputting the correct values into the code below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# set geometry
geometry_in = arcgis.geometry.Point({'x': 5473781.44689313, 'y': 3528213.97180123, 'spatialReference': {'wkid': 6463}})
# project geometry
geometry_projected = arcgis.geometry.project(geometries=[geometries_in], in_sr=6463, out_sr=3857, transformation=108363)
# get projected geometry
geometry = geometry_projected[0]
# get coordinate values
coord_x = geometry['x']
coord_y = geometry['y']
# show values
print(geometry)
print(coord_x)
print(coord_y)

{'x': -10181494.235273974, 'y': 5185058.5577987395, 'spatialReference': {'wkid': 102100, 'latestWkid': 3857}}
-10181494.235273974
5185058.5577987395 &lt;/LI-CODE&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;I am getting the transformation WKID from Pro, shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_0-1655318844338.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43552i6A5537DD835C9B1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_0-1655318844338.png" alt="mpboyle_0-1655318844338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 18:58:48 GMT</pubDate>
    <dc:creator>mpboyle</dc:creator>
    <dc:date>2022-06-15T18:58:48Z</dc:date>
    <item>
      <title>arcgis.geometry.project Not Returning Correct Coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-project-not-returning-correct/m-p/1183260#M7495</link>
      <description>&lt;P&gt;I'm trying to use the API for Python to project coordinate pairs from Iowa NAD83 State Plane North 2011 (wkid: 6463) to Web Mercator Auxiliary Sphere (wkid: 3857) and keep getting incorrect output coordinates even when providing a transformation using arcgis.geometry.project.&lt;/P&gt;&lt;P&gt;A sample input coordinate pair:&lt;/P&gt;&lt;P&gt;x:&amp;nbsp;5473781.44689313&lt;/P&gt;&lt;P&gt;y:&amp;nbsp;3528213.97180123&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output coordinate pair should be the following.&amp;nbsp; I know this is correct because if I project the source dataset and overlay the two, they are right on top of each other, as expected.&lt;/P&gt;&lt;P&gt;x:&amp;nbsp;-10181495.7632&lt;/P&gt;&lt;P&gt;y:&amp;nbsp;5185060.8775&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I use the Python API (code below), I get the following coordinate pair:&lt;/P&gt;&lt;P&gt;x:&amp;nbsp;-10181494.235273974&lt;/P&gt;&lt;P&gt;y:&amp;nbsp;5185058.5577987395&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Python API is returning a point that is about 3 meters offset from where it should be.&amp;nbsp; Is this a bug?&amp;nbsp; Am I not inputting the correct values into the code below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# set geometry
geometry_in = arcgis.geometry.Point({'x': 5473781.44689313, 'y': 3528213.97180123, 'spatialReference': {'wkid': 6463}})
# project geometry
geometry_projected = arcgis.geometry.project(geometries=[geometries_in], in_sr=6463, out_sr=3857, transformation=108363)
# get projected geometry
geometry = geometry_projected[0]
# get coordinate values
coord_x = geometry['x']
coord_y = geometry['y']
# show values
print(geometry)
print(coord_x)
print(coord_y)

{'x': -10181494.235273974, 'y': 5185058.5577987395, 'spatialReference': {'wkid': 102100, 'latestWkid': 3857}}
-10181494.235273974
5185058.5577987395 &lt;/LI-CODE&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;I am getting the transformation WKID from Pro, shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_0-1655318844338.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43552i6A5537DD835C9B1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_0-1655318844338.png" alt="mpboyle_0-1655318844338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 18:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-project-not-returning-correct/m-p/1183260#M7495</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2022-06-15T18:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.geometry.project Not Returning Correct Coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-project-not-returning-correct/m-p/1183332#M7496</link>
      <description>&lt;P&gt;You should raise an "issue" on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api" target="_self"&gt;Esri/arcgis-python-api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 21:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-project-not-returning-correct/m-p/1183332#M7496</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-06-15T21:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.geometry.project Not Returning Correct Coordinates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-project-not-returning-correct/m-p/1187872#M7532</link>
      <description>&lt;P&gt;If you remove the transformation=108363 you get very close to the results you are expecting&lt;/P&gt;&lt;P&gt;-10181495.766109616&lt;BR /&gt;5185060.870568912&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 16:03:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-project-not-returning-correct/m-p/1187872#M7532</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2022-06-29T16:03:16Z</dc:date>
    </item>
  </channel>
</rss>

