Skip to main content
Solved

How draw polygon by azimuth and distance?

  • July 18, 2018
  • 3 replies
  • 140 views

mr_fme
Enthusiast
Forum|alt.badge.img+9

Hi,

How can I draw a polygon (shp) using azimuth and distance in FME?

Thank´s

Best answer by takashi

Hi @mr_fme, perhaps does "draw polygons" mean "move polygons" here?

If you want to move polygons by specified azimuth and distance, the Offsetter (Mode: Polar Coordinate) might help you.

Just be aware that the Polar Angle parameter should be specified with the angle in degrees CCW (Counter-Clock Wise) from the positive X-axis. If the given azimuth is the angle in degrees CW (Clock Wise) from the positive Y-axis (i.e. north direction), positive in the east (right) semicircle and negative in the west (left) semicircle, you will have to convert azimuth to polar angle with this expression.

polar angle (degrees) = 90 - azimuth (degrees)

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

Forum|alt.badge.img+2

Hi @mr_fme

 

A similar question was asked on the forum but creating lines rather than polygons from a point using distance and direction. I think this might be a good place to start:

 

https://knowledge.safe.com/questions/74178/make-line-based-on-distance-from-single-line-and-c.html?childToView=74190#comment-74190

Then once you have closed line networks you can use the AreaBuilder to create polygon features.


jovitaatsafe
Safer
Forum|alt.badge.img+11

Hi @mr_fme!

I agree with @hollyatsafe, that's a great place to start looking. Another solution is to try the 2DDirectionExtender. As long as your last line ends at the same point as the first point, it will close as a polygon. You can create the first point using a Creator transformer.


takashi
Celebrity
  • Best Answer
  • July 19, 2018

Hi @mr_fme, perhaps does "draw polygons" mean "move polygons" here?

If you want to move polygons by specified azimuth and distance, the Offsetter (Mode: Polar Coordinate) might help you.

Just be aware that the Polar Angle parameter should be specified with the angle in degrees CCW (Counter-Clock Wise) from the positive X-axis. If the given azimuth is the angle in degrees CW (Clock Wise) from the positive Y-axis (i.e. north direction), positive in the east (right) semicircle and negative in the west (left) semicircle, you will have to convert azimuth to polar angle with this expression.

polar angle (degrees) = 90 - azimuth (degrees)