Skip to main content
Question

maximum inside rectangle from an polygon

  • February 28, 2018
  • 1 reply
  • 164 views

michaels
Contributor
Forum|alt.badge.img+5

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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • 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