<?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 Reprojecting tabular data without creating feature class? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112413#M8756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I realize I may draw the scorn from the community for asking the way I'm asking but ...&lt;EM&gt;&lt;STRONG&gt;Is there an easy way&lt;/STRONG&gt; &lt;/EM&gt;(easier than what I'm doing) to read Lat/Lon values stored in a non-spatial SQL table, reproject them and&amp;nbsp;write the new values back to same or other table?&amp;nbsp;Since&amp;nbsp;this is for a non-GIS audience, I don't have any use for creating an intermediate&amp;nbsp;feature class. I found &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-xy-coordinates.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;arcpy.AddXY_management&lt;/A&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;. But I believe, as most other scenarios I could come up with, requires a feature class. Basically, I'm curious if there is another way to do this without creating a feature class.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;This is what I tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import pyodbc

sql_conn = pyodbc.connect('''bla bla bla''') 
query = '''SELECT [LATITUDE],[LONGITUDE]
           FROM MyTable'''

cursor = sql_conn.cursor()
cursor.execute(query)

ptDataRows = []

for row in cursor.fetchall():
    #Turn cursor row into list
    ptDataRows.append([x for x in row])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;I was bringing in additional attributes from my source table which I'm leaving out in this example. But a longer list would be the only difference.&amp;nbsp;Next&amp;nbsp;I'm working with the Lat/Lon columns to create point geometries and then&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

src_sr = arcpy.SpatialReference(4267) 
dest_sr = arcpy.SpatialReference(4326)

for i,row in enumerate(ptDataRows):

&amp;nbsp; &amp;nbsp; pt = arcpy.Point(row[0],row[1])
&amp;nbsp; &amp;nbsp; ptGeom = arcpy.PointGeometry(pt, src_sr)
 
&amp;nbsp; &amp;nbsp; newpoint = ptGeom.projectAs(dest_sr,'NAD_1927_To_WGS_1984_4')
&amp;nbsp; &amp;nbsp; newcoord = [round(newpoint.centroid.X,7),round(newpoint.centroid.Y,7)]
 
&amp;nbsp; &amp;nbsp; pt_attrs&lt;I&gt; = row.extend(newcoord)&lt;/I&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now, I&amp;nbsp;have a new list of lists,&amp;nbsp;each containing the data for a new table row that I can write back to a target table. -- I also looked at &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/coverage-toolbox/project.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;arcpy.project_management&lt;/A&gt;. But besides the hilarious name that will make&amp;nbsp;any PMP laugh, I couldn't get it to work. I think it requires a feature class again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this works as it, I have to mention that I'm needing to append&amp;nbsp;additional spatial attributes such as UTM zones. That's why I'm wondering if this is the "best" approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:01:50 GMT</pubDate>
    <dc:creator>Arne_Gelfert</dc:creator>
    <dc:date>2021-12-12T16:01:50Z</dc:date>
    <item>
      <title>Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112413#M8756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I realize I may draw the scorn from the community for asking the way I'm asking but ...&lt;EM&gt;&lt;STRONG&gt;Is there an easy way&lt;/STRONG&gt; &lt;/EM&gt;(easier than what I'm doing) to read Lat/Lon values stored in a non-spatial SQL table, reproject them and&amp;nbsp;write the new values back to same or other table?&amp;nbsp;Since&amp;nbsp;this is for a non-GIS audience, I don't have any use for creating an intermediate&amp;nbsp;feature class. I found &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-xy-coordinates.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;arcpy.AddXY_management&lt;/A&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;. But I believe, as most other scenarios I could come up with, requires a feature class. Basically, I'm curious if there is another way to do this without creating a feature class.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;This is what I tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import pyodbc

sql_conn = pyodbc.connect('''bla bla bla''') 
query = '''SELECT [LATITUDE],[LONGITUDE]
           FROM MyTable'''

cursor = sql_conn.cursor()
cursor.execute(query)

ptDataRows = []

for row in cursor.fetchall():
    #Turn cursor row into list
    ptDataRows.append([x for x in row])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;I was bringing in additional attributes from my source table which I'm leaving out in this example. But a longer list would be the only difference.&amp;nbsp;Next&amp;nbsp;I'm working with the Lat/Lon columns to create point geometries and then&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

src_sr = arcpy.SpatialReference(4267) 
dest_sr = arcpy.SpatialReference(4326)

for i,row in enumerate(ptDataRows):

&amp;nbsp; &amp;nbsp; pt = arcpy.Point(row[0],row[1])
&amp;nbsp; &amp;nbsp; ptGeom = arcpy.PointGeometry(pt, src_sr)
 
&amp;nbsp; &amp;nbsp; newpoint = ptGeom.projectAs(dest_sr,'NAD_1927_To_WGS_1984_4')
&amp;nbsp; &amp;nbsp; newcoord = [round(newpoint.centroid.X,7),round(newpoint.centroid.Y,7)]
 
&amp;nbsp; &amp;nbsp; pt_attrs&lt;I&gt; = row.extend(newcoord)&lt;/I&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now, I&amp;nbsp;have a new list of lists,&amp;nbsp;each containing the data for a new table row that I can write back to a target table. -- I also looked at &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/coverage-toolbox/project.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;arcpy.project_management&lt;/A&gt;. But besides the hilarious name that will make&amp;nbsp;any PMP laugh, I couldn't get it to work. I think it requires a feature class again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this works as it, I have to mention that I'm needing to append&amp;nbsp;additional spatial attributes such as UTM zones. That's why I'm wondering if this is the "best" approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112413#M8756</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-12T16:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112414#M8757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are working with point geometries, your approach is about as easy as it gets, unless you want to start talking about adding event layers to maps and the whole Define Projection thing.&amp;nbsp; It may be easier on all involved if you roll out a toolbox with a tool that does the process behind the scenes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 03:00:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112414#M8757</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-30T03:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112415#M8758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Waaay back in the ArcInfo days, there was a tool that would project a file as long as you could specify what projection the x y fields were in.&amp;nbsp; I've never understood why that was never ported to ArcGIS and/or Pro...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112415#M8758</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-01-30T19:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112416#M8759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with others, there isn't any other approach that is more straightforward or simple.&amp;nbsp; You could go code golfing and condense what you have down more, but I don't see that changing performance or results.&amp;nbsp; Since you are already using ArcPy, I suggest using ArcPy cursors to interact with the data instead of pyodbc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 21:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112416#M8759</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-01-30T21:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112417#M8760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried a workflow starting with a non-spatial table in SQL Server using Convert Coordinate Notation with no change in actual notation but a change in projection, then run Add XY Coordinates but its long winded.&amp;nbsp; The right people here at Esri have been informed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 22:31:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112417#M8760</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2019-01-30T22:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112418#M8761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hadn't even occurred to me to try and use arcpy coursors with anything other than feature classes. Spent some time away from GIS and was using pyodbc successfully doing other things.&amp;nbsp;So the familiar module came in handy.&amp;nbsp;Will have to try cursors next time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 22:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112418#M8761</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-01-30T22:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112419#M8762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's interesting. Probably way before my time. I&amp;nbsp;just&amp;nbsp;think it would be handy tool to have - one to just turn XY (old) into XY (new) without creating a feature class. I liked&amp;nbsp;Dan's suggestions of creating a tool. Maybe a geoprocessing web tool?&amp;nbsp;POST XY(old) and get XY(new) returned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 22:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112419#M8762</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-01-30T22:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112420#M8763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cursors or just printing (don't get x, y, lon, lat mixed up):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

latlon &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4326&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# wgs_1984&lt;/SPAN&gt;
webmer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3857&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# web mercator&lt;/SPAN&gt;
nad  &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4267&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# nad_1927&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;convertXY&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;inSR&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;outSR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        ptGeo &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PointGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;inSR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;projectAs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outSR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ptGeo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ptGeo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\nERROR - cannot convert point\n  x: {}  y: {}  inSR: {}  outSR: {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;inSR&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;outSR&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

tbl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Path\to\file.gdb\XYtable"&lt;/SPAN&gt;
flds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'x_4326'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'y_4326'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'x_3857'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'y_3857'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'x_4267'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'y_4267'&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# using an update cursor, lon and lat fields are populated, calculate others&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lat&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x_nad&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_nad &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 
        x_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_wm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; convertXY&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;lat&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;latlon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;webmer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        x_nad&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_nad &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; convertXY&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;lat&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;latlon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;nad&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lat&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x_nad&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_nad&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; cursor

&lt;SPAN class="comment token"&gt;# using an insert cursor -and/or- print&lt;/SPAN&gt;
coords &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# can come from text file, etc.&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;175.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;40.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;135.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;30.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;90.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;20.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;45.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;45.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;90.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;20.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;135.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;30.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;175.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;40.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"LON\tLAT\tX_WM\tY_WM\tX_NAD\tY_NAD"&lt;/SPAN&gt;
cursor &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InsertCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lat &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; coords&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    x_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_wm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; convertXY&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;lat&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;latlon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;webmer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    x_nad&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_nad &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; convertXY&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;lat&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;latlon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;nad&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{}\t{}\t{}\t{}\t{}\t{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lat&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x_nad&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_nad&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;insertRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lat&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_wm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x_nad&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y_nad&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; cursor‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112420#M8763</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-11T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112421#M8764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most excellant &lt;A href="https://community.esri.com/migrated-users/34565"&gt;Randy Burton&lt;/A&gt;‌ !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Feb 2019 13:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112421#M8764</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-02-03T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112422#M8765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/34565" target="_blank"&gt;Randy Burton&lt;/A&gt;‌, looking at the code for &lt;CODE&gt;&lt;SPAN class=""&gt;convertXY&lt;/SPAN&gt;&lt;/CODE&gt;, there are some risks with the structure of error handling.&amp;nbsp; Setting aside the larger debate on whether one should trap errors and hide, or partially hide, the specifics from users, there is a fairly easy way to give the user more information about what went wrong while still allowing the operation to continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the function as written, there are at least 3 things that can generate errors (creating the Point, creating the PointGeometry, and projecting the PointGeometry), but the user will have no idea which step had the issue.&amp;nbsp; I suggest using information from the error itself in what is printed:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;convertXY&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inSR&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outSR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        ptGeo &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PointGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;inSR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;projectAs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outSR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ptGeo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ptGeo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; BaseException &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a much smaller note, since you are asking the user for x,y coordinates and not an ArcPy Point, what about asking for the EPSG codes instead of an ArcPy SpatialReference object.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;convertXY&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; in_epsg&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_epsg&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        inSR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_epsg&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        outSR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;  arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_epsg&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        ptGeo &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PointGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;inSR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;projectAs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outSR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ptGeo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ptGeo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; BaseException &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:43:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112422#M8765</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T06:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reprojecting tabular data without creating feature class?</title>
      <link>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112423#M8766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Great suggestions.&amp;nbsp; Thank you.&amp;nbsp; So far, the typical cause for an error in my testing was swapping the x and y coordinates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Feb 2019 23:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reprojecting-tabular-data-without-creating-feature/m-p/112423#M8766</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2019-02-03T23:57:19Z</dc:date>
    </item>
  </channel>
</rss>

