<?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: How to access Sum of Shape_Length from of selected/where clause features in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591431#M4911</link>
    <description>&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;With branch versioning, I don't see a way to do this, since there is no equivalent to the _EVW.&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;You can query the branch version featureclass base table directly using in the proper where clause parameters just as described in the article. Then, you can use the st_geometry function to calculate the shape length, to make the query easy accessible, then you can create a view, and to make the view results to show faster, then you can create a materialized view.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-utility-network-documents/branch-version-sql-views-utility-network/ta-p/1200811" target="_blank"&gt;Branch Version Sql Views - Utility Network - Esri Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pipeline-referencing-blog/sql-views-and-branch-versioning/ba-p/1203124" target="_blank" rel="noopener"&gt;SQL Views and Branch Versioning - Esri Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/utility-network/electric-gas/utility-network-sql/" target="_blank" rel="noopener"&gt;Utility Network Journey: Branch Versioning and SQL&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 03 Mar 2025 21:33:36 GMT</pubDate>
    <dc:creator>MarceloMarques</dc:creator>
    <dc:date>2025-03-03T21:33:36Z</dc:date>
    <item>
      <title>How to access Sum of Shape_Length from of selected/where clause features</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591402#M4910</link>
      <description>&lt;P&gt;We have a number of reports, python scripts, etc. using ST_GEOMETRY queries against versioned views (*_EVW) in our Geometric Network dataset.&amp;nbsp; Example, against a specific where clause, the query will return&amp;nbsp;&lt;SPAN&gt;SUM(SDE.ST_LENGTH(SHAPE)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I haven't found any promising replacement yet in our Utility Network test environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;With branch versioning, I don't see a way to do this, since there is no equivalent to the _EVW.&lt;/LI&gt;&lt;LI&gt;I don't believe a query to the REST endpoint can return a sum of&amp;nbsp; Shape_Length, but I could be wrong on that.&lt;/LI&gt;&lt;LI&gt;I've seen some arcpy examples to cursor through selected features, aggregating the geometric length of each, but with a large (300K+ line records) dataset this is not ideal.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any ideas on how to accomplish this via some form of automation?&amp;nbsp; Right-clicking and summarizing shape length in ArcGIS Pro against a selected set isn't a fit either - since the results get formatted into various outputs.&lt;/P&gt;&lt;P&gt;Thank you, UN people.&lt;/P&gt;&lt;P&gt;EDIT:&amp;nbsp; I suppose my jumping-off point is this:&amp;nbsp;&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/utility-network/electric-gas/utility-network-sql/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/utility-network/electric-gas/utility-network-sql/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And this:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-utility-network-documents/branch-version-sql-views-utility-network/ta-p/1200811" target="_blank"&gt;https://community.esri.com/t5/arcgis-utility-network-documents/branch-version-sql-views-utility-network/ta-p/1200811&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 20:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591402#M4910</guid>
      <dc:creator>SillPaul</dc:creator>
      <dc:date>2025-03-03T20:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Sum of Shape_Length from of selected/where clause features</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591431#M4911</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;With branch versioning, I don't see a way to do this, since there is no equivalent to the _EVW.&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;You can query the branch version featureclass base table directly using in the proper where clause parameters just as described in the article. Then, you can use the st_geometry function to calculate the shape length, to make the query easy accessible, then you can create a view, and to make the view results to show faster, then you can create a materialized view.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-utility-network-documents/branch-version-sql-views-utility-network/ta-p/1200811" target="_blank"&gt;Branch Version Sql Views - Utility Network - Esri Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pipeline-referencing-blog/sql-views-and-branch-versioning/ba-p/1203124" target="_blank" rel="noopener"&gt;SQL Views and Branch Versioning - Esri Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/utility-network/electric-gas/utility-network-sql/" target="_blank" rel="noopener"&gt;Utility Network Journey: Branch Versioning and SQL&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 03 Mar 2025 21:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591431#M4911</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2025-03-03T21:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Sum of Shape_Length from of selected/where clause features</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591444#M4912</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/421660"&gt;@SillPaul&lt;/a&gt;&amp;nbsp;A conceptual solution will be to use a &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/about-trace-configurations.htm" target="_self"&gt;Trace configuration&lt;/A&gt;&amp;nbsp;and&amp;nbsp;use an Add function which will sum the targeted Network Attribute (Shape_Length) as it traces the line&amp;nbsp;features.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AyanPalit_1-1741039809423.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126812iB5B561A045E2A775/image-size/large?v=v2&amp;amp;px=999" role="button" title="AyanPalit_1-1741039809423.png" alt="AyanPalit_1-1741039809423.png" /&gt;&lt;/span&gt;Review the documentation and the following blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/utility-network/data-management/exploring-the-arcgis-utility-network-trace-framework/" target="_self"&gt;Exploring the ArcGIS Utility Network Trace Framework&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 22:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591444#M4912</guid>
      <dc:creator>AyanPalit</dc:creator>
      <dc:date>2025-03-03T22:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Sum of Shape_Length from of selected/where clause features</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591584#M4913</link>
      <description>&lt;P&gt;One more option is to use the outStatistics parameter on the REST API. See this blog:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-utility-network-blog/generating-reports-from-the-utility-network/ba-p/1152504" target="_self"&gt;generating-reports-from-the-utility-network&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 09:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591584#M4913</guid>
      <dc:creator>jclarke</dc:creator>
      <dc:date>2025-03-04T09:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Sum of Shape_Length from of selected/where clause features</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591704#M4914</link>
      <description>&lt;P&gt;Thanks to everyone for suggesting multiple potential solutions.&amp;nbsp; I'll definitely keep the trace configuration suggestions and Statistics parameter via REST API in mind for future consideration, as these align best with the UN service-oriented approach.&lt;/P&gt;&lt;P&gt;Queries against database views are more in my comfort zone.&amp;nbsp; Creating the materialized view using sample syntax (Oracle) from this post from Robert Krisher is working well.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-utility-network-documents/branch-version-sql-views-utility-network/ta-p/1200811" target="_blank"&gt;Branch Version Sql Views - Utility Network - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 16:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-access-sum-of-shape-length-from-of-selected/m-p/1591704#M4914</guid>
      <dc:creator>SillPaul</dc:creator>
      <dc:date>2025-03-04T16:01:59Z</dc:date>
    </item>
  </channel>
</rss>

