<?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 arcpy.projectAs returns different results depending on where it is run in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-projectas-returns-different-results/m-p/1284159#M67547</link>
    <description>&lt;P&gt;I have some simple code that projects a point.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pt = arcpy.PointGeometry(arcpy.Point(687577.9340000004, 2134343.1621000003), spatial_reference="USA_Contiguous_Albers_Equal_Area_Conic_USGS_version")
pt_projected = pt.projectAs('4326')
print ("Projected x,y : %s,%s" % (str(pt_projected.firstPoint.X), str(pt_projected.firstPoint.Y)))&lt;/LI-CODE&gt;&lt;P&gt;It seems to return different results as shown below. This first is produced when running in the ArcGIS Pro 3.1 Python window and also in my Spyder/IPython environment. The second is produced when I run it in a python toolbox (and I think when I run it after publishing the toolbox to an ArcGIS Server).&amp;nbsp; Can anybody explain this difference?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Projected x,y : -87.63855949198765,41.938884076168215&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Projected x,y : -87.63856525044517,41.93889193970926&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Apr 2023 01:24:44 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2023-04-30T01:24:44Z</dc:date>
    <item>
      <title>arcpy.projectAs returns different results depending on where it is run</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-projectas-returns-different-results/m-p/1284159#M67547</link>
      <description>&lt;P&gt;I have some simple code that projects a point.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pt = arcpy.PointGeometry(arcpy.Point(687577.9340000004, 2134343.1621000003), spatial_reference="USA_Contiguous_Albers_Equal_Area_Conic_USGS_version")
pt_projected = pt.projectAs('4326')
print ("Projected x,y : %s,%s" % (str(pt_projected.firstPoint.X), str(pt_projected.firstPoint.Y)))&lt;/LI-CODE&gt;&lt;P&gt;It seems to return different results as shown below. This first is produced when running in the ArcGIS Pro 3.1 Python window and also in my Spyder/IPython environment. The second is produced when I run it in a python toolbox (and I think when I run it after publishing the toolbox to an ArcGIS Server).&amp;nbsp; Can anybody explain this difference?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Projected x,y : -87.63855949198765,41.938884076168215&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Projected x,y : -87.63856525044517,41.93889193970926&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 01:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-projectas-returns-different-results/m-p/1284159#M67547</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2023-04-30T01:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.projectAs returns different results depending on where it is run</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-projectas-returns-different-results/m-p/1284161#M67548</link>
      <description>&lt;P&gt;have you ruled out 64bit vs 32bit precision differences between the platforms?&lt;/P&gt;&lt;P&gt;is there transformation option for projectAs that isn't accounted for?&lt;/P&gt;&lt;P&gt;Seen before...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/using-projectas-point-geometry-function-via-python/td-p/540398" target="_blank"&gt;Solved: Using 'projectAs()' Point Geometry Function Via Py... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 08:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-projectas-returns-different-results/m-p/1284161#M67548</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-04-30T08:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.projectAs returns different results depending on where it is run</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-projectas-returns-different-results/m-p/1284169#M67549</link>
      <description>&lt;P&gt;I added the 'transformation_name' parameter on the projectAs call and now I get the same results in all environments. Thanks for the pointer Dan!&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pt = arcpy.PointGeometry(arcpy.Point(687577.9340000004, 2134343.1621000003), spatial_reference="USA_Contiguous_Albers_Equal_Area_Conic_USGS_version")
pt_projected = pt.projectAs('4326','WGS_1984_(ITRF00)_To_NAD_1983')
print ("Projected x,y : %s,%s" % (str(pt_projected.firstPoint.X), str(pt_projected.firstPoint.Y)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 13:18:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-projectas-returns-different-results/m-p/1284169#M67549</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2023-04-30T13:18:59Z</dc:date>
    </item>
  </channel>
</rss>

