Is This Content Helpful?
We're glad to know this article was helpful.
Features in a geodatabase feature class have a system-generated field for SHAPE_Length. However, there is no system-generated field for the cumulative length values. Therefore, a new field must be created and a Field Calculator expression used to get the correct cumulative length values. The following is an example of a cumulative sum being applied:
|Feature||Individual Length||Cumulative Length|
The instructions provided describe how to generate a field with cumulative length values.
Note: The name must not contain spaces.
Note: Ignore the warning that appears and click YES to close the dialog box.
cummulativeLength = 0 def cummulativeValue(increment): global cummulativeLength cummulativeLength += increment return cummulativeLength