Skip to main content
Solved

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

  • February 4, 2014
  • 3 replies
  • 28 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

 

 

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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+24
  • 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+28
  • 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.

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