Calculate length of multiple lines by field attribute

1565
1
01-22-2020 01:00 PM
MattTarkington1
New Contributor III

Hi there,

I've got a data set of underground utilities and I'm trying to total the length of groups of lines based on pipe size. For example, add all the lengths of lines where the field "Pipe Size" is equal to 12. I know I can export the data by the pipe size and get a sum of the length, but thats a little clunky.

Thanks!

0 Kudos
1 Reply
JoeBorgione
MVP Emeritus

You should be able to perform a summary upon the pipe size field, summing for the length field. This will give you a table with two fields: Pipe size and the sum of length.

Summary Statistics—Help | ArcGIS Desktop  gives the use of it for arcpy, but you can use the Summary Statistics tool as well. Or, right click on the pipe size field and select summarize.  All these roads lead to the same place....

That should just about do it....
0 Kudos