Skip to main content
Question

Hello everyone, I have road file. May i know how to find slope percent at every 12m.

  • September 6, 2021
  • 3 replies
  • 27 views

Hello everyone, I have road file. May i know how to find slope percent at every 12m.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+62

Assuming this is a polyline dataset, multiple ways to do this. One way I can think of:

  • Densifier to add point every 12 meter.
  • Chopper to create segments of 12 meter.
  • CoordinateExtractor to find _z_begin and _z_end.
  • AttributeCreator to calculate slope based on _z_begin and _z_end.

Assuming this is a polyline dataset, multiple ways to do this. One way I can think of:

  • Densifier to add point every 12 meter.
  • Chopper to create segments of 12 meter.
  • CoordinateExtractor to find _z_begin and _z_end.
  • AttributeCreator to calculate slope based on _z_begin and _z_end.

coordinate extractor gives the z value for the splitted lines. may I know how I can differentiate z_begin and z_end ?


nielsgerrits
VIP
Forum|alt.badge.img+62

coordinate extractor gives the z value for the splitted lines. may I know how I can differentiate z_begin and z_end ?

Multiple ways to do this, easiest is to use 2 CoordinateExtractors with mode = specify coordinate, coordinate index 0 is first point, index -1 is last point.