Skip to main content
Solved

How draw polygon by azimuth and distance?


mr_fme
Enthusiast
Forum|alt.badge.img+8

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)

View original
Did this help you find an answer to your question?

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
Influencer
  • 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)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings