<?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: Calculate geometry (lat/long for a projected points layer) with python geoprocess in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522308#M17370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try an UpdateCursor with a spatial reference set to the datum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001w000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001w000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the XY values returned from the geometry should be in lat/long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 13:26:21 GMT</pubDate>
    <dc:creator>BruceHarold</dc:creator>
    <dc:date>2012-05-21T13:26:21Z</dc:date>
    <item>
      <title>Calculate geometry (lat/long for a projected points layer) with python geoprocessing</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522304#M17366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As part of a longer script I'm writing, I need to add fields to my points layer and put the lat/long coordinates in those fields.&amp;nbsp; This is so EASY to do manually by opening the attributes table, adding the fields, and doing a "Calculate geometry."&amp;nbsp; There's an option to tell it what units you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I keep trying to find a way to do this with python geoprocessing, and I can't figure it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using AddXY_Management, but this only yields the X and Y coordinates in whatever projection my points layer happens to be in.&amp;nbsp; CalculateField_Management won't let me specify the units for a points layer (or if it does, I can't figure out how).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know how to do this?&amp;nbsp; I feel like it should be easy and I'm just missing the magic python command.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 19:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522304#M17366</guid>
      <dc:creator>MelindaMorang1</dc:creator>
      <dc:date>2012-05-19T19:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geometry (lat/long for a projected points layer) with python geoprocess</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522305#M17367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You will have to use the project tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Project/00170000007m000000/" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Project/00170000007m000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;produce a new file to your desired coordinate system then the addxy tool, there is no option to project on the fly using python as you can by setting the coordinate system of the data frame then using it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 09:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522305#M17367</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-05-20T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geometry (lat/long for a projected points layer) with python geoprocess</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522306#M17368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is super annoying.&amp;nbsp; That's what I was trying to avoid.&amp;nbsp; A points layer in a projected coordinate system has a geographic coordinate system with lat/long underneath, right?&amp;nbsp; For that reason, I don't see why there isn't a way to get lat/long even if the data is projected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 10:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522306#M17368</guid>
      <dc:creator>MelindaMorang1</dc:creator>
      <dc:date>2012-05-20T10:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geometry (lat/long for a projected points layer) with python geoprocess</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522307#M17369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I agree, but there is only one coordinate system for the coordinates, long/lat and projected coordinates aren't stored in the same file.&amp;nbsp; It should operate as the calculate geometry done via the interface.&amp;nbsp; If you are interested post on the ArcGIS Ideas site&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/"&gt;http://ideas.arcgis.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 11:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522307#M17369</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-05-20T11:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geometry (lat/long for a projected points layer) with python geoprocess</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522308#M17370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try an UpdateCursor with a spatial reference set to the datum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001w000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001w000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the XY values returned from the geometry should be in lat/long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 13:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-lat-long-for-a-projected-points/m-p/522308#M17370</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2012-05-21T13:26:21Z</dc:date>
    </item>
  </channel>
</rss>

