I'm creating a collection of line features from a GPX file. I've processed the points from the file to calculate things like slope and speed at the various locations. I've then generalized these slope attributes into Uphill, Downhill, and Flat. I want to use these as Connection Break Attributes to segment the LineBuilder output. However, upon doing this I've realized that there are distinct gaps in the track as there is no line connection between the vertices that start/end a line that has a different Connection Break Attribute. Is there a tidy way to attach these together?
Solved
Create continuous line builder output with connection break attributes
Best answer by takashi
Hi @warren156, how did you calculate the values of slope?
Slope is a property of 3D linear geometry, and I guess that you have calculated it based on elevations of consecutive two points.
If so, I think you can also create line segments connecting between every pair of consecutive two points and add the attribute "shape_class" (Uphill, Flat, Downhill) to the line segments, rather than to the points. You can then get desired result by connecting the line segments with the LineCombiner (called LineJoiner in older versions) grouping by the "shape_class".
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.