<?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: Arcpy Update Geometry Field with Update Cursor  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602375#M47092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might want to get technical support involved with the multipoint to point issue you are having to see if this is expected behavior of the software to fail or if it's a bug with ESRI software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2017 17:14:06 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2017-02-22T17:14:06Z</dc:date>
    <item>
      <title>Arcpy Update Geometry Field with Update Cursor</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602370#M47087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a feature layer with some records that have Shape filed with value None.&lt;/P&gt;&lt;P&gt;I would like update the Shape field with a correct value and i woul take it by other feature class.&lt;/P&gt;&lt;P&gt;I have seen some code posted here on geonet and this is my script&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;sourceFC &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'fc_lyr'&lt;/SPAN&gt;
sourceField &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'ID_VALUE'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'SHAPE'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
valueDict &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;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;r&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&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;for&lt;/SPAN&gt; r &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sourceFC&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sourceField&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

updateFieldsList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ID_VALUE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Shape"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&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;updateFC&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; updateFieldsList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; updateRows&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; updateRow &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; updateRows&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keyValue &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; updateRow&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;keyValue&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; keyValue &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; valueDict&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; valueDict&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;keyValue&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&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;valueDict&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;keyValue&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&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;updateRow&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;/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;whit this script the field Shape is not update, but if i change the field Shape with some other field and try to update it, the update works.&lt;/P&gt;&lt;P&gt;Why the Sahpe field is not update???&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602370#M47087</guid>
      <dc:creator>DEVAPP</dc:creator>
      <dc:date>2021-12-12T01:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Update Geometry Field with Update Cursor</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602371#M47088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of "SHAPE", use "SHAPE@".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/searchcursor-class.htm"&gt;SearchCursor &lt;/A&gt;documentation:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/geometry.htm" style="color: #00b9f2; text-decoration: none; cursor: pointer; outline: 0px;"&gt;Geometry&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; ; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;properties can be accessed by specifying the token&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;SHAPE@&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the list of fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 15:30:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602371#M47088</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-02-22T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Update Geometry Field with Update Cursor</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602372#M47089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and "OID@"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 15:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602372#M47089</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-22T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Update Geometry Field with Update Cursor</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602373#M47090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replay.&lt;/P&gt;&lt;P&gt;I have added "SHAPE@" and "OID@" but the result is the same.&lt;/P&gt;&lt;P&gt;The Feature Class of SearchCursor is a Multipoint and the Feature Class to Update is a MakeRouteEventLayer Multipoint.&lt;/P&gt;&lt;P&gt;I'm becoming crazy....the result of update is always 'None' for shape field&lt;/P&gt;&lt;P&gt;Any idea???&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 15:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602373#M47090</guid>
      <dc:creator>DEVAPP</dc:creator>
      <dc:date>2017-02-22T15:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Update Geometry Field with Update Cursor</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602374#M47091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;I have found the solution. In my script i have add a tool FeatureToPoint so i conevrt the multipoint to point Feature Class and so the update cursor between point - point works fine.&lt;/P&gt;&lt;P&gt;Why between multipoint - multipoint doesn't work?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 16:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602374#M47091</guid>
      <dc:creator>DEVAPP</dc:creator>
      <dc:date>2017-02-22T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Update Geometry Field with Update Cursor</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602375#M47092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might want to get technical support involved with the multipoint to point issue you are having to see if this is expected behavior of the software to fail or if it's a bug with ESRI software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 17:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602375#M47092</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-02-22T17:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Update Geometry Field with Update Cursor</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602376#M47093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure both feature classes were MULTIPOINT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas OGC simple feature LINESTRING and MULTILINESTRING map to Esri POLYLINE, and OGC simple feature POLYGON and MULTIPOLYGON map to&amp;nbsp;Esri&amp;nbsp;POLYGON, POINT and MULTIPOINT map to separate Esri geometry types.&amp;nbsp; I have found this causes confusion with users because they get used to storing both single- and multi-part linestrings or polygons in an Esri POLYLINE or POLYGON, respectively, but a multi-point can't be stored in a Esri POINT geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume an error would be generated when trying to insert a MULTIPOINT into a POINT feature class, but should doesn't mean it does.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-update-geometry-field-with-update-cursor/m-p/602376#M47093</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-02-22T19:15:06Z</dc:date>
    </item>
  </channel>
</rss>

