<?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: Dynamic and/or calculated field in ArcGIS Enterprise geodatabase? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010229#M6912</link>
    <description>&lt;P&gt;Thanks all to your contributions.&lt;/P&gt;&lt;P&gt;Vince's suggestion is also good but depending on the underlying DBMS, ST_Geometry can be limited. For lat/long, no problem with any DBMS. However, if trying to calculate geodesic length or area, ST_Geometry can be rubbish... at least with Oracle. Also, you need to create views.&lt;/P&gt;&lt;P&gt;On the other hand, attribute rules can be more powerful but need the underlying ESRI geodatabase environment...&lt;/P&gt;&lt;P&gt;As I already experienced ST_Geometry, I will investigate attribute rule and look how far I can go.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 17:32:35 GMT</pubDate>
    <dc:creator>VincentLaunstorfer</dc:creator>
    <dc:date>2020-12-16T17:32:35Z</dc:date>
    <item>
      <title>Dynamic and/or calculated field in ArcGIS Enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1009391#M6906</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In a geodatabase, stored in ArcGIS Enterprise, is it possible to create dynamic and/or calculated field?&lt;/P&gt;&lt;P&gt;For a point feature, I'd like to create a LAT and LONG fields to store the decimal degrees of the location of the point, which will automatically (dynamically) update whenever the point geometry is changed/moved.. Somehow, it would be similar to certain fields maintained by the geodatase such as AREA and/or LEN.&lt;/P&gt;&lt;P&gt;Is it possible? This would be great.&lt;/P&gt;&lt;P&gt;Also, in practice, it would behave like a custom Arcade expression to display dynamic (calculated) fields in Pop-Ups, but actually stored in the geodatabase...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 18:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1009391#M6906</guid>
      <dc:creator>VincentLaunstorfer</dc:creator>
      <dc:date>2020-12-14T18:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic and/or calculated field in ArcGIS Enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1009406#M6907</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Also, in practice, it would behave like a custom Arcade expression to display dynamic (calculated) fields in Pop-Ups, but actually stored in the geodatabase...&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What you are describing is an attribute rule, and you should be able to create one that does what you want...&lt;/P&gt;&lt;P&gt;See this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/developers-questions/how-can-i-get-x-y-in-dec-degrees-from-a-poly-feat-serv-using/td-p/72397" target="_blank"&gt;https://community.esri.com/t5/developers-questions/how-can-i-get-x-y-in-dec-degrees-from-a-poly-feat-serv-using/td-p/72397&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 19:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1009406#M6907</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-12-14T19:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic and/or calculated field in ArcGIS Enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010095#M6909</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;Thanks, it is a good start and an interesting thread on Arcade...&lt;/P&gt;&lt;P&gt;I need to dive into attribute rules for geodatabase as this is something I never done before.&lt;/P&gt;&lt;P&gt;And I found the ESRI docs: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It should not be too difficult... Hopefully&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 11:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010095#M6909</guid>
      <dc:creator>VincentLaunstorfer</dc:creator>
      <dc:date>2020-12-16T11:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic and/or calculated field in ArcGIS Enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010097#M6910</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;It should not be too difficult... Hopefully&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You'll need to get familiar with Arcade; start with some basic concepts with rules and ramp up to more complex. I started out exactly opposite to that: In my first exposure to Attribute Rules, I tried to figure out some very complex rules within an ESRI Solution, and nearly lost my mind.&amp;nbsp; (These days I'm wondering if there is anything left to lose...)&lt;/P&gt;&lt;P&gt;This forum is especially helpful so don't be timid; post your questions as you encounter issues.&amp;nbsp; I'm bringing&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;into this: without his advice and help I wouldn't be able to spell Attribute Rules or Arcade.&lt;/P&gt;&lt;P data-unlink="true"&gt;Attribute Rules are very useful; I especially like using them in concert with &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-sequence.htm" target="_self"&gt;Geodatabase Sequences&lt;/A&gt;.&amp;nbsp;&amp;nbsp;One caveat with using attribute rules is once they are deployed on a feature class, that feature class is unavailable to ArcMap users and/or users of ArcGIS Pro 2.0 and earlier.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 11:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010097#M6910</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-12-16T11:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic and/or calculated field in ArcGIS Enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010120#M6911</link>
      <description>&lt;P&gt;You could generate a view or SQL query using Query Layers which includes ST_X and ST_Y function calls (the usage for which varies by RDBMS implementation).&amp;nbsp;Since "LONG" is reserved in some databases, I recommend using "LON" to pair with "LAT".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;-- PostgreSQL geometry/geography
CREATE VIEW mypoints_w_coords AS
  SELECT objectid,colA,colB,ST_Y(shape) as lat,ST_X(shape) as lon,shape
  FROM   mypoints;

-- ORACLE SDE.ST_GEOMETRY
CREATE VIEW mypoints_w_coords AS
  SELECT objectid,colA,colB,SDE.ST_Y(shape) as lat,SDE.ST_X(shape) as lon,shape
  FROM   mypoints;

-- SQL Server geometry/geography
CREATE VIEW mypoints_w_coords AS
  SELECT objectid,colA,colB,shape.STY as lat,shape.STX as lon,shape
  FROM   [myschema].mypoints;&lt;/LI-CODE&gt;&lt;P&gt;&lt;EM&gt;Note that some elements of geodatabase functionality aren't available with views, so processing the geometry in the client as with Arcade is probably a better solution.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 13:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010120#M6911</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2020-12-16T13:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic and/or calculated field in ArcGIS Enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010229#M6912</link>
      <description>&lt;P&gt;Thanks all to your contributions.&lt;/P&gt;&lt;P&gt;Vince's suggestion is also good but depending on the underlying DBMS, ST_Geometry can be limited. For lat/long, no problem with any DBMS. However, if trying to calculate geodesic length or area, ST_Geometry can be rubbish... at least with Oracle. Also, you need to create views.&lt;/P&gt;&lt;P&gt;On the other hand, attribute rules can be more powerful but need the underlying ESRI geodatabase environment...&lt;/P&gt;&lt;P&gt;As I already experienced ST_Geometry, I will investigate attribute rule and look how far I can go.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/dynamic-and-or-calculated-field-in-arcgis/m-p/1010229#M6912</guid>
      <dc:creator>VincentLaunstorfer</dc:creator>
      <dc:date>2020-12-16T17:32:35Z</dc:date>
    </item>
  </channel>
</rss>

