Skip to main content
Solved

Is there a transformer to calculate the maximum enclosed rectangle? MER for label placement?

  • February 4, 2014
  • 3 replies
  • 58 views

I'm not looking for bounding box.  Rather the largest, axis-aligned rectangle that fits within the polygon.  Does this transformer exist?  If not, I can provide logic to implement.  Please let me know.

Best answer by sigtill

What about the option Oriented Bounding Box, does it help?

 

If not you can implement the logic in Python using a PythonCaller

 

 

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.

3 replies

sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • Best Answer
  • February 4, 2014
What about the option Oriented Bounding Box, does it help?

 

If not you can implement the logic in Python using a PythonCaller

 

 


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • November 25, 2015

@loren I would be interested in the logic you would use to implement this.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • November 26, 2015
Oriented bounding box is not a MER of an object. Striclty speaking a MER would be the largest rectangle that one can possibly fit inside a object, iirespective of orienation. This is what you ask, but are satisfied with a OBBR?. I assume to orient labels to objects. There are different ways of finding a MER, involving quite some math. Easiest is brute force tchnique, requiring lots of calculationsteps.