<?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: Compare pre-edit geometry with edited geometry in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/compare-pre-edit-geometry-with-edited-geometry/m-p/1151992#M340</link>
    <description>&lt;P&gt;For my records, here's where the&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;$originalfeature&lt;/FONT&gt; global variable can be found in the docs:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;H3&gt;Attribute Rule Calculation&lt;/H3&gt;&lt;H4&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#globals-1" target="_self"&gt;Globals&lt;/A&gt;&lt;/H4&gt;Variable Name Type Description &lt;TABLE width="680px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="169.734px" height="69px"&gt;$datastore&lt;/TD&gt;&lt;TD width="163.453px" height="69px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#featuresetcollection" target="_blank" rel="noopener"&gt;FeatureSetCollection&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="69px"&gt;A collection of layers in the same feature service or database as the&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;$feature&lt;/FONT&gt;&lt;/SPAN&gt;executing the script.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="169.734px" height="70px"&gt;$editcontext.editType&lt;/TD&gt;&lt;TD width="163.453px" height="70px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#text" target="_blank" rel="noopener"&gt;Text&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="70px"&gt;Indicates whether the edit event is&lt;SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;INSERT&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;,&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;UPDATE&lt;/FONT&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;DELETE&lt;/FONT&gt;, or&amp;nbsp;&lt;FONT color="#0000FF"&gt;NA&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;(not applicable).&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="169.734px" height="25px"&gt;$feature&lt;/TD&gt;&lt;TD width="163.453px" height="25px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#feature" target="_blank" rel="noopener"&gt;Feature&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="25px"&gt;The feature being calculated.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="169.734px" height="47px"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;$originalFeature&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="163.453px" height="47px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#feature" target="_blank" rel="noopener"&gt;Feature&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="47px"&gt;The previous state of the feature being calculated.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="169.734px" height="48px"&gt;$featureSet&lt;/TD&gt;&lt;TD width="163.453px" height="48px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#featureset" target="_blank" rel="noopener"&gt;FeatureSet&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="48px"&gt;A collection of features in the same table as the&lt;SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;$feature&lt;/FONT&gt;&lt;/SPAN&gt;evaluating the expression.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;- &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#:~:text=before%20an%20edit%20is%20made" target="_self"&gt;Identify whether a specific attribute value has changed&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;-&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-editing-m-values-not-treated-as-change-to/m-p/1154138" target="_self"&gt;Arcade: Editing M-values not treated as change to geometry&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 05:41:26 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-03-22T05:41:26Z</dc:date>
    <item>
      <title>Compare pre-edit geometry with edited geometry</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/compare-pre-edit-geometry-with-edited-geometry/m-p/1150189#M337</link>
      <description>&lt;P&gt;In an Arcade attribute rule:&lt;/P&gt;&lt;P&gt;Is there a way to compare a feature's geometry before the edit was made...&lt;BR /&gt;vs.&lt;BR /&gt;...the edited geometry?&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;If the pre-edit geometry is different from the edited geometry, then do x to the geometry.&lt;BR /&gt;Else, do nothing.&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/attribute-rules-ideas/attribute-rules-update-only-on-geometry-change/idc-p/1150038#M49" target="_self"&gt;Attribute Rules: Update only on geometry change&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I was hoping I'd be able to use&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;$feature.shape&lt;/FONT&gt; as to get the pre-edit geometry. But that failed. Which is weird, because I can use&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;$feature.shape_length&lt;/FONT&gt; without issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 01:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/compare-pre-edit-geometry-with-edited-geometry/m-p/1150189#M337</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-04T01:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare pre-edit geometry with edited geometry</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/compare-pre-edit-geometry-with-edited-geometry/m-p/1150245#M338</link>
      <description>&lt;P&gt;Equals(geometey($feature),geometry($originalfeature))&lt;/P&gt;&lt;P&gt;Not sure you NEED the geometry functions but it doesn't hurt.&lt;/P&gt;&lt;P&gt;Not near a comouter, but i think you can use IsEmpty to determine if the feature existed before it was edited (i.e reshaped, moved, or added)&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 16:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/compare-pre-edit-geometry-with-edited-geometry/m-p/1150245#M338</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-03-03T16:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare pre-edit geometry with edited geometry</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/compare-pre-edit-geometry-with-edited-geometry/m-p/1151992#M340</link>
      <description>&lt;P&gt;For my records, here's where the&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;$originalfeature&lt;/FONT&gt; global variable can be found in the docs:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;H3&gt;Attribute Rule Calculation&lt;/H3&gt;&lt;H4&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#globals-1" target="_self"&gt;Globals&lt;/A&gt;&lt;/H4&gt;Variable Name Type Description &lt;TABLE width="680px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="169.734px" height="69px"&gt;$datastore&lt;/TD&gt;&lt;TD width="163.453px" height="69px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#featuresetcollection" target="_blank" rel="noopener"&gt;FeatureSetCollection&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="69px"&gt;A collection of layers in the same feature service or database as the&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;$feature&lt;/FONT&gt;&lt;/SPAN&gt;executing the script.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="169.734px" height="70px"&gt;$editcontext.editType&lt;/TD&gt;&lt;TD width="163.453px" height="70px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#text" target="_blank" rel="noopener"&gt;Text&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="70px"&gt;Indicates whether the edit event is&lt;SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;INSERT&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;,&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;UPDATE&lt;/FONT&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;DELETE&lt;/FONT&gt;, or&amp;nbsp;&lt;FONT color="#0000FF"&gt;NA&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;(not applicable).&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="169.734px" height="25px"&gt;$feature&lt;/TD&gt;&lt;TD width="163.453px" height="25px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#feature" target="_blank" rel="noopener"&gt;Feature&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="25px"&gt;The feature being calculated.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="169.734px" height="47px"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;$originalFeature&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="163.453px" height="47px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#feature" target="_blank" rel="noopener"&gt;Feature&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="47px"&gt;The previous state of the feature being calculated.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="169.734px" height="48px"&gt;$featureSet&lt;/TD&gt;&lt;TD width="163.453px" height="48px"&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#featureset" target="_blank" rel="noopener"&gt;FeatureSet&lt;/A&gt;&lt;/TD&gt;&lt;TD width="345.812px" height="48px"&gt;A collection of features in the same table as the&lt;SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;$feature&lt;/FONT&gt;&lt;/SPAN&gt;evaluating the expression.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;- &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#:~:text=before%20an%20edit%20is%20made" target="_self"&gt;Identify whether a specific attribute value has changed&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;-&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-editing-m-values-not-treated-as-change-to/m-p/1154138" target="_self"&gt;Arcade: Editing M-values not treated as change to geometry&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 05:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/compare-pre-edit-geometry-with-edited-geometry/m-p/1151992#M340</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-22T05:41:26Z</dc:date>
    </item>
  </channel>
</rss>

