Question

maximum inside rectangle from an polygon

  • 28 February 2018
  • 1 reply
  • 21 views

Badge

Hi

 

is there a way to get the maximum inside rectangle from a polygon? I need the rectangle with the biggest area.

Is there a transformer in FME to do this? Or can anyone give me perhaps the python-code to get this rectangle?

 

thanks for your help

1 reply

Userlevel 4
Badge +13

Hi @michaels I found some Python code at https://community.esri.com/thread/182008-how-to-find-the-maximum-rectangle-contained-within-a-polygon Concave polygons are trickier because you'll have to check for intersections as well as iterate through every point (n-1)**2. You might want to start with a Densifier to get more accurate results. But I think it would be best to post this as an idea at https://knowledge.safe.com/content/idea/list.html

Reply