Compute segment coordinates and orientations
Source:R/TNETshape_computePosition.R
TNETshape_computePosition.Rd
This function will calculate the center point of each segment and it's orientation with north. More info in the Details section.
Details
Both position and orientation are calculated using the line between the initial and final node, called later the simplified segment (dashed on the figure below). There are symbolized in the following figure and explain below:
1 - Position
Position is taken as the middle point of the simplified segment. It's converted in WGS84.
2 - Orientation
Orientation is take as the angle between North and the oriented simplified segment, in Degrees.
Orientation | Water direction in the segment |
0° | North |
180° | South |
90° | East |
270° | West |