<?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: EditOperation not updating geometries (sometimes) in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/editoperation-not-updating-geometries-sometimes/m-p/847523#M4132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tung, &lt;/P&gt;&lt;P&gt;What's the XY Resolution and XY Tolerance of the feature class you are writing too?&lt;/P&gt;&lt;P&gt;If its not fine enough then then the updated geometries will snap to the same locations as the original geometry.&lt;/P&gt;&lt;P&gt;See Also: &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/the-properties-of-a-spatial-reference.htm"&gt;The properties of a spatial reference system&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jul 2017 18:07:39 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-07-31T18:07:39Z</dc:date>
    <item>
      <title>EditOperation not updating geometries (sometimes)</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/editoperation-not-updating-geometries-sometimes/m-p/847522#M4131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a snippet of code below which demonstrates a problem that I'm having&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Inspector inspector &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Inspector&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;
inspector&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Load&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featurelayer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; oid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
Debug&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Old: "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ExportToWKT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;WKTExportFlags&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;wktExportDefaults&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Geometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;inspector&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GeometryAttribute&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CurrentValue&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;
inspector&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GeometryAttribute&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CurrentValue &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ImportFromWKT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;WKTImportFlags&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;wktImportDefaults&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"geometry"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; featurelayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetSpatialReference&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="punctuation token"&gt;;&lt;/SPAN&gt;
editOperation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Modify&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inspector&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; 
&lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; editOperation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ExecuteAsync&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;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;editOperation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsSucceeded&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; inspector &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Inspector&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;
&amp;nbsp; inspector&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Load&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featurelayer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; oid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; Debug&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"New: "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ExportToWKT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;WKTExportFlags&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;wktExportDefaults&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Geometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;inspector&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GeometryAttribute&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CurrentValue&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="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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The original geometry of the feature is:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;MULTIPOLYGON (((-122.67363299999994 47.583226300000092, -122.67363309999996 47.584105500000078, -122.67385699999994 47.585292400000071, -122.67389429999997 47.586176200000068, -122.67355839999993 47.587312600000075, -122.67370769999997 47.588650900000061, -122.67381969999997 47.590645700000039, -122.67359569999996 47.590999200000056, -122.67337179999998 47.591125500000089, -122.67307319999998 47.590974000000074, -122.67309049999994 47.590798300000074, -122.67303529999998 47.590686300000073, -122.67281189999994 47.59084770000004, -122.67273729999994 47.591075000000046, -122.67299849999995 47.591327500000091, -122.67296119999997 47.591580000000079, -122.67303589999995 47.59205970000005, -122.67381969999997 47.592766700000084, -122.67387239999994 47.592809500000044, -122.67419289999998 47.593069700000058, -122.67415559999995 47.593524200000047, -122.67370769999997 47.593726100000083, -122.67385699999994 47.593877600000042, -122.67456619999996 47.594054400000061, -122.67479009999994 47.594534100000089, -122.67479439999994 47.594537000000059, -122.67507039999998 47.594723700000088, -122.67516339999997 47.594786600000077, -122.67559719999997 47.594878300000062, -122.67576059999993 47.594912800000088, -122.67676099999994 47.594924200000094, -122.67747849999995 47.594830800000068, -122.67765369999995 47.594784000000061, -122.67776569999995 47.594940800000074, -122.67794959999998 47.59503820000009, -122.67820549999993 47.59481100000005, -122.67794769999995 47.594606800000065, -122.67829869999997 47.594029100000057, -122.67833599999994 47.593625200000076, -122.67870929999998 47.593069700000058, -122.67889589999999 47.592716200000041, -122.67874659999995 47.592615200000068, -122.67777619999998 47.592514200000039, -122.67695499999996 47.591908200000091, -122.67691769999993 47.591049700000042, -122.67736559999997 47.590418500000055, -122.67758949999995 47.590014500000052, -122.67725359999997 47.589509400000054, -122.67717899999997 47.588827700000081, -122.67747759999997 47.588019600000052, -122.67766419999998 47.586858100000086, -122.67762689999995 47.585368200000062, -122.67755219999998 47.58491360000005, -122.67695499999996 47.583878200000072, -122.67702969999993 47.583230000000071, -122.67363299999994 47.583226300000092)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And the updated geometry I'm passing in on line 4 is:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;MULTIPOLYGON (((-122.673633 47.583226300000035, -122.67363309999996 47.584105500000078, -122.67385699999994 47.585292400000071, -122.67389429999997 47.586176200000068, -122.67355839999999 47.587312600000075, -122.67370769999997 47.588650900000061, -122.67381969999997 47.590645700000039, -122.67359569999996 47.590999200000056, -122.67337179999998 47.591125500000032, -122.67307319999998 47.590974000000074, -122.67309049999994 47.590798300000074, -122.67303529999998 47.590686300000073, -122.67281189999994 47.59084770000004, -122.67273729999999 47.591075000000046, -122.67299849999995 47.591327500000034, -122.67296119999997 47.591580000000079, -122.67303589999995 47.59205970000005, -122.67381969999997 47.592766700000027, -122.67387239999999 47.592809500000044, -122.67419289999998 47.593069700000058, -122.67415559999995 47.593524200000047, -122.67370769999997 47.593726100000026, -122.67385699999994 47.593877600000042, -122.67456619999996 47.594054400000061, -122.67479009999994 47.594534100000033, -122.67479439999994 47.594537000000059, -122.67507039999998 47.594723700000031, -122.67516339999997 47.594786600000077, -122.67559719999997 47.594878300000062, -122.67576059999999 47.594912800000031, -122.67676099999994 47.594924200000037, -122.67747849999995 47.594830800000068, -122.67765369999995 47.594784000000061, -122.67776569999995 47.594940800000074, -122.67794959999998 47.595038200000033, -122.67820549999999 47.59481100000005, -122.67794769999995 47.594606800000065, -122.67829869999997 47.594029100000057, -122.67833599999994 47.593625200000076, -122.67870929999998 47.593069700000058, -122.67889589999999 47.592716200000041, -122.67874659999995 47.592615200000068, -122.67777619999998 47.592514200000039, -122.67695499999996 47.591908200000034, -122.67691769999999 47.591049700000042, -122.67736559999997 47.590418500000055, -122.67758949999995 47.590014500000052, -122.67725359999997 47.589509400000054, -122.67717899999997 47.588827700000081, -122.67747759999997 47.588019600000052, -122.67766419999998 47.586858100000029, -122.67762689999995 47.585368200000062, -122.67755219999998 47.58491360000005, -122.67695499999996 47.583878200000072, -122.67702979999996 47.583230000000071, -122.673633 47.583226300000035)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you can see the difference between the 2 geometries is very minimal, mostly after the 6th decimal places for some vertices. The spatial reference in this case is the WSG84 space, unit is degrees. After this snippet&amp;nbsp;was run, the debug on line 10&amp;nbsp;printed out the geometry as it was originally - the edit operation did not update the geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I changed the updated geometry by removing 1 vertex, then the edit operation worked, it printed out the new geometry on line 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Obviously is there anything stupid that I've done in the snippet above? This is trying to provide a reproduction case - in the real code I don't need to do line 7-11, just move on to something else.&lt;/LI&gt;&lt;LI&gt;If not, why did it not work with the geometries I used?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;Tung&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/editoperation-not-updating-geometries-sometimes/m-p/847522#M4131</guid>
      <dc:creator>TungNghiem</dc:creator>
      <dc:date>2021-12-12T10:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: EditOperation not updating geometries (sometimes)</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/editoperation-not-updating-geometries-sometimes/m-p/847523#M4132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tung, &lt;/P&gt;&lt;P&gt;What's the XY Resolution and XY Tolerance of the feature class you are writing too?&lt;/P&gt;&lt;P&gt;If its not fine enough then then the updated geometries will snap to the same locations as the original geometry.&lt;/P&gt;&lt;P&gt;See Also: &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/the-properties-of-a-spatial-reference.htm"&gt;The properties of a spatial reference system&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 18:07:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/editoperation-not-updating-geometries-sometimes/m-p/847523#M4132</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-07-31T18:07:39Z</dc:date>
    </item>
  </channel>
</rss>

