<?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 Auto apply Shape.STLength measurements to new Shape_Len field in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1411502#M45091</link>
    <description>&lt;P&gt;I've noticed the Shape.STLength field does not get brought over into the enterprise portal after publishing. I have created a new field named Shape_Len and performed a field calculation where Shape_Len = Shape.STLength and it populates the new field successfully and appears in the portal when publishing. The issue I'm trying to figure out is that when I create a new line segment my new field doesn't auto populate similarly to the Shape.STLength field, it remains &amp;lt;NULL&amp;gt;. Is there a way to auto populate my new field whenever a new line segment is created or modified with the same value in Shape.STLength?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 12:57:17 GMT</pubDate>
    <dc:creator>wgreen90</dc:creator>
    <dc:date>2024-04-18T12:57:17Z</dc:date>
    <item>
      <title>Auto apply Shape.STLength measurements to new Shape_Len field</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1411502#M45091</link>
      <description>&lt;P&gt;I've noticed the Shape.STLength field does not get brought over into the enterprise portal after publishing. I have created a new field named Shape_Len and performed a field calculation where Shape_Len = Shape.STLength and it populates the new field successfully and appears in the portal when publishing. The issue I'm trying to figure out is that when I create a new line segment my new field doesn't auto populate similarly to the Shape.STLength field, it remains &amp;lt;NULL&amp;gt;. Is there a way to auto populate my new field whenever a new line segment is created or modified with the same value in Shape.STLength?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 12:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1411502#M45091</guid>
      <dc:creator>wgreen90</dc:creator>
      <dc:date>2024-04-18T12:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Auto apply Shape.STLength measurements to new Shape_Len field</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1411717#M45092</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/699748"&gt;@wgreen90&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm" target="_blank"&gt;Introduction to attribute rules—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 15:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1411717#M45092</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2024-04-18T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto apply Shape.STLength measurements to new Shape_Len field</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1411980#M45098</link>
      <description>&lt;P&gt;I was having the same issues trying to do a dashboard in AGOL.&amp;nbsp; The Shape.STLength field isn't actually in the enterprise table, but is somehow connected 'on the fly'.&lt;/P&gt;&lt;P&gt;There is probably a better way, but to overcome this, I created a view in SQL Server, then registered that view with the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;CREATE VIEW [dbo].[_WatermainsView]
AS
SELECT         Material, Owner, Shape.STLength() AS Length, Shape.STLength() / 5280 AS Miles, Shape, OBJECTID
FROM dbo.WPRESSURIZEDMAIN&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then load that view instead of the featureclass for my services.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example will not only have a column named "Length" that is in map units (equal to what the Shape.STLenght() is) as well as as a column named "Miles" that is miles so I don't need to do the convertion in the dashboard or popups.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 23:25:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1411980#M45098</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2024-04-18T23:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Auto apply Shape.STLength measurements to new Shape_Len field</title>
      <link>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1412324#M45099</link>
      <description>&lt;P&gt;The third option is an ON INSERT OR UPDATE trigger to preserve the contents of the actual column.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/auto-apply-shape-stlength-measurements-to-new/m-p/1412324#M45099</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2024-04-19T15:36:42Z</dc:date>
    </item>
  </channel>
</rss>

