<?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: Update points position based on new XY coordinates. ArcGIS Pro 2.8 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1259067#M65631</link>
    <description>&lt;P&gt;The Calculate Field using the "shiftCoordinates" expression does not move the points, does it? Doesn't that just update the coordinates in the attribute table?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2023 20:20:00 GMT</pubDate>
    <dc:creator>CCMM</dc:creator>
    <dc:date>2023-02-16T20:20:00Z</dc:date>
    <item>
      <title>Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117593#M47909</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have created a points feature class from a spreadsheet with the Add data-&amp;gt; XY Point data.&lt;BR /&gt;I have since gotten an updated spreadsheet where some of the points have new X and Y coordinates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to update the position of the old points based on the new coordinates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 07:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117593#M47909</guid>
      <dc:creator>MarcusNielsen</dc:creator>
      <dc:date>2021-11-17T07:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117631#M47921</link>
      <description>&lt;P&gt;Is the new data just the updated point locations and their data?&lt;/P&gt;&lt;P&gt;Has an id or some other key field been used in the spreadsheet that would facilitate joins?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 11:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117631#M47921</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-11-17T11:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117638#M47923</link>
      <description>&lt;P&gt;Yes the new data is the just the updated coordinates.&lt;/P&gt;&lt;P&gt;They do have an ID field attached to them.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 12:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117638#M47923</guid>
      <dc:creator>MarcusNielsen</dc:creator>
      <dc:date>2021-11-17T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117686#M47930</link>
      <description>&lt;P&gt;I am assuming your xy event theme is not a featureclass.&lt;/P&gt;&lt;P&gt;You could join the new data to the old data using the ID field and use the field calculator to copy over the x, y coordinates from the new data's fields to the old data's x, y fields, then.... add the table as an X Y event theme. If it works, then copy features to a new feature class since the shape field won't get updates in a featureclass&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117686#M47930</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-11-17T14:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117689#M47931</link>
      <description>&lt;P&gt;You could map the new data the same way you did the original data. Then since there is a common ID field, you could then join the original data to the new data, calculate your fields if necessary to make the new data match the original data, and then your point locations will be updated.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1117689#M47931</guid>
      <dc:creator>Sean_Wray</dc:creator>
      <dc:date>2021-11-17T14:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1159347#M53426</link>
      <description>&lt;P&gt;&lt;SPAN&gt;As said before join the new data to the old data using an ID field. Fields containing new x and y values is named x_new and y_new. Then&amp;nbsp;&lt;/SPAN&gt;With Calculate Field use a python expression...&lt;/P&gt;&lt;P&gt;Field Name (Existing or New):&lt;BR /&gt;SHAPE&lt;/P&gt;&lt;P&gt;Expression:&lt;BR /&gt;shiftCoordinates(!SHAPE!,!x_new!,!y_new!)&lt;/P&gt;&lt;P&gt;Code block:&lt;BR /&gt;def shiftCoordinates(shape,x_new,y_new):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; point = shape.getPart(0)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; point.X = x_new&lt;BR /&gt;&amp;nbsp; &amp;nbsp; point.Y = y_new&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return point&lt;/P&gt;&lt;P&gt;Hit Run and the geometry is updated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 13:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1159347#M53426</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-30T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1259067#M65631</link>
      <description>&lt;P&gt;The Calculate Field using the "shiftCoordinates" expression does not move the points, does it? Doesn't that just update the coordinates in the attribute table?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 20:20:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1259067#M65631</guid>
      <dc:creator>CCMM</dc:creator>
      <dc:date>2023-02-16T20:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1259071#M65632</link>
      <description>&lt;P&gt;If anyone (including OP) is still watching this thread... I have the same problem except in my case I have photos attached to the feature class in the geodatabase and now I need to update the location of those points (about 1,000 of them) to the X,Y coordinates (lat/long) in the attribute table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So what I need to do is run a tool that will move the points to the latitude and longitude I already have specified in the attribute table for each point. This seems like such a simple task for GIS and one that people run into often, but I cannot find any solutions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;HELP!!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 20:25:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1259071#M65632</guid>
      <dc:creator>CCMM</dc:creator>
      <dc:date>2023-02-16T20:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1259143#M65642</link>
      <description>&lt;P&gt;I figured out a solution using UpdateCursor that was actually really simple! See script below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Set the local parameters&lt;/P&gt;&lt;P&gt;inFeatures = "Survey"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Move the Features&lt;/P&gt;&lt;P&gt;with arcpy.da.UpdateCursor(inFeatures, ["SHAPE@XY","Longitude","Latitude"]) as cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = ([row[1],row[2]])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row)&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 22:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1259143#M65642</guid>
      <dc:creator>CCMM</dc:creator>
      <dc:date>2023-02-16T22:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Update points position based on new XY coordinates. ArcGIS Pro 2.8</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1544829#M88787</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/623362"&gt;@CCMM&lt;/a&gt;&amp;nbsp;Have you ever hit this error?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;File "&amp;lt;string&amp;gt;", line 6, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RuntimeError: Invalid SQL syntax [near "For": syntax error] [GDB_Items]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;The only things I altered were my field names:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# Set the local parameters&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;inFeatures = "xy_test"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# Move the Features&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;with arcpy.da.UpdateCursor(inFeatures, ["Shape@XY","POINT_X","POINT_Y"]) as cursor:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; for row in cursor:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row[0] = ([row[1],row[2]])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cursor.updateRow(row)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 15:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-points-position-based-on-new-xy-coordinates/m-p/1544829#M88787</guid>
      <dc:creator>EmmaCurran18</dc:creator>
      <dc:date>2024-10-02T15:54:55Z</dc:date>
    </item>
  </channel>
</rss>

