Hi,
How can I draw a polygon (shp) using azimuth and distance in FME?
Thank´s
Hi,
How can I draw a polygon (shp) using azimuth and distance in FME?
Thank´s
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.
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.
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)