I have a starting easting and northing and from that I would like to build lines from a number decimal degrees and distances
Assuming the decimal degrees are a rotation:
Use a CoordinateExtractor to get the coordinates of your starting point, then use the VertexCreator to create a line from your starting location pointing straight north with the required length. Then a Rotator to rotate the line using the start coordinates as the origin.
Note that the Rotator rotates counterclockwise, if you want to make it rotate clockwise multiply the rotation by -1
Hi @shanetorrens3, assuming that x, y, distance, angle (degrees) are given as attributes of each input feature, a possible way is:
- VertexCreator (Mode: Replace with Point): Create the starting point (x, y).
- VertexCreator_2 (Mode: Add Point): Add a point (x + distance, y) to the starting point to create a horizontal line segment having the distance.
- Rotator (Rotation Angle: angle, X Origin: x, Y Origin: y): Rotate the line segment around the starting point (x, y) by the angle.
Hi @shanetorrens3, assuming that x, y, distance, angle (degrees) are given as attributes of each input feature, a possible way is:
- VertexCreator (Mode: Replace with Point): Create the starting point (x, y).
- VertexCreator_2 (Mode: Add Point): Add a point (x + distance, y) to the starting point to create a horizontal line segment having the distance.
- Rotator (Rotation Angle: angle, X Origin: x, Y Origin: y): Rotate the line segment around the starting point (x, y) by the angle.
Thanks for the feedback, I'm a bit stuck however. I managed to create the first line but what do I need to do to continue the traverse with say another 8 azimuth and distance?
Thanks for the feedback, I'm a bit stuck however. I managed to create the first line but what do I need to do to continue the traverse with say another 8 azimuth and distance?
Hi Takashi,
all the azimuth are decimal degrees with an associated distance. I have worked out my starting point and have managed the first bearing and distance using the solution you guys provided however to add another bearing and distance to that...and then so on?
Hi Takashi,
all the azimuth are decimal degrees with an associated distance. I have worked out my starting point and have managed the first bearing and distance using the solution you guys provided however to add another bearing and distance to that...and then so on?
Hi Takashi,
all the azimuth are decimal degrees with an associated distance. I have worked out my starting point and have managed the first bearing and distance using the solution you guys provided however to add another bearing and distance to that...and then so on?
Hi Takashi,
all the azimuth are decimal degrees with an associated distance. I have worked out my starting point and have managed the first bearing and distance using the solution you guys provided however to add another bearing and distance to that...and then so on?
The workflow looks like this. In the FeatureMerger, you can perform unconditional merging by setting an identical constant (e.g. 1) to the Join On parameter in both Requestor side and Supplier side. If the Requestor feature has a point geometry originally, the first VertexCreator is not necessary.
Hi Takashi,
all the azimuth are decimal degrees with an associated distance. I have worked out my starting point and have managed the first bearing and distance using the solution you guys provided however to add another bearing and distance to that...and then so on?
Hi @shanetorrens3, assuming that x, y, distance, angle (degrees) are given as attributes of each input feature, a possible way is:
- VertexCreator_2 (Mode: Add Point): Add a point (x + distance, y) to the starting point to create a horizontal line segment having the distance.
I have a similar problem. How do I create the line exactly? In my understanding I only create a second point.
Thanks
If you have a feature and connect two consecutive VertexCreators. First with Replace with Point and the Second with Add Point. Both having different x and or y you get a line.