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.
- With branch versioning, I don't see a way to do this, since there is no equivalent to the _EVW.
- I don't believe a query to the REST endpoint can return a sum of Shape_Length, but I could be wrong on that.
- 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.
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/
And this: https://community.esri.com/t5/arcgis-utility-network-documents/branch-version-sql-views-utility-network/ta-p/1200811