<?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: How to update coordinates from excel file in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-update-coordinates-from-excel-file/m-p/615719#M48036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mentioned your users aren't GIS savvy, but will they be useing ArcGIS or are you looking for a standalone solution? If within ArcGIS, you may want to create a toolbox/tools that they can use&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/a-quick-tour-of-creating-script-tools.htm" title="https://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/a-quick-tour-of-creating-script-tools.htm"&gt;What is a script tool?—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can then set up the input parameters to promot them for the excel file name and featureclass to use.&amp;nbsp; The link you provided has the logic laid out, and &lt;A href="https://community.esri.com/migrated-users/4207"&gt;Thanos Of Titan&lt;/A&gt;​ has a good start for the scripting logic. ( I'm not at a Python machine right now to write/test).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if using Desktop, not Pro, you can go one step further and create a Python addin to make it easier for them to load the tools on their own install.&amp;nbsp; I have a post &lt;A href="https://community.esri.com/message/75339"&gt;Tip: Python Addin - getting custom tools/toolbox to work - GPToolDialog&lt;/A&gt;​ which has some tips about this to get started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I will edit this with additional addin links, but saving to prevent iPad from eating my response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b" title="http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b"&gt;http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Python addin wizard, download page&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/what-is-a-python-add-in.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/what-is-a-python-add-in.htm"&gt;What is a Python add-in?—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2016 10:23:39 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2016-07-21T10:23:39Z</dc:date>
    <item>
      <title>How to update coordinates from excel file</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-coordinates-from-excel-file/m-p/615717#M48034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;I have an excel file of points which are resurveyed with updated Coordinates.Now i want to update my existing arcsde geodatabase. i found this &lt;A href="https://justinzimmerman.net/updating-feature-coordinates-with-python/" title="https://justinzimmerman.net/updating-feature-coordinates-with-python/"&gt;https://justinzimmerman.net/updating-feature-coordinates-with-python/&lt;/A&gt; , But my problem is my users are not from&amp;nbsp; GIS background so i am looking for a python script which they can run.Any help will be grateful &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 05:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-coordinates-from-excel-file/m-p/615717#M48034</guid>
      <dc:creator>SibghatUllah1</dc:creator>
      <dc:date>2016-07-21T05:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to update coordinates from excel file</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-coordinates-from-excel-file/m-p/615718#M48035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;depends how you read an excel file, you can use python xlrd library or use it as if it as a normal table in ArcMap. Anyway just create a dictionary from your excel file,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;myUpdatedCoordinates = {PNTID:(X,Y), ......PNTIDn:(Xn,Yn))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the loop thru your featureclass with an updateCursor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;with arcpy.da.UpdateCursor(fc, ['ID', 'SHAPE@']) as cur:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cur:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if row[0] in myUpdatedCoordiantes:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newgeo = arcpy.PointGeometry(arcpy.Point(myUpdatedCoordinates[row[0]][0],myUpdatedCoordinates[row[0]][1]), spatialReference=XXXX)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[1] = newgeo
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.updateRow(row)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:19:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-coordinates-from-excel-file/m-p/615718#M48035</guid>
      <dc:creator>ChrisPedrezuela</dc:creator>
      <dc:date>2021-12-12T02:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to update coordinates from excel file</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-coordinates-from-excel-file/m-p/615719#M48036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mentioned your users aren't GIS savvy, but will they be useing ArcGIS or are you looking for a standalone solution? If within ArcGIS, you may want to create a toolbox/tools that they can use&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/a-quick-tour-of-creating-script-tools.htm" title="https://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/a-quick-tour-of-creating-script-tools.htm"&gt;What is a script tool?—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can then set up the input parameters to promot them for the excel file name and featureclass to use.&amp;nbsp; The link you provided has the logic laid out, and &lt;A href="https://community.esri.com/migrated-users/4207"&gt;Thanos Of Titan&lt;/A&gt;​ has a good start for the scripting logic. ( I'm not at a Python machine right now to write/test).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if using Desktop, not Pro, you can go one step further and create a Python addin to make it easier for them to load the tools on their own install.&amp;nbsp; I have a post &lt;A href="https://community.esri.com/message/75339"&gt;Tip: Python Addin - getting custom tools/toolbox to work - GPToolDialog&lt;/A&gt;​ which has some tips about this to get started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I will edit this with additional addin links, but saving to prevent iPad from eating my response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b" title="http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b"&gt;http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Python addin wizard, download page&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/what-is-a-python-add-in.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/what-is-a-python-add-in.htm"&gt;What is a Python add-in?—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 10:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-coordinates-from-excel-file/m-p/615719#M48036</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-07-21T10:23:39Z</dc:date>
    </item>
  </channel>
</rss>

