Skip to main content
Question

maximum inside rectangle from an polygon

  • February 28, 2018
  • 1 reply
  • 151 views

michaels
Contributor
Forum|alt.badge.img+4

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

fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • March 2, 2018

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


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