We have a number of reports, python scripts, etc. using ST_GEOMETRY queries against versioned views (*_EVW) in our Geometric Network dataset. Example, against a specific where clause, the query will return SUM(SDE.ST_LENGTH(SHAPE)).
I haven't found any promising replacement yet in our Utility Network test environment.
Any ideas on how to accomplish this via some form of automation? 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.
Thank you, UN people.
EDIT: I suppose my jumping-off point is this: https://www.esri.com/arcgis-blog/products/utility-network/electric-gas/utility-network-sql/
Solved! Go to Solution.
Thanks to everyone for suggesting multiple potential solutions. 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.
Queries against database views are more in my comfort zone. Creating the materialized view using sample syntax (Oracle) from this post from Robert Krisher is working well.
@SillPaul A conceptual solution will be to use a Trace configuration and use an Add function which will sum the targeted Network Attribute (Shape_Length) as it traces the line features.
Review the documentation and the following blog:
Exploring the ArcGIS Utility Network Trace Framework
One more option is to use the outStatistics parameter on the REST API. See this blog: generating-reports-from-the-utility-network