<?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 move a point using field calculator (hosted feature layer) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/move-a-point-using-field-calculator-hosted-feature/m-p/240374#M10489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; use ArcGIS Pro field calculator to move points stored as a hosted feature layer using a field calculator on the Shape field using this&amp;nbsp;Python3&amp;nbsp;expression (below). It takes ages to run, over 12 mins for 21 points. I need to move batches of a few hundred at a time. Are there any other ideas on how I could do this process? I have attachments on the points so downloading locally and re-uploading wouldn't really be practical either.&amp;nbsp;Enable Undo is off&lt;STRONG&gt;.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Shape= update()&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;def update(): &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; fc = "the_f_points&amp;nbsp;&amp;nbsp;&amp;nbsp;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; pnt = arcpy.Point() &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; rows = arcpy.UpdateCursor(fc) &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; for row in rows: &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; pnt.X = row.survey_x_local&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; pnt.Y = row.survey_y_local &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; row.shape = pnt &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; rows.updateRow(row) &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; del row, rows&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;IMG __jive_id="461657" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461657_pastedImage_2.png" /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2019 04:25:52 GMT</pubDate>
    <dc:creator>PeterMacKenzie2</dc:creator>
    <dc:date>2019-10-11T04:25:52Z</dc:date>
    <item>
      <title>move a point using field calculator (hosted feature layer)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/move-a-point-using-field-calculator-hosted-feature/m-p/240374#M10489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; use ArcGIS Pro field calculator to move points stored as a hosted feature layer using a field calculator on the Shape field using this&amp;nbsp;Python3&amp;nbsp;expression (below). It takes ages to run, over 12 mins for 21 points. I need to move batches of a few hundred at a time. Are there any other ideas on how I could do this process? I have attachments on the points so downloading locally and re-uploading wouldn't really be practical either.&amp;nbsp;Enable Undo is off&lt;STRONG&gt;.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Shape= update()&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;def update(): &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; fc = "the_f_points&amp;nbsp;&amp;nbsp;&amp;nbsp;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; pnt = arcpy.Point() &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; rows = arcpy.UpdateCursor(fc) &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; for row in rows: &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; pnt.X = row.survey_x_local&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; pnt.Y = row.survey_y_local &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; row.shape = pnt &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; rows.updateRow(row) &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt; del row, rows&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;IMG __jive_id="461657" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461657_pastedImage_2.png" /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 04:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/move-a-point-using-field-calculator-hosted-feature/m-p/240374#M10489</guid>
      <dc:creator>PeterMacKenzie2</dc:creator>
      <dc:date>2019-10-11T04:25:52Z</dc:date>
    </item>
  </channel>
</rss>

