Skip to main content

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

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