<?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: Convert state plane coordinate to lat/lon in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/convert-state-plane-coordinate-to-lat-lon/m-p/350086#M27456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcGIS this could be done in a number of ways. You could review these options to see if they'll work with your workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Call the Add XY Coordinates (Data Management) tool after setting the Output Coordinate System environment variable to a system that uses lat/long values, such as WGS1984.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Add XY Coordinates (Data Management)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-xy-coordinates.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-xy-coordinates.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-xy-coordinates.htm&lt;/A&gt; &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Add_XY_Coordinates/001700000032000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Add_XY_Coordinates/001700000032000000/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Call the Project Data Management tool to project the feature class to WGS1984. Then you could calculate the xy coordinates of the points in Lat/Long or parse them in python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Project (Data Management)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm&lt;/A&gt; &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Project/00170000007m000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Project/00170000007m000000/&lt;/A&gt;&lt;/STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use a cursor to project the records within a feature class to WGS1984. This would return you the lat/longs in a tuple if you use the Shape@XY token&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SearchCursor (arcpy.da)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018w00000011000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018w00000011000000&lt;/A&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/searchcursor-class.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/searchcursor-class.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reading Geometries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002z0000001t000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//002z0000001t000000&lt;/A&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/python/reading-geometries.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/python/reading-geometries.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Create a point object and use its projectAs method to project the point to WGS1984, after which you can parse the X and Y values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PointGeometry&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/classes/point.htm"&gt;https://pro.arcgis.com/en/pro-app/arcpy/classes/point.htm&lt;/A&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/pointgeometry.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/pointgeometry.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. NON ESRI : If the data comes in as shapefiles you can use osgeo.ogr to open it, parse the coordinates, and then use pyproj to project it to the needed system.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2015 18:35:39 GMT</pubDate>
    <dc:creator>FreddieGibson</dc:creator>
    <dc:date>2015-09-16T18:35:39Z</dc:date>
    <item>
      <title>Convert state plane coordinate to lat/lon</title>
      <link>https://community.esri.com/t5/python-questions/convert-state-plane-coordinate-to-lat-lon/m-p/350085#M27455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert SPC similar to the earthpoint one linked below. I've found ways to do it, but I need to do it programmatically, preferably in PHP but any language would work. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have a function to do this? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.earthpoint.us/stateplane.aspx" rel="nofollow" target="_blank"&gt;State Plane Coordinate System&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 00:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-state-plane-coordinate-to-lat-lon/m-p/350085#M27455</guid>
      <dc:creator>CalebPitman</dc:creator>
      <dc:date>2014-09-26T00:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert state plane coordinate to lat/lon</title>
      <link>https://community.esri.com/t5/python-questions/convert-state-plane-coordinate-to-lat-lon/m-p/350086#M27456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcGIS this could be done in a number of ways. You could review these options to see if they'll work with your workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Call the Add XY Coordinates (Data Management) tool after setting the Output Coordinate System environment variable to a system that uses lat/long values, such as WGS1984.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Add XY Coordinates (Data Management)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-xy-coordinates.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-xy-coordinates.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-xy-coordinates.htm&lt;/A&gt; &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Add_XY_Coordinates/001700000032000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Add_XY_Coordinates/001700000032000000/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Call the Project Data Management tool to project the feature class to WGS1984. Then you could calculate the xy coordinates of the points in Lat/Long or parse them in python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Project (Data Management)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm&lt;/A&gt; &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Project/00170000007m000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Project/00170000007m000000/&lt;/A&gt;&lt;/STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/project.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use a cursor to project the records within a feature class to WGS1984. This would return you the lat/longs in a tuple if you use the Shape@XY token&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SearchCursor (arcpy.da)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018w00000011000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018w00000011000000&lt;/A&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/searchcursor-class.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/searchcursor-class.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reading Geometries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002z0000001t000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//002z0000001t000000&lt;/A&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/python/reading-geometries.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/python/reading-geometries.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Create a point object and use its projectAs method to project the point to WGS1984, after which you can parse the X and Y values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PointGeometry&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/classes/point.htm"&gt;https://pro.arcgis.com/en/pro-app/arcpy/classes/point.htm&lt;/A&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/pointgeometry.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/pointgeometry.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. NON ESRI : If the data comes in as shapefiles you can use osgeo.ogr to open it, parse the coordinates, and then use pyproj to project it to the needed system.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 18:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-state-plane-coordinate-to-lat-lon/m-p/350086#M27456</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-09-16T18:35:39Z</dc:date>
    </item>
  </channel>
</rss>

